WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Mirror imaging the display (https://forum.worldviz.com/showthread.php?t=4267)

yanw 06-14-2012 10:51 AM

Mirror imaging the display
 
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?

Thanks

Y

farshizzo 06-14-2012 12:44 PM

The following code uses a post-process effect to horizontally flip the final rendered image:
Code:

#Flip rendered image horizontally
flipWindow = viz.addWindow(size=(1,1),pos=(0,1),clearMask=0,order=100)
flipWindow.setView(viz.addView(scene=viz.addScene()))
import vizfx.postprocess.manager as pp
from vizfx.postprocess.transform import FlipEffect
pp.getEffectManager(flipWindow).setRenderBufferMode(pp.READ_FRAME_BUFFER)
pp.addEffect(FlipEffect(horizontal=True),window=flipWindow)



All times are GMT -7. The time now is 03:17 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC