PDA

View Full Version : Peek Effect in Inspector


pcatalano
03-17-2011, 12:19 PM
Inspector is a really handy little tool, thanks for including it in Vizard 4.

The visual effect when you turn "peek" on is nice (unselected objects are faded out). Is it possible to replicate this effect in Vizard?

farshizzo
03-17-2011, 03:44 PM
The peek feature requires low-level access to the scene graph, so you won't be able to fully replicate this feature using built-in Vizard commands.

Basically, it renders the entire scene as usual, then renders a semi-transparent quad over the screen that is the same color as the background. This is what makes everything look faded. Finally, it renders just the selected node. This last part requires some low-level tricks in order for the selected node to appear correctly.