I've been looking for ways to make sure that the model appears behind objects that are in fron tof it, any sugestions of where to start? A few good tutorials would be helpful!
I couldn't find any tutorial about it either when I was working on this project.
The basic idea is quite simple. Objects in front of the augmented shape are "rendered" in the OpenGL depth buffer ONLY (not in the color buffer). Thus OpenGL considers depth information of these objects afterwards while rendering the whole scene without actually drawing them.
You can first give it a try by simply using a real fixed simple rectangular box, and draw a box of the same size in the OpenGL depth buffer.
im having the same problem as SunflashMace. please advice/assist me... my email is amarzulkiffli88@yahoo.com. please drop by. please..
aznahabas 1 year ago
I've been looking for ways to make sure that the model appears behind objects that are in fron tof it, any sugestions of where to start? A few good tutorials would be helpful!
SunflashMace 2 years ago
I couldn't find any tutorial about it either when I was working on this project.
The basic idea is quite simple. Objects in front of the augmented shape are "rendered" in the OpenGL depth buffer ONLY (not in the color buffer). Thus OpenGL considers depth information of these objects afterwards while rendering the whole scene without actually drawing them.
You can first give it a try by simply using a real fixed simple rectangular box, and draw a box of the same size in the OpenGL depth buffer.
pot2mayo 2 years ago
How did you obtain the depth information for the system? Are you using a stereo camera setup or something similar?
tolkjmm 2 years ago