|
From: Damian M. <da...@er...> - 2001-12-28 11:24:52
|
This has been open for over a year. I'd like to close it.
There are two issues with transparency, one associated with materials and
one with images that have transparent parts. Apparently neither work.
I have looked at the bug page and it doesn't give me much of a hint except
to say that with z-buffers it is a problem.
In 'ViewerOpenGL::insertTexture', it mentioned
// Enable blending if needed
if (d_blend && (nc == 2 || nc == 4))
glEnable(GL_BLEND);
Don't we need an extra
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
or does the one in ViewerOpenGL::initialize cover us forever. There is a
glDisable(GL_BLEND) in ViewerOpenGL::redraw() and I thought that this
clobbered the glBlendFunc(). I am a long way away from being an OpenGL
guru.
Heaven only knows what to do with Material transparency.
Can anybody direct me to where there are some simple files to try this
out? And/or any theory that might be useful especially in the context of
OpenVRML and its usage in the context of OpenGL.
Thanks - Damian (McGuckin)
Pacific Engineering Systems International, 22/8 Campbell St, Artarmon NSW 2064
Ph:+61-2-99063377 .. Fx:+61-2-99063468 | unsolicited email not wanted here !
Views and opinions here are mine and not those of any past or present employer
|