Hi Maximillian,

The OSG dynamically creates bins on demand during the cull traversal.
A very simple scene graph might not even use any transparent objects
so not require a RenderBin for this.  Conversely some scene graphs
such as the ones that do complete render to texture, or have multiple
layers of rendering may have dozens of RenderStage and RenderBin.
Since the demands for these resources can change each frame the OSG
doesn't pre-allocated them, instead clones them from prototypes as the
new frame requires it.

Robert.

On Tue, Dec 21, 2010 at 8:39 PM, Maximillian GUENTHER
<[email protected]> wrote:
> Hi,
>
> I am using TRANSPARENT BIN. Code:
>
> Code:
> stateset->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
>
>
> I set a breakpoint in RenderBin constructor and destructor to see the 
> allocation and deallocation.
>
> I ask: Why does this cause RenderBin to be allocated and deallocated every 
> frame? This does not happen with default bin.
>
> Thank you!
>
> Cheers,
> Maximillian
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=35041#35041
>
>
>
>
>
> _______________________________________________
> 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