Re: [cgkit-user] setting modelview directly
Brought to you by:
mbaas
|
From: Matthias B. <mat...@gm...> - 2011-07-11 20:03:09
|
Hi, On 07.07.11 23:30, Alex Flint wrote: > Is there a way to set the modelview matrix explicitly? I have a 4x4 > matrix saved to disk, which is the product of the modelview and > projection matrices that I wish to use. The FreeCamera uses just its transformation as model matrix. I'm actually not sure if it would work if you would include the projection matrix as well, you might give it a try. Otherwise, it should be fairly straightforward implementing your own camera. Have a look at freecamera.py as an example. You could implement a class that is almost the same but just returns an identity matrix from the projection() method and your modelview matrix from the viewTransformation() method. Cheers, - Matthias - |