Page 1 of 1

Solid wireframes?

Posted: Mon Nov 29, 2010 4:48 pm
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

Posted: Mon Nov 29, 2010 5:15 pm
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.

Posted: Mon Nov 29, 2010 6:50 pm
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!

Posted: Mon Nov 29, 2010 7:10 pm
by Adler1337
Or I could texture the wireframe onto the mesh, or something...
That would be the easiest and fastest way.

Posted: Mon Nov 29, 2010 8:09 pm
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.

Posted: Tue Nov 30, 2010 5:42 pm
by puh

Posted: Tue Nov 30, 2010 7:18 pm
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.