Hi,

I've tried meddling around and put 
"camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);" on 
both the cameras of "OceanScene::renderToTexturePass()" and 
"OceanScene::glareCombinerPass()". 

The results are: 
1. If I put it on the RTT method, it will cause the glare to be disabled and no 
glare rendered.
2. If I put it on the glareCombinerPass method, the screen would turn black 
like the one I experienced.
3. Furthermore, I think I know what causes the models' (ships in this case) 
color to be changed erratically if the camera angle is changed. I think it is 
because of the above water fog's calculation that has gone wrong if I use  
"camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);"

So now I've got a situation here. If I don't use  
"camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);", 
the front of the ship will be culled and displays wrongly. But if do, the whole 
shaders from osgOcean will be corrupted. Any other idea to solve this guys? I'm 
so lost right now. :(


Thank you!

Fare Thee Well,
Bawenang

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to