I have an app which draws colored lines after the smgr->drawAll() call. When I use the openGL driver, the lines are always black no matter what color I set them to. If I use the software renderer, they are colored properly.
Is the render state not being set properly? I tried moving the line drawing before the drawAll() and it didn't change anything.
Anyone have any ideas?
Cheers,
Dr. A>
openGL Driver Not Drawing Colored Lines
Known problem. Somewere in Community jox wrote any solution like:
Just set transform and material before draw function[/quote]
Code: Select all
//by Jox
aabbox3d<f32> box(min.start, max.end);
driver->setTransform(video::ETS_WORLD, core::matrix4());
video::SMaterial m;
m.Lighting = false;
driver->setMaterial(m);
driver->draw3DBox(box);
-
- Posts: 34
- Joined: Thu Aug 04, 2005 9:37 pm