cancel
Showing results for 
Search instead for 
Did you mean: 

Converting PC Opengl project to use 0.8

Mars3D
Honored Guest
Hi,

I'm trying to convert my project to use the latest SDK, I've had it working with an older version(0.5). I have attached what I am getting on screen if I just try to show a clear white background, does anyone know what could be causing this?

I've tried to extract the right code from the 'OcculusRoomTiny ' example project, but the inter-dependencies make it difficult to work with. Has anyone got a more minimal opengl example for 0.7 or 0.8?

The OcculusRoomTiny project works fine so there is nothing wrong with the hardware/configuration.

Thanks for any help.
5 REPLIES 5

Mars3D
Honored Guest
Ok, I've solved the problem.

I wasn't setting the layer viewport positions to zero, They were defaulting to a random number.

Pippopluto
Honored Guest
Hi I'm also looking for a 0.7 minimal example. I'm new at oculus programming and I'm trying to do the same program you do. Is possible to have a look on your code? Here or in pm, or i can give you my email

jherico
Adventurer
"Pippopluto" wrote:
Hi I'm also looking for a 0.7 minimal example.


Here is a self-contained example using the 0.7 SDK.

https://github.com/jherico/OculusRiftIn ... tained.cpp

Mecrof
Explorer
Hi,
Here is a very-simple example using the Oculus like a simple 3D screen (no tracking). But it uses the 0.8 SDK. It also uses a 3D camera (ZED) however it's easy to remove this part.
https://github.com/stereolabs/zed-oculus

I used it for my own project but I don't know if their example is a good implementation of the Rift SDK.

Mecrof
Explorer
See this thread for simple 0.8 SDK application's source: https://forums.oculus.com/viewtopic.php?f=20&t=29613