View Full Version : What is easiest way to get transparent color?

10-28-2003, 06:19 AM
I'll be thankfull for advice in following:

I draw a 3d city scene.Now I need to draw
some light colored ( 4-5 pixels in width) lines through all the scene.I need the lines
to be transparent(that I can see what is under them).
What is the recommended way to do it?
At all - I need some information about doing
transparency (without textures).

10-28-2003, 06:23 AM
You enable transparency with:
glEnable( GL_BLEND);
use glColor4f( r, g, b, t); // t=opacity
to set the color and transparency and
disable lighting, this is the easiest way.

The only thing you need to handle is that you should draw all non transparent items first and all transparent stuff at the end.


[This message has been edited by mikael_aronsson (edited 10-28-2003).]

10-28-2003, 06:30 AM