www.jpct.net

jPCT - a 3d engine for Java => Bugs => Topic started by: Albareth on December 28, 2003, 09:35:59 pm

Title: Texture bug
Post by: Albareth on December 28, 2003, 09:35:59 pm
In the latest version, the engine isn't recognizing textures above 256 pixels in width...  Even though I'm using textures that have a width of a power of 2. Why is that?
Title: Texture bug
Post by: EgonOlsen on December 29, 2003, 03:38:59 pm
What do you mean by "isn't recognizing?" I tried to reproduce this with 512*512, 1024*1024 and 1024*56 and it worked perfectly. Are you getting a warning of any kind when loading the texture in question? Is the surface white instead of textured?
Are you using OpenGL or software rendering and if software rendering, in which mode (legacy or OpenGL emulation)? If you are using hardware rendering, which graphics card are you using?
Title: Texture bug
Post by: Albareth on December 29, 2003, 06:43:47 pm
What I mean is that the engine is rejecting my texture if it's size is above 256 pixels in width.  It says that the image is not found, but it is there.  I'm using a NVidia GEForce 4 MX...  If that helps...  Just software with opengl emulation...
Title: Texture bug
Post by: EgonOlsen on December 30, 2003, 01:30:10 am
Quote from: "Albareth"
What I mean is that the engine is rejecting my texture if it's size is above 256 pixels in width.  It says that the image is not found, but it is there.
Well, i don't see a reason for this at the moment...can you give me the complete error-message? There are two different file not found-messages. One for a missing file and one for a file that is there, but somehow couldn't be loaded. Which format is the texture in? JPEG? Are you sure that the lower- and/or uppercase match? Windows (if you are using Windows) does some wired conversion from upper- to lowercase when displaying the filename by default.
If all this doesn't help, please send me the an example by mail so that i can see myself. And maybe you can post the code-snippet that loads the texture?

Note to those who may follow: Problem has been solved in another thread. There is no bug in the texture loading code. All is fine  :D