Transparency

The flickering of the front windows of the house, noticeable in both Inspector and Vizard is an alpha related issue. When rendering with alpha the final image is a blending of two or more objects. Depending on the combination of alpha objects and their placement, issues can arise with the final blended image.

This can be resolved by telling Vizard that each of the windows should be drawn according to the transparent draw order. First it will be necessary to get a handle to each window by name. Since the window geometry do not yet have names, they can be assigned in Inspector.

Select the window pane on the front left of the house. The associated node is highlighted in Inspector. Find the node directly above that and rename it to 'window1' as in the image below:

Repeat this process for all 9 windows on the front of the house, naming them in order 'window2', 'window3'....'window9'. Then save the file

Open up testHouse.py in the Vizard editor and add the following lines of code that set the transparent draw order of the windows:

house.setTransparentDrawOrder('window1',viz.OP_ROOT)
house.setTransparentDrawOrder('window2',viz.OP_ROOT)
house.setTransparentDrawOrder('window3',viz.OP_ROOT)
house.setTransparentDrawOrder('window4',viz.OP_ROOT)
house.setTransparentDrawOrder('window5',viz.OP_ROOT)
house.setTransparentDrawOrder('window6',viz.OP_ROOT)
house.setTransparentDrawOrder('window7',viz.OP_ROOT)
house.setTransparentDrawOrder('window8',viz.OP_ROOT)
house.setTransparentDrawOrder('window9',viz.OP_ROOT)

Run the script and the flickering should be gone.


Back: Lighting: Vizard

Next: Sky Models