View Full Version : Mirror imaging the display

06-14-2012, 10:51 AM
Hi all,

We are displaying our virtual world through a mirror. Because of this we would like to mirror the output of vizard so that the left of the world is presented on the right of the screen and vice versa. The top of the world still needs to be presented at the top screen so simple rotations available through the video card do not work.

Does anybody know if this is possible to do in Vizard?



06-14-2012, 12:44 PM
The following code uses a post-process effect to horizontally flip the final rendered image:#Flip rendered image horizontally
flipWindow = viz.addWindow(size=(1,1),pos=(0,1),clearMask=0,ord er=100)
flipWindow.setView(viz.addView(scene=viz.addScene( )))
import vizfx.postprocess.manager as pp
from vizfx.postprocess.transform import FlipEffect
pp.getEffectManager(flipWindow).setRenderBufferMod e(pp.READ_FRAME_BUFFER)
pp.addEffect(FlipEffect(horizontal=True),window=fl ipWindow)