Hide vertices of a mesh that are hidden by another

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
lpb313
Posts: 4
Joined: Mon Jul 19, 2010 2:29 pm
Location: IRIT - Toulouse France

Hide vertices of a mesh that are hidden by another

Post 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.
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Post 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.
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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=
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post 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
Post Reply