Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kwatters opened this issue Sep 7, 2015 · 1 comment
Open

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

kwatters opened this issue Sep 7, 2015 · 1 comment

Comments

@kwatters
Copy link

kwatters commented Sep 7, 2015

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!

@jherico
Copy link
Member

jherico commented Sep 8, 2015

I'll take a look at the demo and see if I can figure out why that wasn't
working for you. Glad you got it functioning though. Good luck with your
robots.

On Mon, Sep 7, 2015 at 12:10 PM Kevin Watters notifications@github.com
wrote:

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!


Reply to this email directly or view it on GitHub
#13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants