Halo effect

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
noob2008
Posts: 5
Joined: Fri May 30, 2008 8:10 am

Halo effect

Post 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
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post 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.
Image Image Image
new3D
Posts: 1
Joined: Mon Nov 09, 2009 9:17 am

Post by new3D »

Hi guys,
Noone has a sample code for this effect?
Thank you in advance
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post 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.
TheQuestion = 2B || !2B
Post Reply