LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Matthew Jones on September 05, 2005, 23:23:09

Title: Jpeg Issues with Devil? Maybe?
Post by: Matthew Jones on September 05, 2005, 23:23:09
WE have an issue loading JPG's with devil

We were using an AWT loader for our JPG's textures on our models . We recently switched to DEVIL so we could start loading TGA's in addition to the JPG's.
Everything works real good except all the surfaces of our models with JPG's have the texture mapping inverted. We haven't made changes in our models format so we suspect that we are missing somthing in the loading of our JPG's. Or maybe theres a bug or somthing. Not Sure.

Has Anybody else had a problem? Got Fix or solution maybe?

FOr the interum were just going to flip the uv coordinates on objects that use jpg's and that might be what we have to do I just thought I'd see.

I'll be happy to post my loading code if anybody thinks a problem might be in there.

Thanks in advance :?
Matthew Jones
Title: Jpeg Issues with Devil? Maybe?
Post by: Matzon on September 06, 2005, 05:54:51
one usually have to flip the image, because of the whole opengl coordinate origin issue, however it sounds a bit odd that the TGA textures are fine, but the JPG ones are wrong.
Title: Jpeg Issues with Devil? Maybe?
Post by: Matthew Jones on September 06, 2005, 11:02:14
We do, do some flipping in the model format to make everything work but not usually V part or UV. Then like I said just JPEGs.

Matt