Any way to keep stereo render mode in vred go?

Any way to keep stereo render mode in vred go?

Anonymous
Not applicable
568 Views
1 Reply
Message 1 of 2

Any way to keep stereo render mode in vred go?

Anonymous
Not applicable

I wish to export a vred go exe program that keep the stereo render mode(sbs squeezed) and stereo settings too, for now it is only a 2d mode even the camera is in 3d mode when exporting the scene.

 

0 Likes
Accepted solutions (1)
569 Views
1 Reply
Reply (1)
Message 2 of 2

sinje_thiedemann
Autodesk
Autodesk
Accepted solution

Add this to Edit > Script editor before exporting to VRED Go:

enableStereo(-1, True, True, 4, 63.0, 1500.0)

mode 4 is "left/right split half". You find the numbers for the other modes in the documentation of enableStereo (API v1) if this is not the mode you need. 63 is default eye separation.

VRED Go runs the embedded script automatically.

 

If you need to switch stereo on and off, you can define shortcuts to do so also by script: Press key "1" to enable stereo, "2" to disable.

def stereoOn():
    enableStereo(-1, True, True, 4, 63.0, 1500.0)
def stereoOff():
    enableStereo(-1, False, True, 4, 63.0, 1500.0)

key1 = vrKey(Key_1)
key1.connect(stereoOn)
key2 = vrKey(Key_2)
key2.connect(stereoOff)