openGL Driver Not Drawing Colored Lines

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
DrAnonymous
Posts: 34
Joined: Thu Aug 04, 2005 9:37 pm

openGL Driver Not Drawing Colored Lines

Post by DrAnonymous »

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>
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Known problem. Somewere in Community jox wrote any solution like:

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);
Just set transform and material before draw function[/quote]
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
DrAnonymous
Posts: 34
Joined: Thu Aug 04, 2005 9:37 pm

Post by DrAnonymous »

Outstanding! This also fixed my translation problem in the beginner forum!

Cheers,
Dr. A>
Post Reply