openscenegraph / OpenSceneGraph

OpenSceneGraph git repository
http://www.openscenegraph.org
Other
3.19k stars 1.41k forks source link

how can I highlight an object? #1091

Open fililili opened 2 years ago

fililili commented 2 years ago

I have such a requirement: when users move their mouse on an object the object will be highlight and when users move their mouse away an object the object will be normal. I don't know how to do that. If I change the drawable's attributes corresponding to the object, many obect will be highlight because one drawable may correspond to many different objects due to different parents and grandparents. So how can I change the object to highlight independently? Does such an algorithm really exist?

fililili commented 2 years ago

dude, during this time I found usd(universal scene description), I think it's layer composition algorithm can solve my problems.