From: Jiba <Jea...@im...> - 2002-03-06 16:54:16
|
On 2002.03.06 16:48:03 +0000 Ricardo Olanda wrote: > > How can I read a transparency texture??? > > I have tried to use a transparency gif, but i can't read it. > > when I try to use : > glu.gluBuild2DMipmaps(GL_TEXTURE_2D, > 4, > texLoader.getImageWidth(), > texLoader.getImageHeight(), > GL_RGBA, > GL_UNSIGNED_BYTE, > texLoader.getTexture()); > > the browser crash. > > If I use GL_RGB, the browser don't crash. > > Somebody can say me a solution or / and an example ??? > > are there any other file type with trasparency that gl4java can load (jpg > not support transparency)?? > > Tnak you. > I personnaly use PNG but with the LATEST release of png.jar (get it from sixlength). The version given with GL4Java is (was ?) out to date. Jiba |