highlight selected node

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
emadof85
Posts: 31
Joined: Sun May 25, 2014 6:10 pm

highlight selected node

Post by emadof85 »

i have a tree view that contains all sceneNodes in the scene
when i click on node in the treeView , i want to highlight selected node in the scene
please i just want how to highlight selected node
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Re: highlight selected node

Post by Seven »

if you are asking how to convert the tree item into the selected node, just set each node's ID appropriately, and when selecting the treenode, get the data from it and search for the node with that id.

if you are asking how to highlite a node in the 3d scene,
and your scene uses lighting, when you select the node simply turn it to not use light. It will appear brighter than the remaining nodes.
Post Reply