What is the best way to make multiple render passes over the same scene
graph to the default buffer. What I would like to do is the following
passes:
- Render the scene normally
- For [0-N]
- Render scene to an cubemap
- Render scene with a custom shader
The order here is very important, and as far as I can tell doesn't fit well
into the default behavior of OpenSG. I believe that by default OpenSG
traverses the tree adding partitions for each stage that it visits. Then it
renders each partition in reverse order, *ending* with the default partition
that renders the entire scene.
My current plan is to create a new custom stage field container that
disables the default partition, starts a group, and then pushes each
partition in the order that I want. Does this sound like the best way to
accomplish this behavior? Would it also make sense to create a top level
stage that simply pushes a partition group, and then have child stage nodes
that are traversed in order to add the rest of the partitions.
[GroupStage] <-- Doesn't seem to be the same as the current group
stage in OpenSG
/ \
[DefaultStage] [0-N CustomStages] <-- Does something exist that has this
"default" behavior
Thank you,
Aron
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users