Author Topic: TextureManager question  (Read 1056 times)

Offline Charles

  • byte
  • *
  • Posts: 7
    • View Profile
TextureManager question
« on: May 09, 2013, 01:25:04 pm »
Hi everyone,i am new to jpct and got questions about the TextureManager, i've read the API doc but still could not firgue out. The following is the regarding console information:

Code: [Select]
******************************************
Loading Texture...textures\ql11.jpg
Loading Texture...textures\ql2.jpg
Loading Texture...textures\ql5.jpg
Loading Texture...textures\ql8.jpg
Loading Texture...box.jpg
[ Thu May 09 17:14:14 CST 2013 ] - WARNING: Unsupported Texture height (768)...resizing to a height of 256 pixels!
Loading file 3ds\s21.3ds
File 3ds\s21.3ds loaded...1296 bytes
Processing new material Material #28!
Processing object from 3DS-file: Box01
Name in hierarchy found: Box01
Object 'Box01_jPCT0' created using 12 polygons and 8 vertices.
Java version is: 1.7.0_21
-> support for BufferedImage
Version helper for 1.5+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
[ Thu May 09 17:14:14 CST 2013 ] - WARNING: Object 'Box01_jPCT0' already belongs to this world!
ql11.jpg
ql5.jpg
BOX.JPG
ql2.jpg
--dummy--
ql8.jpg
New WorldProcessor created using 1 thread(s) and granularity of 1!
Creating new world processor buffer for thread main
*******************************************************

In my .3ds file the "box.jpg" material was assigned to Box01(but somehow it was altered to Uppercase as "BOX.JPG" later,i found it when i checked this .3ds for the TextureManager not working problem). And in the end of my programm i listed the textures by the getNames() methord.I wonder how the texturemanager works:1.what is the "dummy" mean? 2.which are the "dummy" ones,above or below the "dummy"splitters? 
« Last Edit: May 09, 2013, 10:04:16 pm by EgonOlsen »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12065
    • View Profile
    • http://www.jpct.net
Re: TextureManager question
« Reply #1 on: May 09, 2013, 10:08:55 pm »
Note: I edited your post to make it more readable.

Anyway, now to your question: It's not a splitter, it's simply the name of the dummy texture. The dummy texture is always present in the TextureManager. It will be used, if no other texture can be found or has been removed or stuff like that.
« Last Edit: May 10, 2013, 10:32:23 am by EgonOlsen »

Offline Charles

  • byte
  • *
  • Posts: 7
    • View Profile
Re: TextureManager question
« Reply #2 on: May 10, 2013, 12:51:05 am »
First thanks for your edit to improve the apperence.
May be for that i am not that good at english, it leaded to your misunderstand.I just mean the line reads "--dummy--" that split the different textures by saying "spliter"  :-[
And after more practise,now I've got it!  ;D Thank you very much!