Get modelViewMatrix from object

Started by kkl, November 16, 2014, 12:50:53 PM

Previous topic - Next topic

kkl

Hi Egon,

Is there anyway to get modelViewMatrix from object? I need it for multiple sub-meshes location and direction (crowd animation with hardware skinning), so I can animate the submesh by using only one object to reduce drawcall.

EgonOlsen

Translate the matrix returned by getWorldTransformation() by the negated camera position and multiply the resulting matrix with the camera's rotation matrix.

kkl

It works like magic now! Thanks alot egon