The loader will read the textures' names out of the 3DS-file and will add dummy textures with these names to the texture-manager (If the name is already in use, no new dummy texture will be added). So one may load some textures and add them to the manager with the appropiate names before loading the 3DS-file or replace the ones generated by the loader after loading is finished. If the materials used in the file are not using textures, no textures will be generated.
Object3D[] bttlParts=Loader.load3DS("d:/13th/SESD/com/resources/carrierh.3ds", 1); Object3D battlecruiser=new Object3D(0); for (int i=0; i<bttlParts.length; i++) { Object3D part = bttlParts[i]; part.setCenter(SimpleVector.ORIGIN); part.rotateX( (float) - Math.PI / 2); part.rotateMesh(); part.setRotationMatrix(new Matrix()); battlecruiser = Object3D.mergeObjects(battlecruiser, part); }
Does jPCT utilise UV maps?
As well, this code (taken from JPCTDemo) doesn't seem to work with my project... No object is being found.
I guess I wasn't really clear enough with my statement... My object is being loaded, but it is not showing up in window... The model exists, its not a blank file, it's just that the model isn't being loaded from the *.3ds
Can I send you the code? I can't find anything wrong with my code, maybe, you, as the creator of jPCT, might be able to find something...