Highlighting objects #677
Replies: 2 comments 1 reply
-
There isn't a built in way feature that you can enable to add highlighting, instead you'll need to come up with your own scheme for highlighting using the rendering features the the VSG provides. This is a feature that I expect many users will eventually want to implement so a vsgExample would be helpful, so if anyone want to pitch in then please go ahead. I will try to get to this but can't tackle this right away. How to implement highlighting depends upon how you want to highlight an object or objects in the scene. Possibilities are:
Option 1 would the most straight forward as it doesn't require any modification of existing state required to render. Options 2 & 3 would be harder as they were require substitution of state in order to render the subrgaphs. @CarlSandstrom did you have a highlighting effect in mind? |
Beta Was this translation helpful? Give feedback.
-
hello! |
Beta Was this translation helpful? Give feedback.
-
Hi!
I am currently working on a pre-processor for a computational software and currently I am looking on how to use Vsg for displaying 3D objects. When I have selected a component in either the component tree och in the 3D view (not yet implemented), is there a nice way to highlight the selection in the 3D view? I have successfully changed the color of the component by using ..propoerties.dataVariance=DYNAMIC_DATA and change the color data of the node, but then I have to keep track of the old colors. This will of course only change the colors and it would be nice to change the width of the edges of the selected element or something similar to really make it stand out. Is there a good way the highlight an existing object in the scene?
Beta Was this translation helpful? Give feedback.
All reactions