pick mode for md2 entity?

Blitz3D Forums/Blitz3D Beginners Area/pick mode for md2 entity?

Kendo(Posted 2004) [#1]
Hi all, I've given the following entity, horse=loadmd2("horse.md2") a pickmode of 2 but I am unable to pick it even though 1 can pick the following type of entity, terrain=Loadmesh("ground.x")to which I have given pickmode of 2.

I assume its because the entity is an "md2" format, but why?


Beaker(Posted 2004) [#2]
Because the mesh data isn't stored like a normal mesh. You will have to use a sphere or box pick mode. OR multiple spheres (if you want to define the shape better).


Kendo(Posted 2004) [#3]
OK, many thanks for your reply Beaker. The horse is now pickable.

Could you explain what makes a mesh a mesh?


Beaker(Posted 2004) [#4]
Its quite arbitrary, but anything that is loaded using b3d,X,3ds (and is not a pivot/bone) is a mesh. MD2s and BSP files are not.

The probable reason Mark never made collisions possible with MD2s is because Blitz cannot handle poly collisions applied to animated morphing meshes, so there was never a reason to do this (as MD2s are nearly always animated).

If you want more complex collisions then it is wise to use B3D animations.


Kendo(Posted 2004) [#5]
Thanks for the explanation, Beaker. Much appreciated