OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

osgPPU::Processor and other root's children traversing order


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgPPU [osgPPU]
View previous topic :: View next topic  
Author Message
Peterakos
Guest





PostPosted: Wed Oct 03, 2012 7:23 pm    Post subject:
osgPPU::Processor and other root's children traversing order
Reply with quote

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.

------------------
Post generated by Mail2Forum
Back to top
hybr
Appreciator


Joined: 26 Jun 2009
Posts: 454

PostPosted: Wed Oct 03, 2012 8:21 pm    Post subject:
osgPPU::Processor and other root's children traversing order
Reply with quote

Hi
iirc ppu stuff does it things at a renderbin 100.
 
Cheers.
 
03.10.2012, 23:42, "Peterakos" <>:
Quote:
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 (
Only registered users can see emails on this board!
Get registred or enter the forums!
)http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgPPU [osgPPU] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Show children with hidden parent YuraIU02 General 3 Wed Apr 26, 2017 6:11 am View latest post
No new posts NodeCallback does not traverse children YuraIU02 General 3 Mon Apr 10, 2017 8:43 am View latest post
No new posts OSG RenderBin reverse order Bruno Oliveira General 0 Mon Nov 07, 2016 2:51 pm View latest post
No new posts Attaching children to the prerender c... Mary-Ann General 5 Mon Sep 19, 2016 3:13 pm View latest post
No new posts camera pre-render and culling order Trajce Nikolov NICK General 2 Sat Sep 10, 2016 10:49 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP