If you wanna draw 3D lines with draw3DLine like this:
Code: Select all
driver->draw3DLine(vector3df(0,0,0), vector3df(0,10,0), SColor(0,0,0,0));
to fix this you can set the transform and material of the driver before drawing lines, for example:
Code: Select all
driver->setTransform(video::ETS_WORLD, core::matrix4());
video::SMaterial m;
m.Lighting = false;
driver->setMaterial(m);
driver->draw3DLine(vector3df(0,0,0), vector3df(0,10,0), SColor(0,0,0,0));