Rendering the whole scene as wireframe

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
Donner
Posts: 87
Joined: Fri May 18, 2007 11:27 am

Rendering the whole scene as wireframe

Post by Donner »

Hi,

is there a way of rendering the whole scene as wireframe?

If I have two cameras which render in split screen mode and I want one of them to render in wireframe mode, how do I do that?

Setting the material of every object wireframe before the second cameras rendering process and back to normal after that is kind of annoying. Also, setting a global material to the driver would override all the other material attributes of all the objects as well...

is there a solution to this problem?
Thanks,
D.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You'd have to use the override material. You can enable and disable the material settings which are to be overridden.
Donner
Posts: 87
Joined: Fri May 18, 2007 11:27 am

Post by Donner »

hybrid wrote:You'd have to use the override material. You can enable and disable the material settings which are to be overridden.
How can I enable specific settings? I can only find IVideoDriver::setMaterial(const SMaterial& material), and that function takes only the material as parameter...
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

The anaglyph rendering snippet shows how to use the override material.

I found this thread by searching for 'override AND material'. The search function is pretty useful. :wink:
"Whoops..."
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Hmm, it is indeed the case that I only show the 3d override in the tutorials. I'll add the other one as well in the next version.
Post Reply