17 #include <matrix/vlVector.h>
19 #include <osg/Matrixd>
20 #include <osg/RenderInfo>
30 #include <Varjo_events.h>
31 #include <Varjo_layers.h>
33 #include <Varjo_world.h>
36 #define VARJO_USE_GAZE 1
41 class DtVirtualRealityChannel;
42 class DtVrsGazeMapUpdater;
43 class DtVarjoBeginFrameCallback;
44 class DtVarjoWaitForSyncThread;
95 virtual const std::string& providerName();
98 virtual const std::string& deviceName();
101 virtual bool initializeVR();
104 virtual bool hasFocusViews();
107 virtual bool useVrs();
119 virtual void getProjectionAngles(
vrvVirtualReality::DtEye eye,
double& left,
double& right,
double& bottom,
double& top,
double znear,
double zfar);
125 virtual void commitEyeTexture(osg::RenderInfo& renderInfo,
DtSwapChain* swapChain);
128 virtual void commitHudTexture(osg::RenderInfo& renderInfo,
DtSwapChain* swapChain);
131 virtual void updateOverlayDimensions(
float width,
float height,
float distance,
int pixWidth,
int pixHeight);
137 virtual void beginFrame();
140 virtual void beginRendering();
143 virtual void endRendering();
149 virtual void setHmdPoseOffset(
const DtVector& pos,
const DtQuat& ori);
152 virtual bool getTrackedPose(
DtVector& pos,
DtQuat& ori,
int index);
155 virtual const std::unordered_map<int64_t, DtTrackedMarker>& getTrackedMarkers()
const;
158 virtual bool reset();
161 virtual void triggerAction1();
164 virtual bool shutdown();
167 virtual bool hasTrackedCamera();
179 virtual void startMixedReality();
182 virtual void stopMixedReality();
185 virtual bool supportsMixedReality();
188 virtual bool supportsDepthBufferSubmission();
191 virtual bool supportsRealWorldDepthTesting();
194 virtual void startRealWorldDepthTesting();
197 virtual void stopRealWorldDepthTesting();
200 void setOverlayEnabled(
bool enabled);
203 void calibrateEyeTracking();
208 varjo_Session* findVarjoSystem()
const;
214 static bool isVrAvailable();
219 virtual void initViewports();
222 void commitEyeTexture(
unsigned int viewIndex, varjo_Viewport& viewPort,
int layer, varjo_SwapChain* swapChain, varjo_SwapChain* depthSwapChain);
225 void commitHudTexture(
unsigned int viewIndex, varjo_Viewport viewPort, varjo_SwapChain* swapChain);
228 virtual void updateEyeProjections();
231 virtual void updateEyeProjections(
unsigned int viewIndex,
DtVirtualRealityChannel* vrChannel,
unsigned int layer,
bool updateVarjoViewOnly =
false,
bool isHudView =
false);
234 varjo_Viewport calculateFocusRect(varjo_Viewport contextViewport,
const double focusProjectionMatrix[16],
const double contextProjectionMatrix[16]);
236 #if VARJO_USE_GAZE == 1
237 varjo_Error initGaze();
241 bool getGazeNormalizedCoords(
const osg::Matrixd& leftProjection,
const osg::Matrixd& rightProjection,
242 osg::Vec2* left, osg::Vec2* right)
const;
Drawable and pre Drawcallback that draw full screen quad to update vrs image.
std::vector< varjo_LayerMultiProjView > myMultiprojectionViews
Definition: DtVarjoProvider.h:252
std::vector< varjo_ViewExtensionDepth > myExtDepthViews
Definition: DtVarjoProvider.h:253
bool myEyeTrackingInitalized
Definition: DtVarjoProvider.h:259
Contains DLL export macros.
osg::Vec3d myHmdPostionOffset
Definition: DtVarjoProvider.h:261
std::vector< ViewSettings > myViewSettings
Definition: DtVarjoProvider.h:250
bool myHaveCalibratedEyeTracking
Definition: DtVarjoProvider.h:260
ViewSettings()
CTOR.
Definition: DtVarjoProvider.h:60
A Varjo implementation of the DtVirtualRealityProvider abstract base class.
Definition: DtVarjoProvider.h:49
An abstract interface that provides VR System API services.
A Tracked camera is typically attached to the HMD and can provide position and orientation data in ad...
Definition: DtTrackedCamera.h:27
double myFarClip
Definition: DtVarjoProvider.h:66
Base class for GPU updates of the variable rate shading image Draw a full screen quad using a shader ...
Definition: DtVariableRateShadingImageUpdater.h:26
std::vector< varjo_Viewport > myViewports
Definition: DtVarjoProvider.h:249
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:54
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
DtEye
A virtual reality eye.
Definition: vrvVirtualReality.h:37
varjo_Session * myVarjoSession
Definition: DtVarjoProvider.h:247
osg::Quat myHmdRotationOffset
Definition: DtVarjoProvider.h:262
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
Base implementation of a texture swapchain.
Definition: DtSwapChain.h:37
std::vector< varjo_ViewExtensionDepthTestRange > myExtDepthTestRangeViews
Definition: DtVarjoProvider.h:254
An abstract interface that provides VR System API services. Providers are created and provided to the...
Definition: DtVirtualRealityProvider.h:47
Contains makVrv::DtQuat class.
DtVrOverlayMode
Virtual reality render mode.
Definition: vrvVirtualReality.h:63
A VRV channel that represents the eyes of the HMD A Virtual Reality channel can render in a few diffe...
Definition: DtVirtualRealityChannel.h:30
Object to handle rendering a mixed reality mask object into the scene. Typically the it renders an ob...
Definition: DtMixedRealityMask.h:38
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOverlayCallback.h:32
friend DtVarjoBeginFrameCallback
Definition: DtVarjoProvider.h:52
varjo_World * myVarjoWorld
Definition: DtVarjoProvider.h:264
bool myUseDepthLayers
Definition: DtVarjoProvider.h:251
std::vector< varjo_LayerMultiProjView > myHudViews
Definition: DtVarjoProvider.h:255
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
A utility Quaternion class.
Definition: DtQuat.h:19
std::unordered_map< int64_t, DtTrackedMarker > myTrackedMarkers
Definition: DtVarjoProvider.h:265
varjo_FrameInfo * myFrameInfo
Definition: DtVarjoProvider.h:256
double myNearClip
Definition: DtVarjoProvider.h:65
friend DtVarjoWaitForSyncThread
Definition: DtVarjoProvider.h:53
Wraps functionality of Variable Rate Shading Image.
std::string myDeviceName
Definition: DtVarjoProvider.h:257
A post processing effect responsible for submitting and mirroring the eye views to the VR subsystem...
Definition: DtVirtualRealityPostProcessor.h:34
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitViewCallback.h:30
Holds settings related to a view.
Definition: DtVarjoProvider.h:57
int32_t myViewCount
Definition: DtVarjoProvider.h:248