From: Alban C. <aco...@mi...> - 2002-03-07 08:54:11
|
>How can I read a transparency texture??? >I have tried to use a transparency gif, but i can't read it=2E >when I try to use : > glu=2EgluBuild2DMipmaps(GL_TEXTURE_2D, > 4, > texLoader=2EgetImageWidth(), > texLoader=2EgetImageHeight(), > GL_RGBA, > GL_UNSIGNED_BYTE, > texLoader=2EgetTexture()); > >the browser crash=2E > >If I use GL_RGB, the browser don't crash=2E > >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=2E GL4java doesn't support gif images actually=2E The only file format you "could" extract transparency is the =2Epng file format where GL4JAVA "should= " support loading of the alpha channel, though I can't suceed having it working=2E Gl4java also has a parser for =2Etga files, but it has not implemented the loading of the alpha channel contained in this kind of files=2E the third format supported by gl4java is jpg, but the jpg file format itself does not have an alpha channel, so it is not possible to store transparency information into a jpg file=2E Regards, Alban Cousini=E9 |