Page 1 of 1

Hide vertices of a mesh that are hidden by another

Posted: Tue May 17, 2011 3:05 pm
by lpb313
Hello,

I come to ask advice on a problem I can not solve!
I work on a simulated home room in which are placed surveillance cameras / presence. My goal is to easily visualize vision's cone of these cameras. I added a transparent cone in my scene, work fine. The problem comes from that the cone is visible under objects in the scene, for example under the bed (see picture ).

Have you any ideas for solve solve my problems?
Tracks explored:
tested different parameters of zbuffer test, no effect;
replaced the cone by a light, but the visual is not suitable in my case;
considered using the principle of ray tracing, but it makes me a little scared!

Thank you for your advice and help.

Posted: Wed May 18, 2011 2:16 am
by mongoose7
You're problem looks like one of CSG, which you can't do in Irrlicht. Maybe you could build your own cone without the bits under the bed. Or use lighting so the cone under the bed is in darkness.

Posted: Wed May 18, 2011 8:48 am
by CuteAlien
Strange, drawing with ignoring z-buffer should work for transparent as they are drawn last. But maybe the recent discussion here about drawing-order can help you find a solution: http://irrlicht.sourceforge.net/phpBB2/ ... highlight=

Posted: Wed May 18, 2011 11:45 am
by Radikalizm
@CuteAlien: I don't think he means that he has a problem with transparent drawing order

As said by mongoose7, you need CSG or a raytracing solution to fix this