I would like to know how I can tell (in engine code) if a unit is in it's default state, with no animations running (like all piece transforms are 0) without actually checking each piece translation and rotation matrix to check for zero and eigen?
Thanks in advance for any tips!
How to tell if unit is in COB/Lua default state
Moderator: Moderators
Re: How to tell if unit is in COB/Lua default state
Sad panda. So the fastest way to find out would still be checking each transformation matrix for identity?
Because I have the dumb idea (I know I'm gonna get flak and yelled at for this) to compile static display lists for entire models in their default 'rest' state, so for example units that are not moving and not shooting and not animated at rest can be drawn with a single call (maybe even the static model could be kept in gpu ram), instead of doing 10+ piece transforms and drawing each piece separately.
Please point out any flaws in this if you see any.
Because I have the dumb idea (I know I'm gonna get flak and yelled at for this) to compile static display lists for entire models in their default 'rest' state, so for example units that are not moving and not shooting and not animated at rest can be drawn with a single call (maybe even the static model could be kept in gpu ram), instead of doing 10+ piece transforms and drawing each piece separately.
Please point out any flaws in this if you see any.
Re: How to tell if unit is in COB/Lua default state
wait for a new model renderer ...