Login  Register

Re: Texture Problem (probably gl.glTexImage2D)

Posted by PedDavid on Jun 08, 2015; 11:14am
URL: https://forum.jogamp.org/Texture-Problem-probably-gl-glTexImage2D-tp4034564p4034610.html

So, until now I was using textures from the NeHe tutorials (crate and nehe png 256*256, and glass.png 128*128).

I was going to start experimenting with lights so I got an obj of the stanford dragon and those textures were all messed up so I just went to ms paint and created unicolor textures. White.png(256*256) was all fine, but when I tried other colors it got all messed up too. I then tried paint.net because maybe it was some ms paint random stuff and well, it got better, I now have a unicolor just like I wanted. The problem is, the light.png 256*256 is displaying as BGR and the lightBrown.png (exactly the same image but saved as 1024*1024) displays in RGB...

Edit: Just tested it again, now on my laptop since I'm not at home, created the textures (256*256 and 1024*1024) on gimp, both are BGR (so, just okay like before...).