![]() |
VR-Forces 4.10 Class Documentation
|
A Varjo implementation of the DtVirtualRealityProvider abstract base class. More...

Classes | |
| struct | ViewSettings |
| Holds settings related to a view. More... | |
Public Member Functions | |
| DtVarjoProvider (DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtVarjoProvider () |
| DTOR. More... | |
| virtual DtSubmitOverlayCallback * | createOverlayCallback (osg::Texture *tex, DtDe &de, DtVirtualRealityDriver &driver) |
| create a system specific overlay callback More... | |
| virtual DtSubmitViewCallback * | createViewCallback (DtVirtualRealityPostProcessor &pp, DtVirtualRealityDriver &driver, vrvVirtualReality::DtEye eye) |
| create a system specific view callback More... | |
| virtual const std::string & | providerName () |
| get the name of this VR System provider More... | |
| virtual const std::string & | deviceName () |
| some systems can support multiple devices. Get the name of the attached device More... | |
| virtual bool | initializeVR () |
| initialize the VR subsystem More... | |
| virtual bool | hasFocusViews () |
| does this headset support focus views More... | |
| virtual bool | useVrs () |
| should we use variable rate shading More... | |
| virtual DtVariableRateShadingImageUpdater * | findVrsUpdater (DtVirtualRealityChannel *channel) |
| return a vrs updater allocating it if needed More... | |
| virtual void | getRecommendedRenderTargetSize (int &width, int &height, vrvVirtualReality::DtEye whichEye) |
| get recommended VR target size More... | |
| virtual void | getProjectionAngles (vrvVirtualReality::DtEye eye, double &left, double &right, double &bottom, double &top, double znear, double zfar) |
| get recommended projection frustum angles in degrees. Znear and zFar are passed in More... | |
| virtual osg::Matrixd | getEyeToHeadTransform (vrvVirtualReality::DtEye eye) |
| get the head to eye transform More... | |
| virtual void | tick () |
| update the VR system More... | |
| virtual bool | getHmdPose (DtVector &pos, DtQuat &ori) |
| get the HMD pose More... | |
| virtual void | setHmdPoseOffset (const DtVector &pos, const DtQuat &ori) |
| set an constant offset to the hmd pose More... | |
| virtual bool | getTrackedPose (DtVector &pos, DtQuat &ori, int index) |
| get the pose of a tracked item More... | |
| virtual const std::unordered_map< int64_t, DtTrackedMarker > & | getTrackedMarkers () const |
| returns the map of currently tracked markers More... | |
| virtual bool | reset () |
| reset the HMD More... | |
| virtual bool | shutdown () |
| shutdown the VR subsystem More... | |
| virtual bool | hasTrackedCamera () |
| check if there is a tracked camera More... | |
| virtual DtTrackedCamera * | findTrackedCamera () |
| get the tracked camera of the VR system. More... | |
| virtual DtMixedRealityMask * | findMixedRealityMask () |
| create a mixed reality mask allowing provider specific implementations More... | |
| virtual bool | useStereoOverlay () |
| should the overlay be rendered as strereo to another render texture More... | |
| virtual bool | supportsDirectMirroring () |
| does this provider handle displaying the mirror view More... | |
| virtual void | startMixedReality () |
| start mixed reality camera and blending etc More... | |
| virtual void | stopMixedReality () |
| stop mixed reality camera and blending etc More... | |
| virtual bool | supportsMixedReality () |
| reuturns true if the headset is capable of supporting mixed reality More... | |
| virtual bool | supportsDepthBufferSubmission () |
| \ breif returns true if the headset supports depth buffer submission for positional warp etc More... | |
| virtual bool | supportsRealWorldDepthTesting () |
| \ breif returns true if the headset supports depth testing against the real world More... | |
| virtual void | startRealWorldDepthTesting () |
| \ breif start performing real world depth testing More... | |
| virtual void | stopRealWorldDepthTesting () |
| \ breif stop performing real world depth testing More... | |
| void | setOverlayEnabled (bool enabled) |
| set whether or not the overlay is enabled and submitted to the Varjo system More... | |
| void | calibrateEyeTracking () |
| varjo_Session * | findVarjoSystem () const |
| non-virtual functions provide Varjo specific functionality. More... | |
| void | commitEyeTexture (vrvVirtualReality::DtEye eye, varjo_SwapChain *swapChain, varjo_SwapChain *depthSwapChain, osg::RenderInfo &renderInfo) |
| internal commit an eye texture to the Varjo system More... | |
| void | commitEyeTexture (unsigned int viewIndex, varjo_Viewport &viewPort, int layer, varjo_SwapChain *swapChain, varjo_SwapChain *depthSwapChain) |
| internal commit an eye texture to the Varjo system More... | |
| void | commitHudTexture (unsigned int viewIndex, int width, int height, varjo_SwapChain *swapChain, osg::RenderInfo &renderInfo) |
| internal commit a hud texture to the varjo system More... | |
Public Member Functions inherited from makVrv::DtVirtualRealityProvider | |
| DtVirtualRealityProvider (DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtVirtualRealityProvider () |
| DTOR. More... | |
| virtual bool | mixedRealityRunning () const |
| returns true if mixed reality is active and running More... | |
| virtual bool | realWorldDepthTestingEnabled () const |
| \ brief returns true if real world depth testing is enabled More... | |
Static Public Member Functions | |
| static bool | isVrAvailable () |
| Is this VR system available and an HMD connected for use. More... | |
Protected Member Functions | |
| virtual void | beginFrame () |
| pretick signal call to begin the frame More... | |
| virtual void | beginRendering () |
| postupdate renderer call to begin rendering More... | |
| virtual void | endRendering () |
| posttick signal call to end rendering More... | |
| virtual void | initViewports () |
| initialize the VR viewports More... | |
| virtual void | updateEyeProjections () |
| relays projection and eye transforms from varjo to channels/views. More... | |
| virtual void | updateEyeProjections (unsigned int viewIndex, DtVirtualRealityChannel *vrChannel, unsigned int layer, bool updateVarjoViewOnly=false, bool isHudView=false) |
| relays projection and eye transforms from varjo to a specific channel More... | |
| varjo_Viewport | calculateFocusRect (varjo_Viewport contextViewport, const double focusProjectionMatrix[16], const double contextProjectionMatrix[16]) |
| calculate a new focus rect based on the context rect and projection matrix More... | |
| varjo_Error | initGaze () |
| initalise the varjo gaze tracking More... | |
| bool | getGazeNormalizedCoords (const osg::Matrixd &leftProjection, const osg::Matrixd &rightProjection, osg::Vec2 *left, osg::Vec2 *right) const |
| brief calculate normalised gaze coords More... | |
Private Member Functions | |
| DtVarjoProvider () | |
| default CTOR. More... | |
| DtVarjoProvider (const DtVarjoProvider &) | |
| default copy constructor More... | |
| DtVarjoProvider & | operator= (const DtVarjoProvider &) |
| assignment operator More... | |
A Varjo implementation of the DtVirtualRealityProvider abstract base class.
| makVrv::DtVarjoProvider::DtVarjoProvider | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
default CTOR.
|
private |
default copy constructor
|
private |
assignment operator
|
virtual |
create a system specific overlay callback
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
create a system specific view callback
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
get the name of this VR System provider
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
some systems can support multiple devices. Get the name of the attached device
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
initialize the VR subsystem
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
does this headset support focus views
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
should we use variable rate shading
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
return a vrs updater allocating it if needed
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
get recommended VR target size
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
get recommended projection frustum angles in degrees. Znear and zFar are passed in
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
get the head to eye transform
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
update the VR system
Implements makVrv::DtVirtualRealityProvider.
get the HMD pose
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
set an constant offset to the hmd pose
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
get the pose of a tracked item
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
returns the map of currently tracked markers
|
virtual |
reset the HMD
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
shutdown the VR subsystem
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
check if there is a tracked camera
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
get the tracked camera of the VR system.
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
create a mixed reality mask allowing provider specific implementations
Implements makVrv::DtVirtualRealityProvider.
|
virtual |
should the overlay be rendered as strereo to another render texture
Reimplemented from makVrv::DtVirtualRealityProvider.
|
virtual |
does this provider handle displaying the mirror view
Reimplemented from makVrv::DtVirtualRealityProvider.
|
virtual |
start mixed reality camera and blending etc
Reimplemented from makVrv::DtVirtualRealityProvider.
|
virtual |
stop mixed reality camera and blending etc
Reimplemented from makVrv::DtVirtualRealityProvider.
|
virtual |
reuturns true if the headset is capable of supporting mixed reality
Reimplemented from makVrv::DtVirtualRealityProvider.
|
virtual |
\ breif returns true if the headset supports depth buffer submission for positional warp etc
Reimplemented from makVrv::DtVirtualRealityProvider.
|
virtual |
\ breif returns true if the headset supports depth testing against the real world
Reimplemented from makVrv::DtVirtualRealityProvider.
|
virtual |
\ breif start performing real world depth testing
Reimplemented from makVrv::DtVirtualRealityProvider.
|
virtual |
\ breif stop performing real world depth testing
Reimplemented from makVrv::DtVirtualRealityProvider.
| void makVrv::DtVarjoProvider::setOverlayEnabled | ( | bool | enabled | ) |
set whether or not the overlay is enabled and submitted to the Varjo system
| void makVrv::DtVarjoProvider::calibrateEyeTracking | ( | ) |
| varjo_Session* makVrv::DtVarjoProvider::findVarjoSystem | ( | ) | const |
non-virtual functions provide Varjo specific functionality.
return the Varjo specific session
| void makVrv::DtVarjoProvider::commitEyeTexture | ( | vrvVirtualReality::DtEye | eye, |
| varjo_SwapChain * | swapChain, | ||
| varjo_SwapChain * | depthSwapChain, | ||
| osg::RenderInfo & | renderInfo | ||
| ) |
internal commit an eye texture to the Varjo system
| void makVrv::DtVarjoProvider::commitEyeTexture | ( | unsigned int | viewIndex, |
| varjo_Viewport & | viewPort, | ||
| int | layer, | ||
| varjo_SwapChain * | swapChain, | ||
| varjo_SwapChain * | depthSwapChain | ||
| ) |
internal commit an eye texture to the Varjo system
| void makVrv::DtVarjoProvider::commitHudTexture | ( | unsigned int | viewIndex, |
| int | width, | ||
| int | height, | ||
| varjo_SwapChain * | swapChain, | ||
| osg::RenderInfo & | renderInfo | ||
| ) |
internal commit a hud texture to the varjo system
|
static |
Is this VR system available and an HMD connected for use.
May be called without instantiating the provider.
|
protectedvirtual |
pretick signal call to begin the frame
|
protectedvirtual |
postupdate renderer call to begin rendering
|
protectedvirtual |
posttick signal call to end rendering
|
protectedvirtual |
initialize the VR viewports
|
protectedvirtual |
relays projection and eye transforms from varjo to channels/views.
|
protectedvirtual |
relays projection and eye transforms from varjo to a specific channel
|
protected |
calculate a new focus rect based on the context rect and projection matrix
|
protected |
initalise the varjo gaze tracking
|
protected |
brief calculate normalised gaze coords
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
out vrs updater
|
protected |
store a handle to the driver to avoid repeated lookup