How to draw wireframe objects with a halo

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
azerty69
Posts: 11
Joined: Tue Jun 11, 2013 1:33 pm

How to draw wireframe objects with a halo

Post by azerty69 »

Hello,

I'm searching for a way to draw wireframe objects with a halo. Which technique would you recommend?

Thanks in advance for any answer.

azerty
chronologicaldot
Competition winner
Posts: 688
Joined: Mon Sep 10, 2012 8:51 am

Re: How to draw wireframe objects with a halo

Post by chronologicaldot »

What do you mean? Do you have an example image? Is the entire object a wireframe mesh but not the halo or is the halo also a wireframe mesh?
As I recall, I believe you can tell irrlicht to draw wireframe. I'd start by checking the SMaterial flags.
azerty69
Posts: 11
Joined: Tue Jun 11, 2013 1:33 pm

Re: How to draw wireframe objects with a halo

Post by azerty69 »

Hi,

@chronologicaldot
Here is an example image: https://docs.google.com/file/d/0Bys1p-N ... sp=sharing

SMaterial.Thickness is for 2D, how to draw bigger lines in wireframe mode?

Thanks in advance,
azerty
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: How to draw wireframe objects with a halo

Post by hendu »

I see no halo in that pic?
azerty69
Posts: 11
Joined: Tue Jun 11, 2013 1:33 pm

Re: How to draw wireframe objects with a halo

Post by azerty69 »

Hi,

@hendu
The image is an example of a scene I want to glow.

I've been advised to use a render texture and a shader. Are there other ways to do it?


Thanks for any reply,
azerty
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Re: How to draw wireframe objects with a halo

Post by ent1ty »

That is the most usual way, yes. You can also add billboard scene nodes with a halo texture, but those are better for example for light sources like street lamps etc. In your case, post processing(rendering to a render texture and then altering that texture. Or you can also render to two textures - one the color, the other a "glow map" that marks the areas to receive glow for increased quality) seems to be a good approach.
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps

Step back! I have a void pointer, and I'm not afraid to use it!
azerty69
Posts: 11
Joined: Tue Jun 11, 2013 1:33 pm

Re: How to draw wireframe objects with a halo [SOLVED]

Post by azerty69 »

Hi,

I've implemented the technic described in the following URL: http://devmaster.net/posts/3100/shader- ... glow-bloom

Here is the result:
Image
Post Reply