Animated meshes pickable?
Blitz3D Forums/Blitz3D Programming/Animated meshes pickable?
| ||
Are animated meshes pickable? For some reason, I am having trouble with getting my animated .md2 enemy mesh in my Ramparts/Defend the Castle 3D Remake to be pickable. It doesn't work. I will need to be able to pick a soldier and throw him up in the air. I'll probably use ODE for that. Or Tokamak. I just need to know if animated .md2's are pickable. Thanks. |
| ||
I don't use MD2 because you cannot access it's Vertices etc. but currently I am not sure if it's also completely unpickable. All I know is: if you use animated Meshes of the 3DS or X Format, you need to make all of its mesh children pickable. I made an example for setting Children properties recursively (eg. for AntityAlpha), the same way it would need to be done with EntityPickMode: http://www.blitzbasic.com/codearcs/codearcs.php?code=1170 You can try it, maybe it helps. |
| ||
I don't think md2 anim's are but .b3d anims are.... |
| ||
Drat... That throws my game down the toilet for a while until I think up a way to make it work... :'( Oh well! I made a lot of progress on it today! |
| ||
AFAIK MD3s are not pickable. I had to wrap a (child) see-thru cylinder around my character, then make the cylinder pickable. |
| ||
Thanks, I'll try that out. |
| ||
I don't think md2 anim's are but .b3d anims are.... Not exactly. Animated b3d's *are* pickable, but only in their stationary base pose. They do not return pick information based on their animated position. |
| ||
I think John has a great idea... wish I'd thought of it... That makes a game a got blocked on workable... Thanks John! :) -RZ |