Author Topic: plz help..urgent  (Read 6435 times)

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
plz help..urgent
« on: March 18, 2008, 03:17:05 pm »
Helloo
I 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.

plz reply..as soon as possible

Abhishek Anand

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: plz help..urgent
« Reply #1 on: March 18, 2008, 03:22:14 pm »

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
Re: plz help..urgent
« Reply #2 on: March 18, 2008, 03:34:38 pm »
thanks buddy...

but prob is reaally amazing.i went through the link you gave but it is not solving my error...

the only thing i have done is taht I imported ql.3ds file renderd it and exported it to the same place,,,

when I run JPCTDemo.java textures disapeear...

please look at output..  at no point of time ant error message is occuring and textures are being loaded properly


init:
deps-jar:
compile-single:
run-single:
Adding Lightsource: 0
Adding Lightsource: 1
Adding Lightsource: 2
Adding Lightsource: 3
Adding Lightsource: 4
Adding Lightsource: 5
Adding Lightsource: 6
Adding Lightsource: 7
Adding Lightsource: 8
Adding Lightsource: 9
Adding Lightsource: 10
Adding Lightsource: 11
Loading Texture...textures\other\numbers.jpg
Loading Texture...textures\other\envmap.jpg
Loading Texture...textures\ql0.jpg
Loading Texture...textures\ql1.jpg
Loading Texture...textures\ql10.jpg
Loading Texture...textures\ql11.jpg
Loading Texture...textures\ql12.jpg
Loading Texture...textures\ql2.jpg
Loading Texture...textures\ql3.jpg
Loading Texture...textures\ql4.jpg
Loading Texture...textures\ql5.jpg
Loading Texture...textures\ql6.jpg
Loading Texture...textures\ql7.jpg
Loading Texture...textures\ql8.jpg
Loading Texture...textures\ql9.jpg
Loading file 3ds\weapon.3ds
File 3ds\weapon.3ds loaded...5491 bytes
Processing new material Material!
Processing object from 3DS-file: stand001
Object 'stand001_jPCT0' created using 182 polygons and 103 vertices.
Loading file 3ds\ql.3ds
File 3ds\ql.3ds loaded...350279 bytes
Processing new material Material!
Texture named QL0.JPG added to TextureManager!
Processing new material Material1!
Texture named QL1.JPG added to TextureManager!
Processing new material Material2!
Texture named QL2.JPG added to TextureManager!
Processing new material Material3!
Texture named QL3.JPG added to TextureManager!
Processing new material Material4!
Texture named QL4.JPG added to TextureManager!
Processing new material Material5!
Texture named QL5.JPG added to TextureManager!
Processing new material Material6!
Texture named QL6.JPG added to TextureManager!
Processing new material Material7!
Texture named QL7.JPG added to TextureManager!
Processing new material Material8!
Texture named QL8.JPG added to TextureManager!
Processing new material Material9!
Texture named QL9.JPG added to TextureManager!
Processing new material Material10!
Texture named QL10.JPG added to TextureManager!
Processing new material Material11!
Texture named QL11.JPG added to TextureManager!
Processing new material Material12!
Texture named QL12.JPG added to TextureManager!
Processing new material Material13!
Processing new material Material15!
Processing object from 3DS-file: obj50
Object 'obj50_jPCT1' created using 300 polygons and 342 vertices.
Processing object from 3DS-file: obj48
Object 'obj48_jPCT2' created using 250 polygons and 202 vertices.
Processing object from 3DS-file: obj46
Object 'obj46_jPCT3' created using 18 polygons and 18 vertices.
Processing object from 3DS-file: obj44
Object 'obj44_jPCT4' created using 588 polygons and 707 vertices.
Processing object from 3DS-file: obj42
Object 'obj42_jPCT5' created using 32 polygons and 35 vertices.
Processing object from 3DS-file: obj40
Object 'obj40_jPCT6' created using 220 polygons and 264 vertices.
Processing object from 3DS-file: obj38
Object 'obj38_jPCT7' created using 68 polygons and 136 vertices.
Processing object from 3DS-file: obj36
Object 'obj36_jPCT8' created using 765 polygons and 729 vertices.
Processing object from 3DS-file: obj34
Object 'obj34_jPCT9' created using 404 polygons and 226 vertices.
Processing object from 3DS-file: obj32
Object 'obj32_jPCT10' created using 771 polygons and 756 vertices.
Processing object from 3DS-file: obj30
Object 'obj30_jPCT11' created using 938 polygons and 1030 vertices.
Processing object from 3DS-file: obj28
Object 'obj28_jPCT12' created using 372 polygons and 274 vertices.
Processing object from 3DS-file: obj26
Object 'obj26_jPCT13' created using 284 polygons and 250 vertices.
Processing object from 3DS-file: obj24
Object 'obj24_jPCT14' created using 437 polygons and 515 vertices.
Processing object from 3DS-file: obj22
Object 'obj22_jPCT15' created using 40 polygons and 60 vertices.
Processing object from 3DS-file: obj20
Object 'obj20_jPCT16' created using 615 polygons and 665 vertices.
Processing object from 3DS-file: obj18
Object 'obj18_jPCT17' created using 740 polygons and 904 vertices.
Processing object from 3DS-file: obj16
Object 'obj16_jPCT18' created using 688 polygons and 728 vertices.
Processing object from 3DS-file: obj14
Object 'obj14_jPCT19' created using 268 polygons and 328 vertices.
Processing object from 3DS-file: obj12
Object 'obj12_jPCT20' created using 140 polygons and 136 vertices.
Processing object from 3DS-file: obj10
Object 'obj10_jPCT21' created using 28 polygons and 56 vertices.
Processing object from 3DS-file: obj8
Object 'obj8_jPCT22' created using 100 polygons and 152 vertices.
Processing object from 3DS-file: obj2
Object 'obj2_jPCT23' created using 382 polygons and 288 vertices.
Created 2608 triangle-strips for object49 in 1 pass(es)
Building octree for 8448 triangles!
Octree constructed with 308 nodes / 261 leafs.
Java version is: 1.6.0_02
-> support for BufferedImage
Version helper for 1.2+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Software renderer (OpenGL mode) initialized
294-279 -> using combined buffer access!

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
Re: plz help..urgent
« Reply #3 on: March 18, 2008, 03:44:30 pm »
Hey EgonOlsen

plz reply..I am waiting....I have gone through many posts in this foroum and I have seen that you have solved many problems,,please help me friend,,its really urgent

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
Re: plz help..urgent
« Reply #4 on: March 18, 2008, 04:17:31 pm »
hey..someone plz help me..I am stuck with it since one week

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: plz help..urgent
« Reply #5 on: March 18, 2008, 04:33:55 pm »
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.

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
Re: plz help..urgent
« Reply #6 on: March 18, 2008, 04:45:08 pm »
I have renamed all my texture files to uppercase,,,,but still textures are missing...
plz find sometime and help me...plzzzzzz......

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: plz help..urgent
« Reply #7 on: March 18, 2008, 06:08:58 pm »
Can you post how the logs are looking now?

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
Re: plz help..urgent
« Reply #8 on: March 19, 2008, 03:28:52 pm »
hey buddy thats working now thanks a lot