Hello everyone
I am new to jPCT and find it very easy to learn and powerful! I am trying to import some models from Blender to jPCT-AE for an Android app. I have two .3DS files, and each file contains one textured object.
In my android project I have the two .3DS files and the two JPG textures.
When I load only one of the models (doesn't matter which one), it renders fine, textured. But when I try to load both, none of them appear textured.
I have seen this thread
http://www.jpct.net/forum2/index.php?topic=2016.0 but the attached JAR did not solve the problem. I thought of a memory issue loading two textures, but they are not that big (20 and 160 KB) and I would have expected something in the logs in case this happens?
I am quite stuck, any help would be appreciated.
Thanks & Regards
Tishu
PS: Here is the logs in each case:
Loading only the first textured model:
07-31 19:31:47.964: INFO/jPCT-AE(1269): Loading file from InputStream
07-31 19:31:47.974: INFO/jPCT-AE(1269): Expanding buffers...16384 bytes
07-31 19:31:47.984: INFO/jPCT-AE(1269): Expanding buffers...24576 bytes
07-31 19:31:47.984: INFO/jPCT-AE(1269): Expanding buffers...32768 bytes
07-31 19:31:47.984: INFO/jPCT-AE(1269): File from InputStream loaded...28368 bytes
07-31 19:31:47.984: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane.006
07-31 19:31:48.354: INFO/jPCT-AE(1269): Object 'Plane.006_jPCT-2' created using 1900 polygons and 1037 vertices.
07-31 19:31:48.354: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane.005
07-31 19:31:48.354: INFO/jPCT-AE(1269): Object 'Plane.005_jPCT-1' created using 4 polygons and 8 vertices.
07-31 19:31:48.354: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane.003
07-31 19:31:48.354: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane.002
07-31 19:31:48.354: INFO/jPCT-AE(1269): Object 'Plane.002_jPCT0' created using 4 polygons and 8 vertices.
07-31 19:31:48.354: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane
07-31 19:31:48.354: INFO/jPCT-AE(1269): Object 'Plane_jPCT1' created using 4 polygons and 8 vertices.
07-31 19:31:49.164: INFO/jPCT-AE(1269): Loading file from InputStream
07-31 19:31:49.164: INFO/jPCT-AE(1269): File from InputStream loaded...293 bytes
07-31 19:31:49.164: INFO/jPCT-AE(1269): Processing new material pistexxxxxxx!
07-31 19:31:49.164: INFO/jPCT-AE(1269): Texture named piste.jpg added to TextureManager!
07-31 19:31:49.164: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane
07-31 19:31:49.174: INFO/jPCT-AE(1269): Object 'Plane_jPCT7' created using 2 polygons and 4 vertices.
07-31 19:31:49.174: INFO/jPCT-AE(1269): Loading Texture...
07-31 19:31:49.344: INFO/jPCT-AE(1269): Loading file from InputStream
07-31 19:31:49.344: INFO/jPCT-AE(1269): Expanding buffers...16384 bytes
07-31 19:31:49.344: INFO/jPCT-AE(1269): Expanding buffers...24576 bytes
07-31 19:31:49.344: INFO/jPCT-AE(1269): Expanding buffers...32768 bytes
07-31 19:31:49.344: INFO/jPCT-AE(1269): File from InputStream loaded...28368 bytes
07-31 19:31:49.344: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane.006
07-31 19:31:49.604: INFO/jPCT-AE(1269): Object 'Plane.006_jPCT10' created using 1900 polygons and 1037 vertices.
07-31 19:31:49.604: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane.005
07-31 19:31:49.604: INFO/jPCT-AE(1269): Object 'Plane.005_jPCT11' created using 4 polygons and 8 vertices.
07-31 19:31:49.604: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane.003
07-31 19:31:49.604: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane.002
07-31 19:31:49.614: INFO/jPCT-AE(1269): Object 'Plane.002_jPCT12' created using 4 polygons and 8 vertices.
07-31 19:31:49.614: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane
07-31 19:31:49.614: INFO/jPCT-AE(1269): Object 'Plane_jPCT13' created using 4 polygons and 8 vertices.
07-31 19:31:50.554: INFO/jPCT-AE(1269): Loading file from InputStream
07-31 19:31:50.554: INFO/jPCT-AE(1269): File from InputStream loaded...293 bytes
07-31 19:31:50.554: INFO/jPCT-AE(1269): Processing new material pistexxxxxxx!
07-31 19:31:50.554: INFO/jPCT-AE(1269): Processing object from 3DS-file: Plane
07-31 19:31:50.554: INFO/jPCT-AE(1269): Object 'Plane_jPCT19' created using 2 polygons and 4 vertices.
07-31 19:31:50.554: INFO/jPCT-AE(1269): Loading Texture...
07-31 19:31:51.194: DEBUG/libEGL(1269): loaded /system/lib/egl/libGLES_android.so
07-31 19:31:51.194: DEBUG/libEGL(1269): loaded /system/lib/egl/libEGL_adreno200.so
07-31 19:31:51.234: DEBUG/libEGL(1269): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
07-31 19:31:51.244: DEBUG/libEGL(1269): loaded /system/lib/egl/libGLESv2_adreno200.so
07-31 19:31:51.404: INFO/jPCT-AE(1269): OpenGL vendor: Qualcomm
07-31 19:31:51.404: INFO/jPCT-AE(1269): OpenGL renderer: Adreno
07-31 19:31:51.404: INFO/jPCT-AE(1269): OpenGL version: OpenGL ES-CM 1.1
07-31 19:31:51.404: INFO/jPCT-AE(1269): OpenGL renderer initialized (using 2 texture stages)
07-31 19:31:51.404: INFO/jPCT-AE(1269): Adding Lightsource: 0
07-31 19:31:51.414: INFO/jPCT-AE(1269): Memory usage before compacting: 3067 KB used out of 4935 KB
07-31 19:31:51.704: INFO/jPCT-AE(1269): Memory usage after compacting: 3063 KB used out of 4935 KB
07-31 19:31:51.894: INFO/jPCT-AE(1269): Subobject of object 18/object20 compiled to flat fixed point data using 5736 vertices in 91ms!
07-31 19:31:51.894: INFO/jPCT-AE(1269): Object 18/object20 compiled to 1 subobjects in 172ms!
07-31 19:31:51.894: INFO/jPCT-AE(1269): Subobject of object 21/object23 compiled to flat fixed point data using 6 vertices in 0ms!
07-31 19:31:51.894: INFO/jPCT-AE(1269): Object 21/object23 compiled to 1 subobjects in 2ms!
Loading only the second textured model:
07-31 19:35:19.544: INFO/jPCT-AE(1585): Loading file from InputStream
07-31 19:35:19.544: INFO/jPCT-AE(1585): File from InputStream loaded...301 bytes
07-31 19:35:19.544: INFO/jPCT-AE(1585): Processing new material aroundpistex!
07-31 19:35:19.544: INFO/jPCT-AE(1585): Texture named apiste.jpg added to TextureManager!
07-31 19:35:19.544: INFO/jPCT-AE(1585): Texture named aroundpiste. added to TextureManager!
07-31 19:35:19.544: INFO/jPCT-AE(1585): Processing object from 3DS-file: Plane.001
07-31 19:35:19.544: INFO/jPCT-AE(1585): Object 'Plane.001_jPCT7' created using 2 polygons and 4 vertices.
07-31 19:35:19.544: INFO/jPCT-AE(1585): Loading Texture...
07-31 19:35:19.704: INFO/jPCT-AE(1585): Loading file from InputStream
07-31 19:35:19.704: INFO/jPCT-AE(1585): Expanding buffers...16384 bytes
07-31 19:35:19.704: INFO/jPCT-AE(1585): Expanding buffers...24576 bytes
07-31 19:35:19.704: INFO/jPCT-AE(1585): Expanding buffers...32768 bytes
07-31 19:35:19.704: INFO/jPCT-AE(1585): File from InputStream loaded...28368 bytes
07-31 19:35:19.704: INFO/jPCT-AE(1585): Processing object from 3DS-file: Plane.006
07-31 19:35:19.964: INFO/jPCT-AE(1585): Object 'Plane.006_jPCT8' created using 1900 polygons and 1037 vertices.
07-31 19:35:19.964: INFO/jPCT-AE(1585): Processing object from 3DS-file: Plane.005
07-31 19:35:19.964: INFO/jPCT-AE(1585): Object 'Plane.005_jPCT9' created using 4 polygons and 8 vertices.
07-31 19:35:19.964: INFO/jPCT-AE(1585): Processing object from 3DS-file: Plane.003
07-31 19:35:19.964: INFO/jPCT-AE(1585): Processing object from 3DS-file: Plane.002
07-31 19:35:19.964: INFO/jPCT-AE(1585): Object 'Plane.002_jPCT10' created using 4 polygons and 8 vertices.
07-31 19:35:19.964: INFO/jPCT-AE(1585): Processing object from 3DS-file: Plane
07-31 19:35:19.964: INFO/jPCT-AE(1585): Object 'Plane_jPCT11' created using 4 polygons and 8 vertices.
07-31 19:35:20.794: INFO/jPCT-AE(1585): Loading file from InputStream
07-31 19:35:20.794: INFO/jPCT-AE(1585): File from InputStream loaded...301 bytes
07-31 19:35:20.794: INFO/jPCT-AE(1585): Processing new material aroundpistex!
07-31 19:35:20.794: INFO/jPCT-AE(1585): Processing object from 3DS-file: Plane.001
07-31 19:35:20.794: INFO/jPCT-AE(1585): Object 'Plane.001_jPCT17' created using 2 polygons and 4 vertices.
07-31 19:35:20.794: INFO/jPCT-AE(1585): Loading Texture...
07-31 19:35:21.014: DEBUG/libEGL(1585): loaded /system/lib/egl/libGLES_android.so
07-31 19:35:21.014: DEBUG/libEGL(1585): loaded /system/lib/egl/libEGL_adreno200.so
07-31 19:35:21.024: DEBUG/libEGL(1585): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
07-31 19:35:21.024: DEBUG/libEGL(1585): loaded /system/lib/egl/libGLESv2_adreno200.so
07-31 19:35:21.084: INFO/jPCT-AE(1585): OpenGL vendor: Qualcomm
07-31 19:35:21.084: INFO/jPCT-AE(1585): OpenGL renderer: Adreno
07-31 19:35:21.084: INFO/jPCT-AE(1585): OpenGL version: OpenGL ES-CM 1.1
07-31 19:35:21.094: INFO/jPCT-AE(1585): OpenGL renderer initialized (using 2 texture stages)
07-31 19:35:21.094: INFO/jPCT-AE(1585): Adding Lightsource: 0
07-31 19:35:21.094: INFO/jPCT-AE(1585): Memory usage before compacting: 3830 KB used out of 6599 KB
07-31 19:35:21.344: INFO/jPCT-AE(1585): Memory usage after compacting: 3826 KB used out of 6599 KB
07-31 19:35:21.454: INFO/jPCT-AE(1585): Subobject of object 16/object18 compiled to flat fixed point data using 5736 vertices in 40ms!
07-31 19:35:21.464: INFO/jPCT-AE(1585): Object 16/object18 compiled to 1 subobjects in 105ms!
07-31 19:35:21.464: INFO/jPCT-AE(1585): Subobject of object 17/Plane.001_jPCT17 compiled to flat fixed point data using 6 vertices in 0ms!
07-31 19:35:21.464: INFO/jPCT-AE(1585): Object 17/Plane.001_jPCT17 compiled to 1 subobjects in 2ms!
Loading the two textured models:
07-31 19:28:54.254: INFO/jPCT-AE(1138): Loading file from InputStream
07-31 19:28:54.254: INFO/jPCT-AE(1138): Expanding buffers...16384 bytes
07-31 19:28:54.254: INFO/jPCT-AE(1138): Expanding buffers...24576 bytes
07-31 19:28:54.254: INFO/jPCT-AE(1138): Expanding buffers...32768 bytes
07-31 19:28:54.254: INFO/jPCT-AE(1138): File from InputStream loaded...28368 bytes
07-31 19:28:54.254: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane.006
07-31 19:28:54.494: INFO/jPCT-AE(1138): Object 'Plane.006_jPCT-2' created using 1900 polygons and 1037 vertices.
07-31 19:28:54.494: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane.005
07-31 19:28:54.494: INFO/jPCT-AE(1138): Object 'Plane.005_jPCT-1' created using 4 polygons and 8 vertices.
07-31 19:28:54.494: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane.003
07-31 19:28:54.494: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane.002
07-31 19:28:54.504: INFO/jPCT-AE(1138): Object 'Plane.002_jPCT0' created using 4 polygons and 8 vertices.
07-31 19:28:54.504: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane
07-31 19:28:54.504: INFO/jPCT-AE(1138): Object 'Plane_jPCT1' created using 4 polygons and 8 vertices.
07-31 19:28:55.294: INFO/jPCT-AE(1138): Loading file from InputStream
07-31 19:28:55.304: INFO/jPCT-AE(1138): File from InputStream loaded...293 bytes
07-31 19:28:55.304: INFO/jPCT-AE(1138): Processing new material pistexxxxxxx!
07-31 19:28:55.304: INFO/jPCT-AE(1138): Texture named piste.jpg added to TextureManager!
07-31 19:28:55.304: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane
07-31 19:28:55.304: INFO/jPCT-AE(1138): Object 'Plane_jPCT7' created using 2 polygons and 4 vertices.
07-31 19:28:55.304: INFO/jPCT-AE(1138): Loading Texture...
07-31 19:28:55.394: INFO/jPCT-AE(1138): Loading file from InputStream
07-31 19:28:55.394: INFO/jPCT-AE(1138): File from InputStream loaded...301 bytes
07-31 19:28:55.394: INFO/jPCT-AE(1138): Processing new material aroundpistex!
07-31 19:28:55.394: INFO/jPCT-AE(1138): Texture named apiste.jpg added to TextureManager!
07-31 19:28:55.394: INFO/jPCT-AE(1138): Texture named aroundpiste. added to TextureManager!
07-31 19:28:55.394: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane.001
07-31 19:28:55.404: INFO/jPCT-AE(1138): Object 'Plane.001_jPCT10' created using 2 polygons and 4 vertices.
07-31 19:28:55.404: INFO/jPCT-AE(1138): Loading Texture...
07-31 19:28:55.554: INFO/jPCT-AE(1138): Loading file from InputStream
07-31 19:28:55.554: INFO/jPCT-AE(1138): Expanding buffers...16384 bytes
07-31 19:28:55.554: INFO/jPCT-AE(1138): Expanding buffers...24576 bytes
07-31 19:28:55.554: INFO/jPCT-AE(1138): Expanding buffers...32768 bytes
07-31 19:28:55.554: INFO/jPCT-AE(1138): File from InputStream loaded...28368 bytes
07-31 19:28:55.554: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane.006
07-31 19:28:55.814: INFO/jPCT-AE(1138): Object 'Plane.006_jPCT11' created using 1900 polygons and 1037 vertices.
07-31 19:28:55.824: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane.005
07-31 19:28:55.824: INFO/jPCT-AE(1138): Object 'Plane.005_jPCT12' created using 4 polygons and 8 vertices.
07-31 19:28:55.824: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane.003
07-31 19:28:55.824: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane.002
07-31 19:28:55.824: INFO/jPCT-AE(1138): Object 'Plane.002_jPCT13' created using 4 polygons and 8 vertices.
07-31 19:28:55.824: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane
07-31 19:28:55.824: INFO/jPCT-AE(1138): Object 'Plane_jPCT14' created using 4 polygons and 8 vertices.
07-31 19:28:56.634: INFO/jPCT-AE(1138): Loading file from InputStream
07-31 19:28:56.634: INFO/jPCT-AE(1138): File from InputStream loaded...293 bytes
07-31 19:28:56.634: INFO/jPCT-AE(1138): Processing new material pistexxxxxxx!
07-31 19:28:56.634: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane
07-31 19:28:56.634: INFO/jPCT-AE(1138): Object 'Plane_jPCT20' created using 2 polygons and 4 vertices.
07-31 19:28:56.634: INFO/jPCT-AE(1138): Loading Texture...
07-31 19:28:56.744: INFO/jPCT-AE(1138): Loading file from InputStream
07-31 19:28:56.744: INFO/jPCT-AE(1138): File from InputStream loaded...301 bytes
07-31 19:28:56.744: INFO/jPCT-AE(1138): Processing new material aroundpistex!
07-31 19:28:56.744: INFO/jPCT-AE(1138): Processing object from 3DS-file: Plane.001
07-31 19:28:56.744: INFO/jPCT-AE(1138): Object 'Plane.001_jPCT23' created using 2 polygons and 4 vertices.
07-31 19:28:56.744: INFO/jPCT-AE(1138): Loading Texture...
07-31 19:28:57.004: DEBUG/libEGL(1138): loaded /system/lib/egl/libGLES_android.so
07-31 19:28:57.004: DEBUG/libEGL(1138): loaded /system/lib/egl/libEGL_adreno200.so
07-31 19:28:57.014: DEBUG/libEGL(1138): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
07-31 19:28:57.014: DEBUG/libEGL(1138): loaded /system/lib/egl/libGLESv2_adreno200.so
07-31 19:28:57.084: INFO/jPCT-AE(1138): OpenGL vendor: Qualcomm
07-31 19:28:57.084: INFO/jPCT-AE(1138): OpenGL renderer: Adreno
07-31 19:28:57.084: INFO/jPCT-AE(1138): OpenGL version: OpenGL ES-CM 1.1
07-31 19:28:57.084: INFO/jPCT-AE(1138): OpenGL renderer initialized (using 2 texture stages)
07-31 19:28:57.084: INFO/jPCT-AE(1138): Adding Lightsource: 0
07-31 19:28:57.084: INFO/jPCT-AE(1138): Memory usage before compacting: 4090 KB used out of 7367 KB
07-31 19:28:57.314: INFO/jPCT-AE(1138): Memory usage after compacting: 4085 KB used out of 7367 KB
07-31 19:28:57.424: INFO/jPCT-AE(1138): Subobject of object 19/object21 compiled to flat fixed point data using 5736 vertices in 56ms!
07-31 19:28:57.424: INFO/jPCT-AE(1138): Object 19/object21 compiled to 1 subobjects in 100ms!
07-31 19:28:57.434: INFO/jPCT-AE(1138): Subobject of object 22/object24 compiled to flat fixed point data using 6 vertices in 1ms!
07-31 19:28:57.434: INFO/jPCT-AE(1138): Object 22/object24 compiled to 1 subobjects in 3ms!
07-31 19:28:57.434: INFO/jPCT-AE(1138): Subobject of object 23/Plane.001_jPCT23 compiled to flat fixed point data using 6 vertices in 1ms!
07-31 19:28:57.434: INFO/jPCT-AE(1138): Object 23/Plane.001_jPCT23 compiled to 1 subobjects in 3ms!