PDA

View Full Version : how to hide 3D virtual object behind real object?


Darkmax
03-18-2010, 09:56 AM
how in aumented reality i could resolve this problem(this also can be apply for a vr app to hide one virtual object behind another one but not showing the front one)

http://www.student.tue.nl/q/p.r.hermans/FBP/AR-screenshot2.jpg

this image is not mine, i find it in artoolkit forum but it shows what is my problem.

in that thread they told him to use occlude maps but i'm trying to do that but i cant.

in 3ds max i try to use the matte shadow but when i export the model i doesn't work.

I don't know if i can disable the colors of the virtual object

farshizzo
03-18-2010, 10:31 AM
You can use node.disable(viz.COLOR_WRITE) to disable rendering the node to the color buffer. It will still be rendered to the depth buffer, which means it will occlude objects behind it.

Darkmax
03-18-2010, 10:36 AM
thanks it works

goro
05-29-2012, 09:39 AM
I guess <node>.drawOrder(-1) is also should be their...