Author Topic: 3ds model faces/ textures not rendering  (Read 1018 times)

Offline AugTech

  • int
  • **
  • Posts: 64
    • View Profile
    • Augmented Technologies
3ds model faces/ textures not rendering
« on: October 19, 2012, 01:11:23 pm »
Hi.
I have started using jPCT-AE for proper 3D models now (!) but have an issue importing a 3ds model created in Sketch-Up (Please note this is not my model - Respect to PaulWall on the Warehouse for them).

A few of the textures don't appear to be rendering correctly - please see screenshots for comparison.

I have tried all several config switches and Object3D options such as disabling culling, disabling/ changing lighting and increasing the number of polygons to 2048, but nothing has enabled the texture to be displayed correctly. The vast majority of things in the model are fine, but there are a few anomalies such as the images.

Can anyone suggest what is wrong, and if there is something I should be enabling/ disabling to improve this?

Quote
Edit: This is not just related to 3ds - I've switched to using .obj as I needed to amend some of the texture names to avoid duplicates, but exactly the same things apply

This is the set-up for the renderer;
Code: [Select]
public JpctRenderer(RGBColor b) {
Config.farPlane=1500;
Config.nearPlane = 0f;
Config.oldStyle3DSLoader = true;
Config.maxPolysVisible=2048;

theWorld = new World();
cameraController = new CameraOrbitController(theWorld.getCamera());
cameraController.cameraAngle = 0;
theWorld.setAmbientLight(127, 127, 127);
}

Texture loading...

Code: [Select]
// Only rescale if we have to
size = Transform.upperPowerOfTwo(size);
Texture t = new Texture(BitmapHelper.rescale(bitmap, size, size));
t.compress();
textManager.addTexture(textureName, t);

And the loading of the model...

Code: [Select]
Object3D obj = Object3D.mergeAll(Loader.load3DS(shapestream, 1));
obj.rotateY((float)Math.toRadians(90));
obj.rotateZ((float)Math.toRadians(90));
obj.translate(0,0,-6f);
world.addObject(obj);

float[] bb = obj.getMesh().getBoundingBox();
float height = (bb[3] - bb[2]);
new Light(world).setPosition(new SimpleVector(0, -height/2, height));

world.buildAllObjects();

