<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Dear all,<br>
<br>
I hope someone can help me.<br>
<span class="tlid-translation translation"><span title="" class="">I'm
really desperate. I can't find the right way retrieving zNear
and zFar values <br>
from a child camera. <br>
I'm debugging now since many days already without success.<br>
I have a deferred rendering scene. The main camera doesn't have
my scane as child but the rtt-camera.<br>
rtt-camera is set RELATIVE_RF, so it is controlled by the camera
manipulator of the main camera.<br>
<br>
What I found out so far:<br>
- The viewer calls "renderingTraversals()"<br>
- The renderer calls "cull()" which starts a cullVisitor.<br>
- When the cullVisitor reaches my child camera it multiplies
view and projection matrices and collects correct <br>
zNear and zFar values from the cameras child = my scene.<br>
- at the and of apply(const osg::Camera&) the method
"popProjectionMatrix()" is called which cals
"clampProJectionMatrix(...)"<br>
- There the projection matrix is modified the correct way
according to zNear and zFar.<br>
- I have set a CullCallback and a PreDrawCallback at my child
camera but none of them can extract zNear and zFar from the
cameras ProjectionMatrix.<br>
<br>
Is there any other way to get these values which get obviously
calculated the correct way?<br>
I can't find anything in the Internet or in the examples.<br>
<br>
Many thanks for any hint.<br>
<br>
- Werner -<br>
<br>
</span></span><br>
</body>
</html>