[osg-users] osgPPU::Processor and other root's children traversing order

7 views
Skip to first unread message

Peterakos

unread,
Oct 3, 2012, 3:15:05 PM10/3/12
to OpenSceneGraph Users
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.


Sergey Polischuk

unread,
Oct 3, 2012, 4:22:16 PM10/3/12
to OpenSceneGraph Users
Hi
iirc ppu stuff does it things at a renderbin 100.
 
Cheers.
 
03.10.2012, 23:42, "Peterakos" <hay...@gmail.com>:
,

_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply all
Reply to author
Forward
0 new messages