And a last thing.... is   perspectivecamera->getViewing(matrix, 4, 4)    the
gl_ModelViewMatrix for that camera?

2009/3/14 Erik Podetti <[email protected]>

> Hi all,
>         in a vertex shader I need to go back from Camera coordinates to
> world coordinates. As opengl gl_ModelViewMatrix  transform directly from
> model coordinate space to camera coordinate space, I need to precalculate
> the C^-1  matrix and pass it to the shader to obtain world coordinates.
> How can I get it from a PerspectiveCamera?
>
> Thanx
>
> Erik
>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to