Announcement

Collapse
No announcement yet.

Lower level access to oculussdk?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Lower level access to oculussdk?

    Hey all,

    I'm wondering if anyone had any sample code on how to access more of the sdk than the variables in the blueprints. In particular, I'd like to have access to the instantaneous velocity and acceleration vectors in ovrPoseStatef. Help is appreciated!

    Cheers
    Gabe

    #2
    I previously had to add functionallity to be able to dismiss the HSW warning at will.

    First I had to define a new virtual function within IHeadmountedDisplay.H
    virtual void HideHSW(void) {}
    Then override the virtual function within OculusRiftHMD.h
    virtual void HideHSW(void) override;
    Define the function in OculusRiftHMD.cpp
    void FOculusRiftHMD::HideHSW(void)
    {
    if (Hmd)
    ovrHmd_DismissHSWDisplay(Hmd);

    }
    I could then call the function with.
    if ( GEngine->HMDDevice.IsValid() )
    GEngine->HMDDevice.Get()->HideHSW();

    Hope that helps.

    Comment

    Working...
    X