Skip to content

Right eye fails to render in default RiftDemo.java #13

@kwatters

Description

@kwatters

I tried out the RiftDemo with the 0.7 Oculus SDK and noticed that the right eye was not rendering in the rift. I made a minor change to the RiftApp.java in initGl() to specify the "Pos" . This seemed to fix the issue for me. With this minor change the 0.7 SDK works great!

...
for (int eye = 0; eye < 2; ++eye) {
layer.Viewport[eye].Size = textureSizes[eye];
layer.Viewport[eye].Pos = new OvrVector2i(0, 0);
}
layer.Viewport[1].Pos.x = layer.Viewport[1].Size.w;
...

Thanks so much for the example! I'm going to be updating the integration with MyRobotLab ( www.myrobotlab.org ) soon to support the Direct Display mode. Thanks for doing all the hard work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions