Re: [osg-users] Problem with manipulating the projection matrix

2012-01-14 Thread Sven Walther
Hi Shayne,

this sounds like a possible solution. I'll try it out and let you know if it is 
working.
Thank you!

Cheers,
Sven

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44834#44834





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Problem with manipulating the projection matrix

2012-01-12 Thread Sven Walther
Hi everyone,
I am trying to figure out a problem with manipulating the ProjectionMatrix in 
one of my views. There is no problem with setting the Matrix itself. This works 
fine.
My problem occurs as I resume my current viewer. Changes of the  components 
like projectionMatrix(0,0) or projectionMatrix(1,1) are used and are visualized 
correctly in the viewer. As I try to change the component 
projectionMatrix(2,2), the value is overwritten somewhere and I can't figure 
out where. Are some values out of range?
I am trying to implement something that is called reverse perspective. 
Therefor I need to negotiate the correct component (2,2) in the projection 
matrix.
Does anyone has an idea where the value is changed? What can I do about it?
Thank you very much!

Cheers,
Sebastian

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44001#44001





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Problem with manipulating the projection matrix

2012-01-12 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Sebastian,

The (2,2) entry of the projection matrix involves the near/far plane
settings (e.g. -(f + n)/(f - n))

Perhaps if you issue the call...

camera-setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR
);

for the camera proj matrix you are manipulating, that might help prevent
your (2,2) value in the proj matrix from being overwritten.

-Shayne

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Sven
Walther
Sent: Tuesday, November 22, 2011 1:08 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Problem with manipulating the projection matrix

Hi everyone,
I am trying to figure out a problem with manipulating the
ProjectionMatrix in one of my views. There is no problem with setting
the Matrix itself. This works fine.
My problem occurs as I resume my current viewer. Changes of the
components like projectionMatrix(0,0) or projectionMatrix(1,1) are used
and are visualized correctly in the viewer. As I try to change the
component projectionMatrix(2,2), the value is overwritten somewhere and
I can't figure out where. Are some values out of range?
I am trying to implement something that is called reverse perspective.
Therefor I need to negotiate the correct component (2,2) in the
projection matrix.
Does anyone has an idea where the value is changed? What can I do about
it?
Thank you very much!

Cheers,
Sebastian

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44001#44001





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org