Page 1 of 1

Halo effect

Posted: Mon Jul 21, 2008 3:12 am
by noob2008
Can you do this in Irrlicht:

1. Add cube node
2. Increase the scale of the cube then blur the cube node (maybe with a shader) and render this to the stencil buffer
3. Blend the buffer and render the scene

Thus creating a soft colored halo to the cube kind of like a stencil shadow but with 0 depth something like the image below.

An example/code snippet would be very much appreciated

Thanks

Image

Posted: Mon Jul 21, 2008 2:12 pm
by JP
Yes this is entirely possible.

There are tutorials with the SDK that show you how to use shaders and how to render to texture.

So basically render your cube to texture and then draw that texture onto a full screen quad using a blurring shader.

Posted: Mon Nov 09, 2009 9:19 am
by new3D
Hi guys,
Noone has a sample code for this effect?
Thank you in advance

Posted: Mon Nov 09, 2009 3:05 pm
by Halifax
No one probably has code on hand, but if you are a competent programmer it shouldn't be a problem to produce what JP said above. And if it is, then you could go the old-school way and do a stencil buffer halo effect, except it won't have the falloff that you would get by doing JP's way.