Android Question 3d model size using jPCT -AE 3D engine Wrapper

samperizal

Active Member
Licensed User
greetings .

I am using jPCT -AE 3D engine Wrapper.

l question is can load a model with 83367 and 42347 vertices and faces the size of jpg 4096 x 4096


thanks in advance
 

ricardossy1

Member
Licensed User
The problem is the size of your jpg = 4096 x 4096 x 32 bits= 67108864 Octets = 64 Mo is too Much.

I tried jpct-ae with your size of 4096 x 4096 , see The result :

______________________________________________________________________
GC_CONCURRENT freed <1K, 5% free 225207K/235128K, paused 1ms+1ms, total 7ms
WAIT_FOR_CONCURRENT_GC blocked 6ms
Texture loaded...67108864 bytes/4096*4096 pixels!
Loading Texture...
threadid=11: thread exiting with uncaught exception (group=0xa4cb2b20)
java.lang.OutOfMemoryError
at com.threed.jpct.Texture.loadTexture(Texture.java:912)
at com.threed.jpct.Texture.loadTexture(Texture.java:871)
at com.threed.jpct.Texture.<init>(Texture.java:189)
at jpct.ae.wrapper.JTexture.Initialize3(JTexture.java:87)
FATAL EXCEPTION: GLThread 340
_________________________________________________________________________



For sample for my app, i have problem (Lags) when i exceed +-50 Mo of memory of "GC_FOR_ALLOC"
The fix is to reduce your texture (512*512*16 bits for sample).
 

Informatix

Expert
Licensed User
The problem is the size of your jpg = 4096 x 4096 x 32 bits= 67108864 Octets = 64 Mo is too Much.

I tried jpct-ae with your size of 4096 x 4096 , see The result :

______________________________________________________________________
GC_CONCURRENT freed <1K, 5% free 225207K/235128K, paused 1ms+1ms, total 7ms
WAIT_FOR_CONCURRENT_GC blocked 6ms
Texture loaded...67108864 bytes/4096*4096 pixels!
Loading Texture...
threadid=11: thread exiting with uncaught exception (group=0xa4cb2b20)
java.lang.OutOfMemoryError
at com.threed.jpct.Texture.loadTexture(Texture.java:912)
at com.threed.jpct.Texture.loadTexture(Texture.java:871)
at com.threed.jpct.Texture.<init>(Texture.java:189)
at jpct.ae.wrapper.JTexture.Initialize3(JTexture.java:87)
FATAL EXCEPTION: GLThread 340
_________________________________________________________________________



For sample for my app, i have problem (Lags) when i exceed +-50 Mo of memory of "GC_FOR_ALLOC"
The fix is to reduce your texture (512*512*16 bits for sample).
Under Android, the limitation for OpenGL-based libraries is 2048 x 2048.
 
Top