Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - mAlinka

Pages: [1]
1
Support / Loader.readTextureNames3DS raise an exception
« on: December 03, 2015, 01:43:37 pm »
Hello!
I using Loader.readTextureNames3DS method to load texture names from model 3ds file. It works fine. But recently I tryed to load a new model (attached) and Loader.readTextureNames3DS falled down with exception. Here is a part of log:
Quote
12-03 05:01:10.417: E/AndroidRuntime(1201): FATAL EXCEPTION: main
12-03 05:01:10.417: E/AndroidRuntime(1201): Process: ru.orientiryug.tofar, PID: 1201
12-03 05:01:10.417: E/AndroidRuntime(1201): java.lang.ArrayIndexOutOfBoundsException: length=12189; index=-1486432958
12-03 05:01:10.417: E/AndroidRuntime(1201):    at com.threed.jpct.Loader.getShortInt(Loader.java:1094)
12-03 05:01:10.417: E/AndroidRuntime(1201):    at com.threed.jpct.Loader.getChunkHeader(Loader.java:2159)
12-03 05:01:10.417: E/AndroidRuntime(1201):    at com.threed.jpct.Loader.readTextureNames3DS(Loader.java:1427)
12-03 05:01:10.417: E/AndroidRuntime(1201):    at com.threed.jpct.Loader.readTextureNames3DS(Loader.java:176)

I can use another approach to retrieve texture names as it described in thread http://www.jpct.net/forum2/index.php/topic,1644.msg12249.html#msg12249
But just for know is the model incorrect and cannot be used with readTextureNames3DS method? (Loading model with Loader.load3DS works fine.)
The model file was exported from 3Ds Max. Is there any rules how to export textured models from 3Ds Max to make it compatible for readTextureNames3DS?

2
Support / Fatal signal while operationg with model
« on: November 26, 2015, 08:57:53 am »
Hello for everybody!
I continue to learning jPCT engine and write a simple code for testing. It loads animated model from 3ds files (using key frames) and shows it to user. User can zoom-in and zoom-out using corresponding scale gesture and rotate the model around its x and y axes by pick it and drag. Everything works fine but on some devices app crashes with fatal signal while user rotates the object. Here is a part of log:
Quote
11-26 09:29:44.293: I/KERNEL(8683): [  893.215881] ientiryug.tofar (8683): undefined instruction: pc=75671754
11-26 09:29:44.293: I/KERNEL(8683): [  893.216015] Code: db76 ee3a fb4d ec40 (fb18) ed85
11-26 09:29:44.293: A/libc(8683): Fatal signal 4 (SIGILL) at 0x75671754 (code=1), thread 8683 (ientiryug.tofar)
11-26 09:29:44.343: I/KERNEL(8683): [  893.266745] ientiryug.tofar (8683): undefined instruction: pc=75671754
11-26 09:29:44.343: I/KERNEL(8683): [  893.266897] Code: db76 ee3a fb4d ec40 (fb18) ed85
11-26 09:29:44.723: I/KERNEL(8683): [  893.651359] ientiryug.tofar (8683): undefined instruction: pc=75671754
11-26 09:29:44.723: I/KERNEL(8683): [  893.651495] Code: db76 ee3a fb4d ec40 (fb18) ed85
As I said it happens not on all devices. On Samsung S4 Mini I have no problem but on ZTE Grand S2 it occures very often.
Has anybody deal with similar cases?

3
Support / FrameBuffer creation time
« on: November 24, 2015, 09:16:03 am »
Hello.
I have a question about FrameBuffer creation. As I noticed it takes about 2-4 seconds on my test device (Samsung S4 mini) and makes the UI hangs. Is it possible to create it on separate thread or some other way to avoid such effects?

4
Support / Re: 3ds max tips
« on: November 19, 2015, 07:33:05 am »
Hello.
I just started to learn JPCT-AE enjine and have a problem with models exported from 3DS Max. When I try to load them call to Loader.load3DS(...) just hangs.
Log output:
Quote
11-19 01:15:32.238: I/jPCT-AE(1056): Loading file from InputStream
11-19 01:15:32.238: I/jPCT-AE(1056): Expanding buffers...16384 bytes
11-19 01:15:32.358: I/jPCT-AE(1056): File from InputStream loaded...13681 bytes
11-19 01:15:32.438: I/jPCT-AE(1056): Processing object from 3DS-file: Box001
11-19 01:15:32.778: I/jPCT-AE(1056): Object 'Box001_jPCT0' created using 12 polygons and 8 vertices.
11-19 01:15:32.788: I/jPCT-AE(1056): Processing object from 3DS-file: Box002
11-19 01:15:33.028: I/jPCT-AE(1056): Object 'Box002_jPCT1' created using 12 polygons and 8 vertices.
11-19 01:15:33.028: I/jPCT-AE(1056): Processing object from 3DS-file: Box003
11-19 01:15:33.528: I/jPCT-AE(1056): Object 'Box003_jPCT2' created using 12 polygons and 8 vertices.
11-19 01:15:33.528: I/jPCT-AE(1056): Processing object from 3DS-file: Box004
11-19 01:15:34.098: I/jPCT-AE(1056): Object 'Box004_jPCT3' created using 12 polygons and 8 vertices.
11-19 01:15:34.098: I/jPCT-AE(1056): Processing object from 3DS-file: Box005
11-19 01:15:34.348: I/jPCT-AE(1056): Object 'Box005_jPCT4' created using 12 polygons and 8 vertices.
11-19 01:15:34.348: I/jPCT-AE(1056): Processing object from 3DS-file: Box006
11-19 01:15:34.718: I/jPCT-AE(1056): Name in hierarchy found: Box001
And that's all.
Could you suggest me please how to solve this?

Pages: [1]