With lights disabled, how to draw coloured 3D lines?

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
mant
Posts: 125
Joined: Sun Jan 27, 2013 3:38 pm

With lights disabled, how to draw coloured 3D lines?

Post by mant »

Hi Everyone. I'm doing a simulation application and having a little problem. As I use:

smgr->drawAll();
driver->draw3DLine(lineStart, lineEnd, video::SColor(0, 255, 0, 0));

The 3D lines are always black. Can someone tell me how can I change it's color without adding a light scene node?
darksmaster923
Posts: 51
Joined: Tue Jan 02, 2007 11:04 pm
Location: huntington beach

Re: With lights disabled, how to draw coloured 3D lines?

Post by darksmaster923 »

try setting a transformation matrix for the video driver and try SColor(255,255,0,0), so that you have alpha
Programmers are merely tools to convert caffeine into code.
Post Reply