Hi Peter,

If you build your data as separate osg::Geometry per side and then set
the opaque rendering bin to sort front to back then it'll be able to
graphics card to use z early culling of fragments.

Robert.

On Wed, Nov 24, 2010 at 5:00 PM, Peter Wrobrl <[email protected]> wrote:
> Hi,
>
> this is rather a technique question then related to an osg feature.
> I create a VBO from lot of Points ( ( 50-100 ) ^ 3 ) in the shape of a cube. 
> I create them with three nested loops, one per Axis, so that first I get a 
> line of Points in x-Direction, then draw the next lines to shape the xy 
> plane, and finally draw the volume in z direction with the next xy point 
> planes.Rotating arround this cube with the camera, my Frame Rate drops 
> significantly, when the Points get drawn from Back to front due to Overdraw.
> I can't just flip the whole entity in 90 degree steps dependent on the camera 
> position as the Points have different Vertex Colors set, so one would nottice 
> the flipping.
>
> How can I build an efficient structure so that those points get always drawn 
> from Front to Back ? Are there any helpful utilities for sorting, or maybe 
> other Tricks ?
>
>
> Thank you!
>
> Cheers,
> ParticlePeter
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=34040#34040
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to