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 

Select StateSet subset to render basic colors


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
chunyanggou
Newbie


Joined: 26 Jul 2017
Posts: 1

PostPosted: Wed Jul 26, 2017 9:17 am    Post subject:
Select StateSet subset to render basic colors
Reply with quote

Hi,

I have an application which requires a specific rendering pass of a scenegraph with complete model assets (textures, materials, specialized gl programs, etc.). This pass is special in the sense it only uses per model instance IDs to render an "object ID world" image, instead of using the detailed model assets.

For that purpose I had to manually "pick" a subset of the model StateSet. One one hand, the full-stack statesets incurs performance degradation due to unnecessary GL state changes, so I'd like to strip them as much as possible. On the other hand, stateset attributes such as depth test/alpha test (osg::AlphaFunc, osg::Depth, etc.) are still needed for my purpose (i.e., "object ID world" rendering).

It turned out that this manual "selection" of stateset subset is trial-and-error and error prone.

Does anyone have better idea?

Many thanks!

...

Thank you!

Cheers,
chunyanggou
Back to top
View user's profile Send private message
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 "Memory: Colors" game from ... kornerr General 3 Sat Oct 28, 2017 11:19 am View latest post
No new posts Problem With Osg Texture Colors! Bobykhani General [forum] 1 Tue Oct 10, 2017 8:20 am View latest post
No new posts Problem blending multiple render passes antiro42 General 5 Sat Sep 09, 2017 9:44 am View latest post
No new posts Efficient way to swap colors arennuit General 3 Tue Sep 05, 2017 4:31 pm View latest post
No new posts Render Geographic/Projected coordinat... Bruno Oliveira General 0 Mon Jun 05, 2017 2:58 pm 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