Hi
iirc ppu stuff does it things at a renderbin 100.
 
Cheers.
 
03.10.2012, 23:42, "Peterakos" <[email protected]>:
Hello.
I am working on osgPPU but there are some things i haven't completely understood yet.
I add 2 children in root's group.
A cow model and the osgPPU::Processor.
In processor i have added 1 child which outputs the depth buffer and under that child i have added 1 child which outputs to frame buffer.
I have noticed that the order of 
root->addChild(loadedModel);
root->addChild(ppu);
doesnt matter and i am wondering why.
UnitCameraAttachmentBypass needs the depth buffer which is taken from camera. But if ppu is rendered first (as first child) there will be no depth buffer to output 
to frame buffer (through UnitCameraAttachmentBypass's child, which is UnitOut).
Why is this happening ? do i miss something?
The scene graph is the following
root
   ppu
       UnitCameraAttachmentBypass (outputs Depth)
          UnitOut
   loadedModel
Thank you for your time.
,

_______________________________________________
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