Main Menu
Menu

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.

Show posts Menu

Topics - Firzen

#1
Support / Slow jPCT-AE view initialization
May 16, 2015, 05:59:52 PM
Hi,

I am creating Android application which uses jPCT-AE.
Everything works well, but when I open activity with jPCT view, it takes several seconds to show simple (Rubik's cube) scene. I see hunderds of jPCT-AE logs in LogCat during view initialization.

Is there any way how to speed up initialization or at least somehow pre-load the 3D scene?
I also suspect jPCT that init time is not much depend on objects count in the scene. When I open my activity with 2x2x2 cube, it takes approximately same amount of time as with 3x3x3 cube...
I am new to both jPCT and Android so I am probably doing something wrong.

Thanks in advance!

Some of mentioned logs:
Quote05-16 17:44:52.870: I/jPCT-AE(20063): VBO disposed for object 'object163'
05-16 17:44:52.880: I/jPCT-AE(20063): VBO disposed for object 'object164'
05-16 17:44:52.880: I/jPCT-AE(20063): VBO disposed for object 'object161'
05-16 17:44:52.880: I/jPCT-AE(20063): VBO disposed for object 'object162'
05-16 17:44:52.880: I/jPCT-AE(20063): VBO disposed for object 'object165'
05-16 17:44:52.880: I/jPCT-AE(20063): VBO disposed for object 'object160'
05-16 17:44:52.880: D/dalvikvm(20063): WAIT_FOR_CONCURRENT_GC blocked 0ms
05-16 17:44:52.890: I/jPCT-AE(20063): VBO disposed for object 'object168'
05-16 17:44:52.890: I/jPCT-AE(20063): VBO disposed for object 'object169'
05-16 17:44:52.900: I/jPCT-AE(20063): VBO disposed for object 'object167'
05-16 17:44:52.900: I/jPCT-AE(20063): VBO disposed for object 'object170'
05-16 17:44:52.900: I/jPCT-AE(20063): VBO disposed for object 'object171'
05-16 17:44:52.900: I/jPCT-AE(20063): VBO disposed for object 'object166'
05-16 17:44:52.900: I/jPCT-AE(20063): VBO disposed for object 'object175'
...
And many more of these messages ...

Quote05-16 17:44:54.370: I/jPCT-AE(20063): 0 shaders in replacement map!
05-16 17:44:54.370: I/jPCT-AE(20063): Default fragment shader is: /defaultFragmentShader.src
05-16 17:44:54.370: I/jPCT-AE(20063): Loading file from InputStream
05-16 17:44:54.380: I/jPCT-AE(20063): Text file from InputStream loaded...199 bytes
05-16 17:44:54.380: I/jPCT-AE(20063): Default vertex shader is: /defaultVertexShader.src
05-16 17:44:54.380: I/jPCT-AE(20063): Loading file from InputStream
05-16 17:44:54.380: I/jPCT-AE(20063): Text file from InputStream loaded...757 bytes
05-16 17:44:54.380: I/jPCT-AE(20063): Compiling shader program!
05-16 17:44:54.410: I/jPCT-AE(20063): Handles of 6: 2/3/1
05-16 17:44:54.410: I/jPCT-AE(20063): Loading default shaders (Tex0)!
05-16 17:44:54.410: I/jPCT-AE(20063): 0 shaders in replacement map!
05-16 17:44:54.410: I/jPCT-AE(20063): Default fragment shader is: /defaultFragmentShader.src
05-16 17:44:54.410: I/jPCT-AE(20063): Loading file from InputStream
05-16 17:44:54.410: I/jPCT-AE(20063): Text file from InputStream loaded...201 bytes
05-16 17:44:54.410: I/jPCT-AE(20063): Default vertex shader is: /defaultVertexShader.src
05-16 17:44:54.410: I/jPCT-AE(20063): Loading file from InputStream
05-16 17:44:54.410: I/jPCT-AE(20063): Text file from InputStream loaded...4020 bytes
05-16 17:44:54.410: I/jPCT-AE(20063): Compiling shader program!
05-16 17:44:55.250: I/jPCT-AE(20063): Handles of 9: 2/29/1
05-16 17:44:55.250: I/jPCT-AE(20063): Loading default shaders (Tex1)!
05-16 17:44:55.250: I/jPCT-AE(20063): 0 shaders in replacement map!
05-16 17:44:55.250: I/jPCT-AE(20063): Default fragment shader is: /defaultFragmentShader.src
05-16 17:44:55.250: I/jPCT-AE(20063): Loading file from InputStream
05-16 17:44:55.250: I/jPCT-AE(20063): Text file from InputStream loaded...997 bytes
05-16 17:44:55.260: I/jPCT-AE(20063): Default vertex shader is: /defaultVertexShader.src
05-16 17:44:55.260: I/jPCT-AE(20063): Loading file from InputStream
05-16 17:44:55.260: I/jPCT-AE(20063): Text file from InputStream loaded...4390 bytes
05-16 17:44:55.260: I/jPCT-AE(20063): Compiling shader program!
05-16 17:44:56.120: I/jPCT-AE(20063): Handles of 12: 2/34/1
...
...
Lots of these messages

Quote5-16 17:44:57.169: I/jPCT-AE(20063): Object 317/object319 compiled to 1 subobjects in 3ms!
05-16 17:44:57.179: I/jPCT-AE(20063): Subobject of object 318/object320 compiled to indexed fixed point data using 6/4 vertices in 6ms!
05-16 17:44:57.179: I/jPCT-AE(20063): Object 318/object320 compiled to 1 subobjects in 7ms!
05-16 17:44:57.179: I/jPCT-AE(20063): Subobject of object 321/object323 compiled to indexed fixed point data using 6/4 vertices in 1ms!
05-16 17:44:57.189: I/jPCT-AE(20063): Object 321/object323 compiled to 1 subobjects in 4ms!
05-16 17:44:57.189: I/jPCT-AE(20063): Subobject of object 316/object318 compiled to indexed fixed point data using 6/4 vertices in 1ms!
05-16 17:44:57.189: I/jPCT-AE(20063): Object 316/object318 compiled to 1 subobjects in 4ms!
05-16 17:44:57.189: I/jPCT-AE(20063): Subobject of object 324/object326 compiled to indexed fixed point data using 6/4 vertices in 1ms!
05-16 17:44:57.199: I/jPCT-AE(20063): Object 324/object326 compiled to 1 subobjects in 6ms!
05-16 17:44:57.199: I/jPCT-AE(20063): Subobject of object 325/object327 compiled to indexed fixed point data using 6/4 vertices in 1ms!
05-16 17:44:57.199: I/jPCT-AE(20063): Object 325/object327 compiled to 1 subobjects in 2ms!
05-16 17:44:57.199: I/jPCT-AE(20063): Subobject of object 323/object325 compiled to indexed fixed point data using 6/4 vertices in 1ms!
...
...

Quote05-16 17:44:57.879: I/jPCT-AE(20063): VBO created for object 'object445'
05-16 17:44:57.879: I/jPCT-AE(20063): Creating buffers...
05-16 17:44:57.879: I/jPCT-AE(20063): VBO created for object 'object446'
05-16 17:44:57.879: I/jPCT-AE(20063): Creating buffers...
05-16 17:44:57.879: I/jPCT-AE(20063): VBO created for object 'object447'
05-16 17:44:57.879: I/jPCT-AE(20063): Creating buffers...
05-16 17:44:57.879: I/jPCT-AE(20063): VBO created for object 'object448'
05-16 17:44:57.879: I/jPCT-AE(20063): Creating buffers...
05-16 17:44:57.879: I/jPCT-AE(20063): VBO created for object 'object334'
05-16 17:44:57.879: I/jPCT-AE(20063): Creating buffers...
05-16 17:44:57.889: I/jPCT-AE(20063): VBO created for object 'object449'
...
...
#2
Support / Strange camera rotation
April 29, 2015, 05:39:22 PM
Hello,

I have problem with camera oriantation during camera rotation. The description of problem is here: http://stackoverflow.com/questions/29947901/jpct-strange-camera-rotation
Is there someone who can help me with that?

Thanks in advance!