Stay organized with collections Save and categorize content based on your preferences.
Describes the stereoscopic rendering details of an eye.
Nested Classes class Eye.Type Defines the constants identifying the current eye type. Public Constructors Eye(int type)
Creates a new set of eye parameters.
Public Methods float[] getEyeView()
Returns a matrix that transforms from the camera to the current eye.
FieldOfView getFov()
Returns the field of view for this eye.
float[] getPerspective(float zNear, float zFar)
Convenience method that returns the perspective projection matrix for this eye.
boolean int getType()
Returns the eye type this object refers to.
Viewport void Inherited Methods From class java.lang.Object boolean final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
Public Constructors public Eye (int type)Creates a new set of eye parameters.
Parameters type One of theEye.Type
constants describing the eye this object refers to. Behavior is undefined if an invalid eye constant is provided. Public Methods public float[] getEyeView ()
Returns a matrix that transforms from the camera to the current eye.
This matrix should premultiply the camera matrix.
Assumes a scale of 1 world unit = 1 meter when applying the interpupillary distance. If this not your case, make sure to call android.opengl.Matrix.scaleM
on this matrix to correct it.
The transformation includes head tracking rotation, position shift and interpupillary distance shift. Use this if you just want to get an eye view from your normal view.
ReturnsReturns the field of view for this eye.
Use the getFov().toPerspectiveMatrix
method to generate the appropriate perspective projection matrix to use.
Convenience method that returns the perspective projection matrix for this eye.
Calls getFov().toPerspectiveMatrix
to generate the perspective matrix to use.
Whether the projection matrix is stale and should be recomputed.
ReturnsReturns the eye type this object refers to.
ReturnsEye.Type
constants.Returns the viewport for this eye.
ReturnsForces to clean up any cached projection matrices.
Called by the framework when projection parameters change between frames. Should be called if the eye's field of view object returned by getFov()
is changed.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["The `Eye` class describes the stereoscopic rendering details of an eye, including field of view, viewport, and perspective."],["It provides methods to obtain the transformation matrix from the camera to the eye, considering head tracking and interpupillary distance."],["Developers can retrieve the field of view and generate the perspective projection matrix for each eye."],["The `Eye` class helps manage projection changes and provides access to the eye type and viewport information."],["It uses the `Eye.Type` nested class to define constants identifying the current eye type (e.g., left or right)."]]],["The `Eye` class manages stereoscopic rendering details for an eye. Key actions include creating `Eye` objects with a specified type, retrieving the transformation matrix from the camera to the eye via `getEyeView()`, and getting the field of view (`getFov()`). It can also obtain the perspective projection matrix (`getPerspective()`) and viewport (`getViewport()`). The class provides methods to check and set the projection matrix's staleness (`getProjectionChanged()`, `setProjectionChanged()`) and retrieve the eye type (`getType()`).\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4