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 

Render order


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgCompute [osgCompute]
View previous topic :: View next topic  
Author Message
J.P. Delport
Guest





PostPosted: Wed Oct 12, 2011 2:42 pm    Post subject:
Render order
Reply with quote

Hi,

I want to mix some FBO pre-render cameras and osgCuda. Basically I need
to do the following in a single frame:

- do some FBO rendering
- some cuda ops
- again some FBO rendering
- some cuda ops
- again some FBO rendering

For each "cuda ops" part I have a Computation node. Ideally I'd like to
let the order be determined just by the order I've attached the nodes to
a common parent node (this works for pre-render FBO cameras), but
Computation creates render bins and no matter in what order I attach
things (I've tried Computation with and without children) the order of
my operations is wrong.

Because I'm doing FBO rendering I want the cuda ops to be done in the
render traversal too, i.e. I cannot do it in update traversal.

Is there a way I can let Computation happen in the render traversal, but
without it changing bins?

thanks
jp

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.



------------------
Post generated by Mail2Forum
Back to top
J.P. Delport
Guest





PostPosted: Wed Oct 12, 2011 4:42 pm    Post subject:
Render order
Reply with quote

Hi,

reply to self...

On 12/10/2011 16:45, J.P. Delport wrote:
Quote:
Hi,

I want to mix some FBO pre-render cameras and osgCuda. Basically I need
to do the following in a single frame:

- do some FBO rendering
- some cuda ops
- again some FBO rendering
- some cuda ops
- again some FBO rendering

For each "cuda ops" part I have a Computation node. Ideally I'd like to
let the order be determined just by the order I've attached the nodes to
a common parent node (this works for pre-render FBO cameras), but
Computation creates render bins and no matter in what order I attach
things (I've tried Computation with and without children) the order of
my operations is wrong.

Because I'm doing FBO rendering I want the cuda ops to be done in the
render traversal too, i.e. I cannot do it in update traversal.

Is there a way I can let Computation happen in the render traversal, but
without it changing bins?

I "fixed" it by placing the Computation node under a dummy FBO camera.
Now all computation happens in pre-render stage and in right order.

jp

Quote:

thanks
jp


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.



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


Joined: 13 Nov 2010
Posts: 208

PostPosted: Wed Oct 12, 2011 5:07 pm    Post subject:
Render order
Reply with quote

J.P.

Thanks for sharing...

-Shayne

-----Original Message-----
From:
[mailto:] On Behalf Of J.P.
Delport
Sent: Wednesday, October 12, 2011 10:45 AM
To: OpenSceneGraph Users
Subject: Re: [osgCompute] Render order

Hi,

reply to self...

On 12/10/2011 16:45, J.P. Delport wrote:
Quote:
Hi,

I want to mix some FBO pre-render cameras and osgCuda. Basically I
need
Quote:
to do the following in a single frame:

- do some FBO rendering
- some cuda ops
- again some FBO rendering
- some cuda ops
- again some FBO rendering

For each "cuda ops" part I have a Computation node. Ideally I'd like
to
Quote:
let the order be determined just by the order I've attached the nodes
to
Quote:
a common parent node (this works for pre-render FBO cameras), but
Computation creates render bins and no matter in what order I attach
things (I've tried Computation with and without children) the order of
my operations is wrong.

Because I'm doing FBO rendering I want the cuda ops to be done in the
render traversal too, i.e. I cannot do it in update traversal.

Is there a way I can let Computation happen in the render traversal,
but
Quote:
without it changing bins?

I "fixed" it by placing the Computation node under a dummy FBO camera.
Now all computation happens in pre-render stage and in right order.

jp

Quote:

thanks
jp


--
This message is subject to the CSIR's copyright terms and conditions,
e-mail legal notice, and implemented Open Document Format (ODF)
standard.
The full disclaimer details can be found at
http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by
MailScanner,
and is believed to be clean.


g


------------------
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 -> osgCompute [osgCompute] 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 Render Geographic/Projected coordinat... Bruno Oliveira General 0 Mon Jun 05, 2017 2:58 pm View latest post
No new posts Render point cloud in a different coo... Bruno Oliveira General 1 Mon Jun 05, 2017 1:50 pm View latest post
No new posts Render to texture with GL3. Raizel General 3 Tue May 23, 2017 10:33 am View latest post
No new posts Multiple render passes and multithrea... SMesserschmidt General 2 Wed May 03, 2017 3:53 pm View latest post
No new posts Recommended way to render a scene fro... Hannes Naude General 6 Tue Apr 11, 2017 11:12 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