![]() |
![]()
| ![]() |
![]()
NAMEvr_metadata - retrieve metadata from a vr bridge SYNOPSISstrtbl or nil
DESCRIPTIONIn order to setup a useful 3d pipeline for working with HMD s, you need access to some metadata. This function is used to retrieve a table of the relevant parameters needed for creating a distortion mesh or a barrel distortion shader that tmach the specified vr device. The currently available keys in strtbl are: [width : display horizontal resolution in pixels], [height : display vertical resolution in pixels], [center : distance from edge to center, (m)], [left_fov : left field of view], [right_fov : right field of view], [left_ar : left aspect ratio], [right_ar : right aspect ratio], [hsep : horizontal separation], [vpos : vertical position], [horizontal : display horizontal physical size, in m], [vertical : display vertical physical size, in m], [eye_display : distance from eyes to display, in m], [ipd : interpupillary distance, in m], [distortion : subtable of 4 floats with lens distortion data], [abberation : subtable of 4 floats with lens distortion data], [projection_left] : suggested HMD left eye projection matrix, [projection_right] : suggesteed HMD right eye projection matrix If the metadata couldn't be accessed at this time due to some problem with the internal state of the vr bridge, or if id doesn't refer to a valid vrbridge instance, the function will return nil. The best indicator for if the bridge metadata has been available or not is after a 'limb_added' event. EXAMPLEfunction vr_metadata0() SEE ALSO:vr_setup(3) vr_maplimb(3)
|