I try to draw a 3d line in my main loop.
The line shows just fine but not have a specified color, instead it has a texture that I set for another scene node as texture.
Why is that?
draw3DLine not showing specified color
You need to set the material [driver->setMaterial(mtl)] and the world transform [driver->setTransform(video::ETS_WORLD, mat)] just before you call driver->draw3DLine(). If you don't specify these, the graphics subsystem will use the last material and world transform that was set, and this usually comes from the last scene node that was rendered.
Travis
Travis