Hi Ivan,
The RenderBinName is the way for the rendering backend to decide which
RenderBin prototype to use, so in your case a EffectNodeStorted with
by the RenerBinName to use.
The bin number is the place in the parents RenderBin where the new
rendering bin is placed, lower numbered bin numbers are drawn first.
Bin number 10 is default to the transparent bin.
The default registered "RenderBin" is state sorted.
When you specify a render bin details on a StateSet you don't use the
StateSet rendering hint you just the bin number of bin name directly.
Robert.
On 1/28/07, Ivan Bolčina <[EMAIL PROTECTED]> wrote:
HI.
How to make sure that particle in particle system don't get sorted?
I tried something like this
StateSet {
DataVariance STATIC
rendering_hint OPAQUE_BIN
renderBinMode USE
binNumber 10
binName EffectNotSorted
With this:
RefPtr<osgUtil::RenderBin> rb=new
osgUtil::RenderBin(osgUtil::RenderBin::SORT_BY_STATE);
osgUtil::RenderBin::addRenderBinPrototype("EffectNotSorted",rb.get());
But I am not sure particles are not sorted anyway. I am also not sure what
is distinction between render bin number and render bin name?
How to register a render bin that doesn't care about distance and just adds
particles?
Thank you and bye,
ivan
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/