Hi Anders,

Ok, I tried setting it through SceneView but still same result!

Hm, sorry, that helped us but your case must be different.

I'm using 2.8.3 too, precompiled though so I cant check the cull function in 
SceneView immediatly. I've downloaded osg src, going to try to compile it and 
debug it.

If you're on Windows, as long as the precompiled package included the PDB files then you will be able to debug into OSG (in a debug build of course). I can't remember if the packages include the PDB files.

When you start your program, pause it or place a breakpoint at the beginning, and then go into the Modules window in VS and right-click the OSG DLLs and select "Load Symbols", it will then ask you for where the PDB files are. Then you can open SceneView.cpp in VS and place a breakpoint in one of the functions.

Building from source is better of course, since then when you find the source of the problem you can fix it too! :-) Of course, always submit fixes against the SVN version (i.e. once you've verified your fix works for you in OSG 2.8.3, port it to the SVN version and submit that, and preferably test it with a simple example built against the SVN version too).

Looks like I should debug/check SceneView::cullStage(), right?

Yes, I mentioned cull() because it calls cullStage(). For me the problem was the inheritance of this cull setting. I couldn't see where (if anywhere) the SceneView inherited its cull settings from the camera. The CullVisitor inherits them from the SceneView in SceneView::cullStage(), but if the SceneView never inherits them from the camera then setting the compute mode on the camera will never do anything...

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to