TextureManager question

Started by Charles, May 09, 2013, 01:25:04 PM

Previous topic - Next topic

Charles

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:


******************************************
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? 

EgonOlsen

#1
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.

Charles

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!