Class VRSettings
java.lang.Object
com.codename1.vr.VRSettings
Configuration for a
VRView. Fluent builder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfovYDegrees(float fov) The vertical field of view per eye in degrees.floatgetFar()The far clip plane distance.floatThe vertical field of view per eye in degrees.floatThe interpupillary distance in meters.floatgetNear()The near clip plane distance.ipdMeters(float ipd) The interpupillary distance - the world-space separation between the two eyes - in meters.booleanisStereo()True when the view renders side-by-side stereo.nearFar(float near, float far) The near and far clip plane distances.stereo(boolean stereo) Whether the view renders side-by-side stereo (true, the default) or a single centered viewpoint.
-
Constructor Details
-
VRSettings
public VRSettings()
-
-
Method Details
-
ipdMeters
The interpupillary distance - the world-space separation between the two eyes - in meters. Default0.064(the human average). -
fovYDegrees
The vertical field of view per eye in degrees. Default90. -
nearFar
The near and far clip plane distances. Defaults0.1and100. -
stereo
Whether the view renders side-by-side stereo (true, the default) or a single centered viewpoint. -
getIpdMeters
public float getIpdMeters()The interpupillary distance in meters. -
getFovYDegrees
public float getFovYDegrees()The vertical field of view per eye in degrees. -
getNear
public float getNear()The near clip plane distance. -
getFar
public float getFar()The far clip plane distance. -
isStereo
public boolean isStereo()True when the view renders side-by-side stereo.
-