Forum Discussion

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

Direct Mode Ogre GL HowTo?

Hi,

I am currently working with SDK .5 because of reasons :)
I will update of course but please do not recommend anything along those lines.

I try to use direct mode using GL.
I create a Window using SDL or Ogre.

Extended mode works as expected but with severe refresh rate problems (also as expected).

Now I (want to) use direct mode and the window is shown on my primary window (not the Rift). Sensors and stuff keeps working fine.

What am I missing?
What is the way to go,
Is there a post I have missed that explains just that ?

Update:
I have compiled a minimal example that uses SDL and GL in direct mode.

The problem appears to be the window created by Ogre.
And maybe the rendering done by Ogre.





Best Regards.

1 Reply

  • AllRift's avatar
    AllRift
    Honored Guest
    Hello,

    In the SDK there are samples. In particular "OculusRoomTiny (GL)" demonstrates how to render a scene in opengl.
    I am a beginner and I used it to do a small viewer.
    And it is working in direct mode.

    Looking at its simple code may help ?