Render: setEyeSeparation

setEyeSeparation(separation)
  • Sets the distance between left and right eye settings in stereo mode.  (3D glasses)

separation:

  • The distance between the left and right eye settings.
  • Type:  float number
    Note:
    • By default stereo mode is turned off. 
       
    • Properties >> Render button >> Stereo >> Stereo
    Sample Code

    ################  set the eye separation in Stereo mode

    # import bge module
    import bge

    # get the render module
    rend = bge.render

    # set the eye separation
    rend.setEyeSeparation(0.1)