www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: abhi13feb on March 18, 2008, 03:17:05 pm

HellooI have downloaded the latest version of the API: jpctapi.zip from the site and tried to run fps game.Its working perfect.But when I render agin ql.3ds file and use it textures are lost from the building.Why it is happening.Which is the line in JPCTDemo.java ,where you are setting the texture to building.

It's simple. Texture names in the TextureManager have to match the names in the 3ds file. In your case, the import/export of the file has caused the names to be uppercase. What was formerly "ql0.jpg" ist now named "QL0.JPG". The textures are still named in lower case. Therefor, the loader can't find them, which you can see in the log: "Texture named QL9.JPG added to TextureManager!"Just rename your texture files to uppercase names or do a conversion in the code where the textures are loaded and it should work.