WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-09-2016, 09:22 AM
dcnieho dcnieho is offline
Member
 
Join Date: Feb 2011
Posts: 59
monocular rendering in HMD

Hi Guys,

Is there an easy way to only render to one of the eyes in an HMD, presenting black/nothing to the other? HMDs in question are the Rift DK2 and the HTC Vive (in case solutions are specific to the HMD). If that's not easily possible, I'll just look at getting an eye-patch, no worries.

Thanks!
Reply With Quote
  #2  
Old 06-10-2016, 12:44 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,461
You could render a quad over just one eye:

Code:
fadeQuad = viz.addTexQuad(pos=[0,0,0.1],scale=[5000,5000,1])
fadeQuad.setReferenceFrame(viz.RF_VIEW)
fadeQuad.renderToEye(viz.LEFT_EYE)
fadeQuad.color(viz.BLACK)
fadeQuad.drawOrder(100)
Reply With Quote
  #3  
Old 06-13-2016, 08:01 AM
dcnieho dcnieho is offline
Member
 
Join Date: Feb 2011
Posts: 59
Thanks! In my case the scene is real simple, renderToEye() to hide the objects i only want to see in one eye is even simpler. Nice!
Reply With Quote
  #4  
Old 06-21-2016, 12:29 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,461
Rather than using a quad to hide the scene like I posted earlier, an easier solution is to set one eye to an empty scene:

Code:
import viz
import vizact
viz.go(viz.STEREO_HORZ)

viz.addChild('piazza.osgb')

#Show or hide scene 1 for the right eye
vizact.onkeydown('1',viz.MainWindow.setScene,1,eye=viz.RIGHT_EYE)
vizact.onkeydown('2',viz.MainWindow.setScene,2,eye=viz.RIGHT_EYE)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Temporarily cease Oculus DK2 rendering or hide display willpower2727 Vizard 5 09-07-2016 09:39 AM
pylink world rendering VizMars Vizard 4 05-09-2016 07:43 AM
Turning off rendering mhtong Vizard 1 02-27-2014 01:02 PM
Any way to increase rendering resolution v-Salik Vizard 3 09-12-2007 05:57 PM
Texture map rendering problem JRichizzle Vizard 4 03-04-2004 08:20 AM


All times are GMT -7. The time now is 11:56 AM.


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