Using Depth Buffer Variables for Collision Detection
Hi,
So first some stuff about our project.
We use the Oculus Rift Sample Enviroment TinyRoom (SDK 0.5.0.1 in OpenGL mode). And use 2 Intel RealSense F200 Camera's attached on the front of the RIft to get the pictures and use it in our Virtual Enviroment.
One Camera is for the left eye and one camera for the right eye.
The intel Realsense is a Depth Camera so we can get the depth variables from every picture.
NOW THE PLAN IS!
Use the Data from the Depth buffer, to get the information of our Enviroment and compare it (yes i have to change the camera variables) with our camera depth variables for masking and collision detection.
BUT THE PROBLEM IS!!
I need help with the usage of the Depth variables of the Enviroment.
I dont really know how to get the Depth Variables of the Enviroment, and how to use it properly.
I was reading so much about all of this, but i am not really sure how to do it properly.
And because i dont really know how this will influence the performance of the program, so i decided to ask here.
We already have the Depth Data of the Camera's in our Programm, so we just need the data of the Depth Buffer of the Program.
I hope you guys can help me with this.
Thank you for your Help!!!
Tom
So first some stuff about our project.
We use the Oculus Rift Sample Enviroment TinyRoom (SDK 0.5.0.1 in OpenGL mode). And use 2 Intel RealSense F200 Camera's attached on the front of the RIft to get the pictures and use it in our Virtual Enviroment.
One Camera is for the left eye and one camera for the right eye.
The intel Realsense is a Depth Camera so we can get the depth variables from every picture.
NOW THE PLAN IS!
Use the Data from the Depth buffer, to get the information of our Enviroment and compare it (yes i have to change the camera variables) with our camera depth variables for masking and collision detection.
BUT THE PROBLEM IS!!
I need help with the usage of the Depth variables of the Enviroment.
I dont really know how to get the Depth Variables of the Enviroment, and how to use it properly.
I was reading so much about all of this, but i am not really sure how to do it properly.
And because i dont really know how this will influence the performance of the program, so i decided to ask here.
We already have the Depth Data of the Camera's in our Programm, so we just need the data of the Depth Buffer of the Program.
I hope you guys can help me with this.
Thank you for your Help!!!
Tom
