WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-13-2016, 01:30 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Oculus mirror window in mono

Currently, the Oculus mirror window is rendered in stereo mode, showing both left and right eye views. To change this and render in mono use the following code. It can be added to the postInit function of the vizconnect file or directly in the script that adds the Oculus if you're not using vizconnect:

Code:
import vizact
import vizfx.postprocess

monoWindow = viz.addWindow(size=(1,1), pos=(0,1), scene=viz.addScene())
monoQuad = viz.addTexQuad(parent=viz.ORTHO, scene=monoWindow)
monoQuad.setBoxTransform(viz.BOX_ENABLED)
monoQuad.setTexQuadDisplayMode(viz.TEXQUAD_FILL)
texture = vizfx.postprocess.getEffectManager().getColorTexture()

def UpdateTexture():
    monoQuad.texture(texture)
vizact.onupdate(0, UpdateTexture)

viz.window.setFullscreenMonitor(2)
viz.window.setFullscreen(True)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xbox controller and Oculus DK2 prilpi Vizard 17 03-28-2016 05:00 AM
3D text oculus for right to left languages bbb Vizard 2 01-16-2016 07:02 AM
Multiple post-process effects with oculus rift lklab Vizard 2 03-13-2015 01:48 PM
Oculus runtime disrupts clustering to mirror DK2 display performlabrit Vizard 1 01-23-2015 07:00 AM
Oculus DK1 and DK2 in Vizard 5 Jeff Vizard 3 10-02-2014 11:00 AM


All times are GMT -7. The time now is 05:38 AM.


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