Hi,

I want to realize a scene (as solar system, same problem). As you can imagine, 
I have a clipping problem. Here's an example :

1.

My first cube (foreground) is clip (the second is far : 10^12).

I have searched why and I have read information about Z-Buffer :

2.

and

3.

After, I have read osg forum (and others google results) to find a solution :

- Change nearfarRatio. But change nearfarRatio doesn't solve clip problem and 
z-fighting problem at the same time, my scene is too big.

- Use osgDepthPartitionExample : It's very good solution and my cubes are 
exactly draw. But I want to draw line (as orbit) and it's catastrophic ! Line 
appear/disappear or shake when I move camera (rotate and zoom). Nevertheless, 
near and far for each camera seem to be good (next to each other). It's very 
annoying. I can post screen or video if you want to see.

Have you any explanation ? some solution ? (cut scene ? use 2 cameras and not 5 
when i have lines ? use "osg normal render" and use one camera for foreground ? 
cut the scene background and project part cut onto far plan ? something else ? 
... ?)

Thank you!

Cheers,
Clem

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





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

Reply via email to