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 

two pass rendering without enhancing osg::Drawable


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Trajce Nikolov NICK
Guest





PostPosted: Tue Jul 02, 2019 9:58 am    Post subject:
two pass rendering without enhancing osg::Drawable
Reply with quote

Hi Community,


is there any elegant way to have multipass rendering then inheriting and enhancing osg::Drawable? Thanks a bunch for any hint


Cheers,
Nick


--
trajce nikolov nick

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12353

PostPosted: Tue Jul 02, 2019 10:22 am    Post subject:
two pass rendering without enhancing osg::Drawable
Reply with quote

Hi Nick,


On Tue, 2 Jul 2019 at 10:58, Trajce Nikolov NICK < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
is there any elegant way to have multipass rendering then inheriting and enhancing osg::Drawable? Thanks a bunch for any hint


Have you forgotten how the OSG works?



There are dozens of examples in the OpenSceneGraph/example that use mulit-pass and multi-stage rendering without ever subclassing Drawable or using callbacks. One simple uses osg::Camera to manage mulit-stage rendering, like render to texture. and using StateSet's::RenderBin details when you want to have multiple bins, or you can just put the same subgraph into the scene graph multiple times and decorate each branch with different state to select what you want.


Robert.



 

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Trajce Nikolov NICK
Guest





PostPosted: Tue Jul 02, 2019 10:46 am    Post subject:
two pass rendering without enhancing osg::Drawable
Reply with quote

Thanks Robert Smile. Sometimes I struggle Smile)) ... Thanks again !


On Tue, Jul 2, 2019 at 12:22 PM Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi Nick,


On Tue, 2 Jul 2019 at 10:58, Trajce Nikolov NICK < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
is there any elegant way to have multipass rendering then inheriting and enhancing osg::Drawable? Thanks a bunch for any hint


Have you forgotten how the OSG works?



There are dozens of examples in the OpenSceneGraph/example that use mulit-pass and multi-stage rendering without ever subclassing Drawable or using callbacks. One simple uses osg::Camera to manage mulit-stage rendering, like render to texture. and using StateSet's::RenderBin details when you want to have multiple bins, or you can just put the same subgraph into the scene graph multiple times and decorate each branch with different state to select what you want.


Robert.



 


_______________________________________________
osg-users mailing list
(
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


--
trajce nikolov nick

------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General 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 Crash on some machines while renderin... rposg General 3 Fri Oct 04, 2019 6:08 pm View latest post
No new posts Geode and Drawable Classes Trajce Nikolov NICK General 2 Mon Jul 29, 2019 11:19 am View latest post
No new posts Rendering a Depthmap lucasamparo General 2 Tue Jun 04, 2019 6:27 pm View latest post
No new posts Layered rendering with a geometry shader AnyOldName3 General 8 Tue May 14, 2019 11:25 pm View latest post
No new posts off screen rendering with OSG Sorin General 0 Mon May 13, 2019 8:14 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