Hi all,
I'm trying to implement a shader but to do this I need the
ModelViewMatrix from the simplesceneManager camera (that is a
PerspectiveCamera). What I'm trying to do is to collect a series of
positions (coordinates) of source lights in a texture via a MRT and FBO. But
while gl_SourceLight[n].position is automatically multiplied for the correct
modelViewMatrix, when I use a PolyForeground to project my texture I loose
that matrix.
Simply I need to save a ModelViewMatrix from a point of view and reuse it in
another shader...So I tought to take the modelviewmatrix from the
mgr->getCamera() but I didn't succeded in trasforming it to a MatrixCamera.
Thx to all
Erik
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users