Logcat...
Code: [Select]
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading Texture...
I/jPCT-AE(10791): Texture loaded...65536 bytes/128*128 pixels!
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Expanding buffers...16384 bytes
I/jPCT-AE(10791): Expanding buffers...24576 bytes
I/jPCT-AE(10791): Expanding buffers...32768 bytes
I/jPCT-AE(10791): Expanding buffers...40960 bytes
I/jPCT-AE(10791): Expanding buffers...49152 bytes
I/jPCT-AE(10791): Expanding buffers...57344 bytes
I/jPCT-AE(10791): Expanding buffers...65536 bytes
I/jPCT-AE(10791): Expanding buffers...73728 bytes
I/jPCT-AE(10791): Expanding buffers...81920 bytes
I/jPCT-AE(10791): Expanding buffers...163840 bytes
I/jPCT-AE(10791): Expanding buffers...245760 bytes
I/jPCT-AE(10791): Expanding buffers...327680 bytes
I/jPCT-AE(10791): Expanding buffers...409600 bytes
I/jPCT-AE(10791): Expanding buffers...491520 bytes
I/jPCT-AE(10791): Expanding buffers...573440 bytes
I/jPCT-AE(10791): Expanding buffers...655360 bytes
I/jPCT-AE(10791): Expanding buffers...737280 bytes
I/jPCT-AE(10791): Expanding buffers...819200 bytes
I/jPCT-AE(10791): Expanding buffers...901120 bytes
I/jPCT-AE(10791): File from InputStream loaded...893524 bytes
I/jPCT-AE(10791): Processing new material Color_00!
I/jPCT-AE(10791): Processing new material Color_01!
I/jPCT-AE(10791): Processing new material Cladding!
I/jPCT-AE(10791): Processing new material Material!
I/jPCT-AE(10791): Processing new material Roofing_!
I/jPCT-AE(10791): Processing new material Color_02!
I/jPCT-AE(10791): Processing new material Color_03!
I/jPCT-AE(10791): Processing new material _Roofing!
I/jPCT-AE(10791): Processing new material Brick_St!
I/jPCT-AE(10791): Processing new material _Fencing!
I/jPCT-AE(10791): Processing new material _Translu!
I/jPCT-AE(10791): Processing new material Transluc!
I/jPCT-AE(10791): Processing new material Sketchy_!
I/jPCT-AE(10791): Processing new material Color_F1!
I/jPCT-AE(10791): Processing new material Fencing_!
I/jPCT-AE(10791): Processing new material Claddi01!
I/jPCT-AE(10791): Processing new material _Brick_T!
I/jPCT-AE(10791): Processing new material Wood_Flo!
I/jPCT-AE(10791): Processing new material _Wood_Ch!
I/jPCT-AE(10791): Processing new material Wood_Boa!
I/jPCT-AE(10791): Processing new material _Claddin!
I/jPCT-AE(10791): Processing new material Materi01!
I/jPCT-AE(10791): Processing new material _Wood__F!
I/jPCT-AE(10791): Processing new material Beige!
I/jPCT-AE(10791): Processing new material _Wood_OS!
I/jPCT-AE(10791): Processing new material Water_De!
I/jPCT-AE(10791): Processing new material _Tile_Ch!
I/jPCT-AE(10791): Processing new material Color_04!
I/jPCT-AE(10791): Processing new material _Ivory_1!
I/jPCT-AE(10791): Processing new material _LightGr!
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob_1
I/jPCT-AE(10791): Object 'DoorKnob_1_jPCT0' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob01
I/jPCT-AE(10791): Object 'DoorKnob01_jPCT1' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob02
I/jPCT-AE(10791): Object 'DoorKnob02_jPCT2' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob03
I/jPCT-AE(10791): Object 'DoorKnob03_jPCT3' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob04
I/jPCT-AE(10791): Object 'DoorKnob04_jPCT4' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob05
I/jPCT-AE(10791): Object 'DoorKnob05_jPCT5' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob06
I/jPCT-AE(10791): Object 'DoorKnob06_jPCT6' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob07
I/jPCT-AE(10791): Object 'DoorKnob07_jPCT7' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob08
I/jPCT-AE(10791): Object 'DoorKnob08_jPCT8' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob09
I/jPCT-AE(10791): Object 'DoorKnob09_jPCT9' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob10
I/jPCT-AE(10791): Object 'DoorKnob10_jPCT10' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob11
I/jPCT-AE(10791): Object 'DoorKnob11_jPCT11' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob12
I/jPCT-AE(10791): Object 'DoorKnob12_jPCT12' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob13
I/jPCT-AE(10791): Object 'DoorKnob13_jPCT13' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob14
I/jPCT-AE(10791): Object 'DoorKnob14_jPCT14' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob15
I/jPCT-AE(10791): Object 'DoorKnob15_jPCT15' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob16
I/jPCT-AE(10791): Object 'DoorKnob16_jPCT16' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob17
I/jPCT-AE(10791): Object 'DoorKnob17_jPCT17' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob18
I/jPCT-AE(10791): Object 'DoorKnob18_jPCT18' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob19
I/jPCT-AE(10791): Object 'DoorKnob19_jPCT19' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob20
I/jPCT-AE(10791): Object 'DoorKnob20_jPCT20' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob21
I/jPCT-AE(10791): Object 'DoorKnob21_jPCT21' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob22
I/jPCT-AE(10791): Object 'DoorKnob22_jPCT22' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob23
I/jPCT-AE(10791): Object 'DoorKnob23_jPCT23' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob24
I/jPCT-AE(10791): Object 'DoorKnob24_jPCT24' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob25
I/jPCT-AE(10791): Object 'DoorKnob25_jPCT25' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob26
I/jPCT-AE(10791): Object 'DoorKnob26_jPCT26' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob27
I/jPCT-AE(10791): Object 'DoorKnob27_jPCT27' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob28
I/jPCT-AE(10791): Object 'DoorKnob28_jPCT28' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob29
I/jPCT-AE(10791): Object 'DoorKnob29_jPCT29' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob30
I/jPCT-AE(10791): Object 'DoorKnob30_jPCT30' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob31
I/jPCT-AE(10791): Object 'DoorKnob31_jPCT31' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: DoorKnob32
I/jPCT-AE(10791): Object 'DoorKnob32_jPCT32' created using 47 polygons and 28 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: Mesh01
I/jPCT-AE(10791): Object 'Mesh01_jPCT33' created using 16675 polygons and 8120 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: Mesh02
I/jPCT-AE(10791): Object 'Mesh02_jPCT34' created using 484 polygons and 244 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: Mesh03
I/jPCT-AE(10791): Object 'Mesh03_jPCT35' created using 220 polygons and 112 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: Mesh04
I/jPCT-AE(10791): Object 'Mesh04_jPCT36' created using 256 polygons and 130 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: Mesh05
I/jPCT-AE(10791): Object 'Mesh05_jPCT37' created using 256 polygons and 130 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: Mesh06
I/jPCT-AE(10791): Object 'Mesh06_jPCT38' created using 252 polygons and 128 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: Mesh07
I/jPCT-AE(10791): Object 'Mesh07_jPCT39' created using 1344 polygons and 660 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: Mesh08
I/jPCT-AE(10791): Object 'Mesh08_jPCT40' created using 228 polygons and 116 vertices.
I/jPCT-AE(10791): Processing object from 3DS-file: Model
I/jPCT-AE(10791): Name in hierarchy found: Model
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob_1
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob01
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob02
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob03
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob04
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob05
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob06
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob07
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob08
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob09
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob10
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob11
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob12
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob13
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob14
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob15
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob16
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob17
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob18
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob19
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob20
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob21
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob22
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob23
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob24
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob25
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob26
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob27
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob28
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob29
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob30
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob31
I/jPCT-AE(10791): Name in hierarchy found: DoorKnob32
I/jPCT-AE(10791): Name in hierarchy found: Mesh01
I/jPCT-AE(10791): Name in hierarchy found: Mesh02
I/jPCT-AE(10791): Name in hierarchy found: Mesh03
I/jPCT-AE(10791): Name in hierarchy found: Mesh04
I/jPCT-AE(10791): Name in hierarchy found: Mesh05
I/jPCT-AE(10791): Name in hierarchy found: Mesh06
I/jPCT-AE(10791): Name in hierarchy found: Mesh07
I/jPCT-AE(10791): Name in hierarchy found: Mesh08
I/jPCT-AE(10791): Adding Lightsource: 0
I/jPCT-AE(10791): Normal vectors calculated in 565ms!
I/jPCT-AE(10791): MSAA enabled with 2 samples!
I/jPCT-AE(10791): Initializing GL20 render pipeline...
I/jPCT-AE(10791): Accessing shaders via JAR!
I/jPCT-AE(10791): Loading default shaders !
I/jPCT-AE(10791): 0 shaders in replacement map!
I/jPCT-AE(10791): Default fragment shader is: /defaultFragmentShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...2008 bytes
I/jPCT-AE(10791): Default vertex shader is: /defaultVertexShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...4496 bytes
I/jPCT-AE(10791): Compiling shader program!
I/jPCT-AE(10791): Handles of 3: 0/32
I/jPCT-AE(10791): Loading default shaders (Tex0)!
I/jPCT-AE(10791): 0 shaders in replacement map!
I/jPCT-AE(10791): Default fragment shader is: /defaultFragmentShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...201 bytes
I/jPCT-AE(10791): Default vertex shader is: /defaultVertexShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...4020 bytes
I/jPCT-AE(10791): Compiling shader program!
I/jPCT-AE(10791): Handles of 6: 0/29
I/jPCT-AE(10791): Loading default shaders (Tex1)!
I/jPCT-AE(10791): 0 shaders in replacement map!
I/jPCT-AE(10791): Default fragment shader is: /defaultFragmentShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...871 bytes
I/jPCT-AE(10791): Default vertex shader is: /defaultVertexShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...4390 bytes
I/jPCT-AE(10791): Compiling shader program!
I/jPCT-AE(10791): Handles of 9: 0/32
I/jPCT-AE(10791): Loading default shaders (Tex0Light0)!
I/jPCT-AE(10791): 0 shaders in replacement map!
I/jPCT-AE(10791): Default fragment shader is: /defaultFragmentShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...201 bytes
I/jPCT-AE(10791): Default vertex shader is: /defaultVertexShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...1293 bytes
I/jPCT-AE(10791): Compiling shader program!
I/jPCT-AE(10791): Handles of 12: 0/7
I/jPCT-AE(10791): Loading default shaders (Fog)!
I/jPCT-AE(10791): 0 shaders in replacement map!
I/jPCT-AE(10791): Default fragment shader is: /defaultFragmentShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...328 bytes
I/jPCT-AE(10791): Default vertex shader is: /defaultVertexShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...4267 bytes
I/jPCT-AE(10791): Compiling shader program!
I/jPCT-AE(10791): Handles of 15: 0/32
I/jPCT-AE(10791): Loading default shaders (FogLight0)!
I/jPCT-AE(10791): 0 shaders in replacement map!
I/jPCT-AE(10791): Default fragment shader is: /defaultFragmentShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...328 bytes
I/jPCT-AE(10791): Default vertex shader is: /defaultVertexShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...1608 bytes
I/jPCT-AE(10791): Compiling shader program!
I/jPCT-AE(10791): Handles of 18: 0/10
I/jPCT-AE(10791): Loading default shaders (Tex0Amb)!
I/jPCT-AE(10791): 0 shaders in replacement map!
I/jPCT-AE(10791): Default fragment shader is: /defaultFragmentShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...199 bytes
I/jPCT-AE(10791): Default vertex shader is: /defaultVertexShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...757 bytes
I/jPCT-AE(10791): Compiling shader program!
I/jPCT-AE(10791): Handles of 21: 0/3
I/jPCT-AE(10791): Loading default shaders (Depth)!
I/jPCT-AE(10791): 0 shaders in replacement map!
I/jPCT-AE(10791): Default fragment shader is: /defaultFragmentShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...745 bytes
I/jPCT-AE(10791): Default vertex shader is: /defaultVertexShader.src
I/jPCT-AE(10791): Loading file from InputStream
I/jPCT-AE(10791): Text file from InputStream loaded...248 bytes
I/jPCT-AE(10791): Compiling shader program!
I/jPCT-AE(10791): Handles of 24: 0/0
I/jPCT-AE(10791): GL20 render pipeline initialized!
I/jPCT-AE(10791): OpenGL vendor:     ARM
I/jPCT-AE(10791): OpenGL renderer:   Mali-400 MP
I/jPCT-AE(10791): OpenGL version:    OpenGL ES 2.0
I/jPCT-AE(10791): OpenGL renderer initialized (using 2 texture stages)
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 228/144 vertices in 17ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 72/40 vertices in 3ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 1059/363 vertices in 11ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 102/50 vertices in 2ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 42/18 vertices in 0ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 2304/936 vertices in 19ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 201/115 vertices in 2ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 12/8 vertices in 1ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 6/4 vertices in 0ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 99/55 vertices in 2ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 603/211 vertices in 8ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 243/125 vertices in 3ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 336/164 vertices in 4ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 156/58 vertices in 2ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 30/16 vertices in 12ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 186/62 vertices in 3ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 282/196 vertices in 4ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 540/336 vertices in 6ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 12/8 vertices in 0ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 84/40 vertices in 1ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 4653/2541 vertices in 44ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 23997/11328 vertices in 273ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 10689/4940 vertices in 115ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 270/184 vertices in 3ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 768/193 vertices in 5ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 13437/5585 vertices in 130ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 72/48 vertices in 1ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 864/348 vertices in 8ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 90/44 vertices in 1ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 2286/1128 vertices in 19ms!
I/jPCT-AE(10791): Subobject of object 42/object44 compiled to indexed fixed point data using 75/45 vertices in 1ms!
I/jPCT-AE(10791): Object 42/object44 compiled to 31 subobjects in 916ms!

Many thanks for any suggestions...

[attachment deleted by admin]
« Last Edit: October 19, 2012, 06:52:48 pm by AugTech »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: 3ds model faces/ textures not rendering
« Reply #1 on: October 19, 2012, 08:40:18 pm »
Hard to tell from the screen shots, but it looks like as if the banister rails are just a texture with alpha blending. In your code, you merge everything into one object and because transparency is per object, you are loosing it. You might want to iterate through the object array returned by the loader and merge opaque objects into one and transparent objects into another object. Then enable transparency on the object that contains the transparent parts. The difficult part is to separate the two. You can try to base it on the objects' transparency value after loading, but depending on the model, this might not work too well. Another idea is to base it on texture or object name, if possible.

Offline AugTech

  • int
  • **
  • Posts: 64
    • View Profile
    • Augmented Technologies
Re: 3ds model faces/ textures not rendering
« Reply #2 on: October 22, 2012, 05:56:19 pm »
Thanks Egon, makes sense.
I've taken the easy option of removing transparent textures from the model.