MD2 Models and Pick

Blitz3D Forums/Blitz3D Programming/MD2 Models and Pick

BasicZone(Posted 2004) [#1]
Hi I have an new problem I have a few MD2 models in my game but I cant pick them with that code wy? With other modelt works it great.

Code:
Function PvP()
Entity=CameraPick(Camera,1024/2,768/2);aufX/2,aufy/2)

If MouseHit(1) Then
For p.pdata = Each pdata
If p\zone = initzone Then
If p\cube = Entity Then
BP_UDPMessage(p\net_id,7,"10|1",False,False)
EndIf
EndIf
Next
EndIf
End Function


Gabriel(Posted 2004) [#2]
Yes, MD2 models can't be picked at all. It'd be very slow if you could anyway, so either use a pivot with sphere collisions and pick that or use a proxy mesh which is static, much lower poly than your MD2 and hide it. Game very rarely feature pixel perfect collisions and picks in 3d anyway.

Also, animated b3d's can't be picked properly either. Animated b3d's will be picked in their initial stance, regardless of which frame of animation they're on.


AntonyWells(Posted 2004) [#3]
Skidracer did a md2 to mesh thing for b3d, that lets you use line picks on animated md2s etc. Dunno where you can find it though.


BasicZone(Posted 2004) [#4]
and wher can I find this md2 to b3d did anyone know that?


AntonyWells(Posted 2004) [#5]
i think it was on skid or acid's wikki..page. check www.acid.co.nz maybe.