PDA

View Full Version : Problem with JOGL Alpha on Canvas


Goodspeed
05-14-2007, 01:53 AM
I've created a new Layer to draw a 2D HUD thats always on top of my WorldWindowGLCanvas. I get the GL out of the DrawContext and try to set the color with
gl.glColor4f(1.0f, 1.0f, 1.0f, 0.4f);

This will set the color to white but the alpha doesn't seem to be working. Does WW have some special way of doing this?

Thanks

tag
05-14-2007, 03:25 AM
Are you enabling blending and setting the gl blend functiion appropriately?

Goodspeed
05-14-2007, 03:33 AM
Had a few things commented out that I just assumed were not. Thank you!!