Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions alvr/server_openvr/cpp/alvr_server/HMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,3 +367,11 @@ void Hmd::GetProjectionRaw(vr::EVREye eye, float* left, float* right, float* top
vr::DistortionCoordinates_t Hmd::ComputeDistortion(vr::EVREye, float u, float v) {
return { { u, v }, { u, v }, { u, v } };
}

bool Hmd::ComputeInverseDistortion(
vr::HmdVector2_t* pResult, vr::EVREye eEye, uint32_t unChannel, float fU, float fV
) {
// Fail and hope everything is fine, this assumes false == fail the documentation doesn't
// specify
return false;
}
4 changes: 4 additions & 0 deletions alvr/server_openvr/cpp/alvr_server/HMD.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,8 @@ class Hmd : public TrackedDevice, vr::IVRDisplayComponent {
virtual void
GetProjectionRaw(vr::EVREye eEye, float* pfLeft, float* pfRight, float* pfTop, float* pfBottom);
virtual vr::DistortionCoordinates_t ComputeDistortion(vr::EVREye eEye, float fU, float fV);
// TODO: Implement?
virtual bool ComputeInverseDistortion(
vr::HmdVector2_t* pResult, vr::EVREye eEye, uint32_t unChannel, float fU, float fV
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void OvrDirectModeComponent::Present(vr::SharedTextureHandle_t syncTexture) {
m_presentMutex.unlock();
}

void OvrDirectModeComponent::PostPresent() {
void OvrDirectModeComponent::PostPresent(const Throttling_t* pThrottling) {
Debug("OvrDirectModeComponent::PostPresent");

WaitForVSync();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class OvrDirectModeComponent : public vr::IVRDriverDirectModeComponent {

/** Called after Present to allow driver to take more time until vsync after they've
* successfully acquired the sync texture in Present.*/
virtual void PostPresent();
virtual void PostPresent(const Throttling_t* pThrottling);

void CopyTexture(uint32_t layerCount);

Expand Down
2 changes: 1 addition & 1 deletion openvr
Submodule openvr updated 179 files