Lighting and alpha blending

Hi guys ! I would like to know if someone understand why my alpha blended object are not visible if GL_LIGHTING is enable…
I’d like to have lighting on my blended object (tree billboard for example) but it seems impossible for me now…
can someone help ?
Thanks


Evil-Dog
Sleep is a waste of time

specify the ambient material colour using your alpha values :

float colour[] = {0.5f,0.5f,0.5f,0.5f};
glMaterialfv(GL_FRONT,GL_AMBIENT,colour);

or use glColor*() to specify the colours and use glColorMaterial to specify the ambient colour on a per vertex basis.

Alternatively use an alpha channel in your textures.

assuming blending is enabled and the correct blend function is used…