Solid wireframes?

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
lazerblade
Posts: 194
Joined: Thu Mar 18, 2010 3:31 am
Contact:

Solid wireframes?

Post by lazerblade »

I've been playing around with Irrlicht for a while and so far the only way I
could find to do solid wireframes was by using a duplicate mesh with a
different material. But recently, I've become interested in solid wireframes
on many animated models at the same time. That method would double the
number of poly's being rendered, thusly slowing down the frame rate.

I know that in blender you can use a material stack to create solid
wireframes but I'm unaware of any animated formats Irrlicht can import
that are capable of holding a material stack.

So does anybody know of a different way to do solid wireframes in Irrlicht?

P.S:

This is a solid wireframe for those of you knew to the idea:
Image
LazerBlade

When your mind is racing, make sure it's not racing in a circle.

3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You can enable the debug settings to render wireframe, but this also doubles the polygons. Otherwise you'd have to find some shader which renders both things together.
lazerblade
Posts: 194
Joined: Thu Mar 18, 2010 3:31 am
Contact:

Post by lazerblade »

Or I could texture the wireframe onto the mesh, or something...
I know absolutely nothing about shaders, so I'll probably take a different route. I just wanted to know if Irrlicht had something like sceneNode->setMaterialFlag(EMT_SOLID_WIREFRAME, true).

Thanks!
LazerBlade

When your mind is racing, make sure it's not racing in a circle.

3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

Or I could texture the wireframe onto the mesh, or something...
That would be the easiest and fastest way.
multum in parvo
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

Otherwise you'd have to do it in two passes - a solid pass and a wireframe pass. I'm not aware of any way to use a shader to render both at the same time.
puh
Posts: 356
Joined: Tue Aug 26, 2003 3:53 pm

Post by puh »

Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

That is for a cartoon outline. I don't really see what that has to do with solid wireframe :? Anyway like I said texturing the wireframe is VERY easy and will not cost you performance. I strongly suggest you do it that way.
multum in parvo
Post Reply