While going through the visual_scenes, for each node I'm combining all the transforms into a single matrix (as I assume everyone does). The flow is something like this:
Code :create local matrix for current node: nodeTrans for each transform element in node create matrix representing this transform: trans nodeTrans *= trans
I'm stuck on how to create a matrix representing a single rotation or scale. I'm using Irrlicht which has functions for setting the scale or rotation of a matrix, but these simply overwrite cells, so if you set rotation it'll mess up scale and vice versa. Can anyone point me to an example of how to either create a rotation matrix that preserves uniform scale (1, 1, 1) or create a scaling matrix that preserves zero rotation? Thanks in advance!
I also posted on the Irrlicht forum btw: http://irrlicht.sourceforge.net/phpBB2/ ... p?p=150629