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 

Different colors for a node shared scene graph


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


Joined: 12 Apr 2019
Posts: 22

PostPosted: Thu Jun 13, 2019 12:49 pm    Post subject:
Different colors for a node shared scene graph
Reply with quote

Hi,

I have a situation in which I need different colors for a node in different views, scene graph is shared between views. Can you have a different StateSet for a node in different View to change the color?

Is this even possible?

Thank you!

Cheers,
Catalin
Back to top
View user's profile Send private message
icf80
User


Joined: 12 Apr 2019
Posts: 22

PostPosted: Thu Jun 13, 2019 5:22 pm    Post subject:
Reply with quote

Hi,

My current solution to this is to have the same geode added twice (each with different color) in scene graph with a common parent and during rendering, by using a cull callback I can choose which geode to cull based on the camera object.

I was hoping a more elegant/canonical solution.

Thank you!

Cheers,
Catalin
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 My intro and need help for making graph ElizaMarshal General [forum] 0 Thu Jul 04, 2019 8:09 am View latest post
No new posts Different views hide/show different n... icf80 General 13 Wed Apr 17, 2019 9:56 am View latest post
No new posts Removing objects with shared GL state... AnyOldName3 General 23 Wed Mar 20, 2019 5:05 pm View latest post
No new posts Deep cloning an active root scene node Robert Lockyer General 7 Thu Feb 28, 2019 5:52 pm View latest post
No new posts osg::LOD node not being considered in... Josiah425 General 1 Tue Feb 19, 2019 6:52 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