Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
num3ric's avatar
num3ric
Honored Guest
10 years ago

Single buffer for two eyes still supported?

Hi,

I was wondering if Oculus still support a single buffer for two eyes in their latest (1.3-1.4) SDK. I have some opengl code using this approach that works fine on the DK2 but not on the CV1. The rendering projection on the right eye seems to be failing... or something. Still debugging it.

There is sample code here that use a single shared texture but it is outdated:
https://developer.oculus.com/documentation/pcsdk/latest/concepts/dg-render/

Thanks.

4 Replies

  • galopin's avatar
    galopin
    Heroic Explorer
    It worked for me in 1.3.2, but i then moved to one swap chain for each eye
  • Hi,
    It supports single buffer. But the CV1 has asymmetric lenses. That means the projection matrix used to render the left eye is different than the right eye. And I didn't read all the code of your sample, but I think the issue is here: it uses the left projection matrix to render both eyes. So
    The rendering projection on the right eye seems to be failing... or something. Still debugging it.



    :smile:
  • num3ric's avatar
    num3ric
    Honored Guest

    Mecrof said:

    Hi,
    It supports single buffer. But the CV1 has asymmetric lenses. That means the projection matrix used to render the left eye is different than the right eye. And I didn't read all the code of your sample, but I think the issue is here: it uses the left projection matrix to render both eyes. So
    The rendering projection on the right eye seems to be failing... or something. Still debugging it.



    :smile:


    Thanks for the responses! And @Mecrof, you were absolutely correct. The issue was caused by an incorrectly cached projection matrix.