WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   how to hide 3D virtual object behind real object? (https://forum.worldviz.com/showthread.php?t=2618)

Darkmax 03-18-2010 09:56 AM

how to hide 3D virtual object behind real object?
 
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.herm...creenshot2.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 .drawOrder(-1) is also should be their...


All times are GMT -7. The time now is 07:09 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC