![]() |
#1
|
|||
|
|||
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! |
#2
|
|||
|
|||
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) |
#3
|
|||
|
|||
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!
|
#4
|
|||
|
|||
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) |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Temporarily cease Oculus DK2 rendering or hide display | willpower2727 | Vizard | 5 | 09-07-2016 08:39 AM |
pylink world rendering | VizMars | Vizard | 4 | 05-09-2016 06:43 AM |
Turning off rendering | mhtong | Vizard | 1 | 02-27-2014 12:02 PM |
Any way to increase rendering resolution | v-Salik | Vizard | 3 | 09-12-2007 04:57 PM |
Texture map rendering problem | JRichizzle | Vizard | 4 | 03-04-2004 07:20 AM |