[solved] Howto change the color in the wireframe modus

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
axel
Posts: 3
Joined: Fri Jun 05, 2009 2:42 pm
Location: Munich (Germany)

[solved] Howto change the color in the wireframe modus

Post by axel »

I need to have a colored wireframe model -
I did not find the answer - neither here nor in the source...

Does anyone know how to get a colored wireframe (EMF_WIREFRAME=true)?
Is it impossible while in the EMF_LIGHTING = false mode?

OK- It works f.i as follows:

Set EMF_LIGHTING = true

node->getMaterial(0).EmissiveColor.set( color)
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

You'll need to remove and textures the model has, then change the ambient and diffuse colors. Then when you turn wireframe off, just replace the textures.
Post Reply