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.


Messages - kkl

Pages: 1 ... 15 16 [17] 18 19 20
241
Support / Set 3ds rotation pivot from Blender for JPCT use
« on: June 04, 2013, 05:26:01 pm »
Hi all,

Does anyone know how to set rotation pivot in Blender and export 3ds for JPCT use? I tried setting pivot to 3D cursor (the rotation point I want) and origin to 3D cursor, but JPCT can't detect it.

242
Support / Re: SetTransparency in float
« on: June 02, 2013, 05:16:30 pm »
Almost forgot we can set it there. Thanks Thomas.

243
Support / SetTransparency in float
« on: June 02, 2013, 04:48:08 pm »
Hi Egon,

Could you make the setTransparency() to accept float value, please? I need it for smoother transparency animation.

Thanks.

244
Support / Re: Strange looking preference activity in livewallpaper
« on: June 02, 2013, 02:26:23 pm »
Hi Egon,

I've solved the issue! By putting the method that removes textures in onSurfaceChanged(), it doesn't show square fonts anymore. I think there is gl context processing going on between onResume() and onSurfaceChanged(). The gl context is ready only at onSurfaceChanged(). All gl related methods shall not be put in onResume() and onPause(), else everything gets hay-wired. 

BTW, thanks for being so helpful. Really appreciate it. Now we can have a peace of mind, at last.

245
Support / Re: Strange looking preference activity in livewallpaper
« on: June 01, 2013, 03:45:03 pm »
It really does suck with this wallpaper. I've been debugging for few days since the problem occurred too.

I think gl context doesn't change between onPause and onSurfaceChanged. Here's the log:

I logged all states. (This is still the one with frame buffer disposed at onResume(). )
Code: [Select]
06-01 21:19:50.421: I/jPCT-AE(6423): Engine onPause():
06-01 21:19:52.111: I/jPCT-AE(6423): Engine onResume():
06-01 21:19:52.121: I/jPCT-AE(6423): onSurfaceChanged!
06-01 21:19:52.121: I/jPCT-AE(6423): Visibility lists disposed!
06-01 21:19:52.121: I/jPCT-AE(6423): Unloaded texture: 6
06-01 21:19:52.121: I/jPCT-AE(6423): Unloaded texture: 5
06-01 21:19:52.121: I/jPCT-AE(6423): Unloaded texture: 2
06-01 21:19:52.121: I/jPCT-AE(6423): Unloaded texture: 3
06-01 21:19:52.121: I/jPCT-AE(6423): Unloaded texture: 1
06-01 21:19:52.121: I/jPCT-AE(6423): Unloaded texture: 4
06-01 21:19:52.126: I/jPCT-AE(6423): All texture data unloaded from gpu!
06-01 21:19:52.126: I/jPCT-AE(6423): Disposing VBOs!
06-01 21:19:52.151: I/jPCT-AE(6423): Renderer disposed!
06-01 21:19:52.151: I/jPCT-AE(6423): GLRenderer disposed with id 0 on Thread[GLThread 3989,5,main]
06-01 21:19:52.151: I/jPCT-AE(6423): GLRenderer created with id 1 on Thread[GLThread 3989,5,main]
06-01 21:19:52.151: I/jPCT-AE(6423): OpenGL vendor:     ARM
06-01 21:19:52.151: I/jPCT-AE(6423): OpenGL renderer:   Mali-400 MP
06-01 21:19:52.151: I/jPCT-AE(6423): OpenGL version:    OpenGL ES-CM 1.1
06-01 21:19:52.151: I/jPCT-AE(6423): OpenGL renderer initialized (using 2 texture stages)
06-01 21:19:52.156: I/jPCT-AE(6423): Allocating native memory for 128*128 texture(true/false/false/false/): 65536 bytes!
06-01 21:19:52.156: I/jPCT-AE(6423): New texture's id is: 1
06-01 21:19:52.156: I/jPCT-AE(6423): New texture uploaded: com.threed.jpct.Texture@41c23f10 in thread Thread[GLThread 3989,5,main]
06-01 21:19:52.156: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.156: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.156: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.156: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.156: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.156: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.156: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.156: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.156: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.156: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.156: I/jPCT-AE(6423): Allocating native memory for 1024*1024 texture(true/false/false/false/): 4194304 bytes!
06-01 21:19:52.331: I/jPCT-AE(6423): New texture's id is: 2
06-01 21:19:52.341: I/jPCT-AE(6423): New texture uploaded: com.threed.jpct.Texture@41c000b0 in thread Thread[GLThread 3989,5,main]
06-01 21:19:52.341: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.341: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.341: I/jPCT-AE(6423): Allocating native memory for 1024*1024 texture(true/false/false/false/): 4194304 bytes!
06-01 21:19:52.531: I/jPCT-AE(6423): New texture's id is: 3
06-01 21:19:52.566: I/jPCT-AE(6423): New texture uploaded: com.threed.jpct.Texture@41c30410 in thread Thread[GLThread 3989,5,main]
06-01 21:19:52.566: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.566: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.566: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.566: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.566: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.566: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.566: I/jPCT-AE(6423): Allocating native memory for 64*64 texture(true/false/false/false/): 16384 bytes!
06-01 21:19:52.566: I/jPCT-AE(6423): New texture's id is: 4
06-01 21:19:52.566: I/jPCT-AE(6423): New texture uploaded: com.threed.jpct.Texture@41c1efc0 in thread Thread[GLThread 3989,5,main]
06-01 21:19:52.566: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.566: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.571: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.571: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.571: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.571: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.571: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.571: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.571: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.571: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.571: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.571: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.571: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.571: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.571: I/jPCT-AE(6423): Allocating native memory for 128*32 texture(true/false/false/false/): 16384 bytes!
06-01 21:19:52.571: I/jPCT-AE(6423): New texture's id is: 5
06-01 21:19:52.576: I/jPCT-AE(6423): New texture uploaded: com.threed.jpct.Texture@41c0cd28 in thread Thread[GLThread 3989,5,main]
06-01 21:19:52.576: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.576: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.576: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.576: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.576: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.576: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.576: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.576: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.576: I/jPCT-AE(6423): Allocating native memory for 64*64 texture(true/false/false/false/): 16384 bytes!
06-01 21:19:52.576: I/jPCT-AE(6423): New texture's id is: 6
06-01 21:19:52.576: I/jPCT-AE(6423): New texture uploaded: com.threed.jpct.Texture@41bfbd78 in thread Thread[GLThread 3989,5,main]
06-01 21:19:52.576: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.581: I/jPCT-AE(6423): Creating buffers...
06-01 21:19:52.581: I/jPCT-AE(6423): OpenGL context has changed(2)...recovering for renderer 1/0!
06-01 21:19:52.581: I/jPCT-AE(6423): Creating buffers...


Does replaceTexture unload previous texture immediately? If not, there might be out of memory issue since the textures are quite huge. Can't afford to put multiple big textures in memory.

246
Support / Re: Strange looking preference activity in livewallpaper
« on: June 01, 2013, 11:24:06 am »
Ok. I've tested out the new method, it seemed like there was memory leak. The memory leaks in the actual RAM, not in VM RAM though. After a  few times of onResume(), the available RAM declined from 260MB to 60MB. However, if I use the old method (frame buffer is disposed at onResume()), the memory stays constant. It seems like the textures are left in GPU after the context change and the textures are no longer being linked with the correct driver generated id. What should I do?

247
If I don't dispose the framebuffer, and use the old framebuffer after onResume(), the problem seems to be the same. Is there any way to update the driver id without disposing frame buffer? Coz disposing the frame buffer causes a slight lag on onResume().

248
Wow.. Disposing frame buffer on onPause() fixed the problem. No more square font so far. What is exactly happening there?

The logs on onPause():
Code: [Select]
05-30 18:35:33.138: I/jPCT-AE(6570): Visibility lists disposed!
05-30 18:35:33.138: I/jPCT-AE(6570): Unloaded texture: 38
05-30 18:35:33.138: I/jPCT-AE(6570): Unloaded texture: 36
05-30 18:35:33.138: I/jPCT-AE(6570): Unloaded texture: 35
05-30 18:35:33.138: I/jPCT-AE(6570): Unloaded texture: 33
05-30 18:35:33.138: I/jPCT-AE(6570): Unloaded texture: 37
05-30 18:35:33.138: I/jPCT-AE(6570): Unloaded texture: 34
05-30 18:35:33.138: I/jPCT-AE(6570): All texture data unloaded from gpu!
05-30 18:35:33.138: I/jPCT-AE(6570): Disposing VBOs!
05-30 18:35:33.138: I/jPCT-AE(6570): Renderer disposed!
05-30 18:35:33.138: I/jPCT-AE(6570): GLRenderer disposed with id 28 on Thread[main,5,main]
   

The logs on onResume():
Code: [Select]
05-30 18:35:46.048: I/jPCT-AE(6570): GLRenderer created with id 29 on Thread[GLThread 57759,5,main]
05-30 18:35:46.048: I/jPCT-AE(6570): OpenGL vendor:     ARM
05-30 18:35:46.053: I/jPCT-AE(6570): OpenGL renderer:   Mali-400 MP
05-30 18:35:46.053: I/jPCT-AE(6570): OpenGL version:    OpenGL ES-CM 1.1
05-30 18:35:46.053: I/jPCT-AE(6570): OpenGL renderer initialized (using 2 texture stages)
05-30 18:35:46.053: I/jPCT-AE(6570): Allocating native memory for 128*128 texture(true/false/false/false/): 65536 bytes!
05-30 18:35:46.053: I/jPCT-AE(6570): New texture's id is: 39
05-30 18:35:46.053: I/jPCT-AE(6570): New texture uploaded: com.threed.jpct.Texture@425b70c8 in thread Thread[GLThread 57759,5,main]
05-30 18:35:46.053: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.053: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.053: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.053: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.053: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.053: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.053: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.053: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.053: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.053: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.063: I/jPCT-AE(6570): Allocating native memory for 1024*1024 texture(true/false/false/false/): 4194304 bytes!
05-30 18:35:46.148: I/jPCT-AE(6570): VBO disposed for object 'firefly9'
05-30 18:35:46.148: I/jPCT-AE(6570): VBO disposed for object 'firefly1'
05-30 18:35:46.148: I/jPCT-AE(6570): VBO disposed for object 'firefly2'
05-30 18:35:46.148: I/jPCT-AE(6570): VBO disposed for object 'firefly3'
05-30 18:35:46.148: I/jPCT-AE(6570): VBO disposed for object 'firefly4'
05-30 18:35:46.148: I/jPCT-AE(6570): VBO disposed for object 'firefly5'
05-30 18:35:46.148: I/jPCT-AE(6570): VBO disposed for object 'firefly6'
05-30 18:35:46.148: I/jPCT-AE(6570): VBO disposed for object 'firefly7'
05-30 18:35:46.148: I/jPCT-AE(6570): VBO disposed for object 'firefly8'
05-30 18:35:46.153: I/jPCT-AE(6570): VBO disposed for object 'firefly10'
05-30 18:35:46.333: I/jPCT-AE(6570): New texture's id is: 40
05-30 18:35:46.378: I/jPCT-AE(6570): New texture uploaded: com.threed.jpct.Texture@4271bb30 in thread Thread[GLThread 57759,5,main]
05-30 18:35:46.378: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.378: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.378: I/jPCT-AE(6570): Allocating native memory for 1024*1024 texture(true/false/false/false/): 4194304 bytes!
05-30 18:35:46.543: I/jPCT-AE(6570): New texture's id is: 41
05-30 18:35:46.583: I/jPCT-AE(6570): New texture uploaded: com.threed.jpct.Texture@42720e70 in thread Thread[GLThread 57759,5,main]
05-30 18:35:46.583: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.583: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.583: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.583: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.583: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.583: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.583: I/jPCT-AE(6570): Allocating native memory for 64*64 texture(true/false/false/false/): 16384 bytes!
05-30 18:35:46.583: I/jPCT-AE(6570): New texture's id is: 42
05-30 18:35:46.583: I/jPCT-AE(6570): New texture uploaded: com.threed.jpct.Texture@420e63c0 in thread Thread[GLThread 57759,5,main]
05-30 18:35:46.583: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.583: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.583: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.583: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.583: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.583: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.583: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.583: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.588: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.588: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.588: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.588: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.588: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.588: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.588: I/jPCT-AE(6570): Allocating native memory for 64*64 texture(true/false/false/false/): 16384 bytes!
05-30 18:35:46.588: I/jPCT-AE(6570): New texture's id is: 43
05-30 18:35:46.588: I/jPCT-AE(6570): New texture uploaded: com.threed.jpct.Texture@421379c8 in thread Thread[GLThread 57759,5,main]
05-30 18:35:46.588: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.588: I/jPCT-AE(6570): Creating buffers...
05-30 18:35:46.588: I/jPCT-AE(6570): OpenGL context has changed(2)...recovering for renderer 29/28!
05-30 18:35:46.588: I/jPCT-AE(6570): Creating buffers...

249
I dispose the framebuffer after pausing the preview. To be exact, it's resuming the preview.

This is the flow where I dispose the framebuffer in a nutshell.

onPause() -> (Goto Preference activity) -> (Quit preference activity) -> onResume() -> onSurfaceChanged() -> (dispose framebuffer)

Does disposing the framebuffer change the gl context and affect on unloading textures?


250
These are the logs in debug level after closing preference activity and resuming to preview:

Code: [Select]
05-29 19:47:42.610: I/jPCT-AE(13608): Unloaded texture: 3
05-29 19:47:42.630: I/jPCT-AE(13608): Visibility lists disposed!
05-29 19:47:42.630: I/jPCT-AE(13608): Unloaded texture: 6
05-29 19:47:42.630: I/jPCT-AE(13608): Unloaded texture: 4
05-29 19:47:42.630: I/jPCT-AE(13608): Unloaded texture: 2
05-29 19:47:42.630: I/jPCT-AE(13608): Unloaded texture: 1
05-29 19:47:42.630: I/jPCT-AE(13608): Unloaded texture: 5
05-29 19:47:42.630: I/jPCT-AE(13608): All texture data unloaded from gpu!
05-29 19:47:42.630: I/jPCT-AE(13608): Disposing VBOs!
05-29 19:47:42.640: I/jPCT-AE(13608): Renderer disposed!
05-29 19:47:42.640: I/jPCT-AE(13608): GLRenderer disposed with id 1 on Thread[GLThread 55676,5,main]
05-29 19:47:42.640: I/jPCT-AE(13608): GLRenderer created with id 2 on Thread[GLThread 55676,5,main]
05-29 19:47:42.645: I/jPCT-AE(13608): OpenGL vendor:     ARM
05-29 19:47:42.645: I/jPCT-AE(13608): OpenGL renderer:   Mali-400 MP
05-29 19:47:42.645: I/jPCT-AE(13608): OpenGL version:    OpenGL ES-CM 1.1
05-29 19:47:42.645: I/jPCT-AE(13608): OpenGL renderer initialized (using 2 texture stages)
05-29 19:47:42.645: I/jPCT-AE(13608): Allocating native memory for 128*128 texture(true/false/false/false/): 65536 bytes!
05-29 19:47:42.650: I/jPCT-AE(13608): New texture's id is: 1
05-29 19:47:42.650: I/jPCT-AE(13608): New texture uploaded: com.threed.jpct.Texture@41f82c48 in thread Thread[GLThread 55676,5,main]
05-29 19:47:42.650: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:42.650: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:42.650: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:42.650: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:42.650: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:42.650: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:42.650: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:42.650: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:42.650: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:42.650: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:42.655: I/jPCT-AE(13608): Allocating native memory for 1024*1024 texture(true/false/false/false/): 4194304 bytes!
05-29 19:47:42.905: I/jPCT-AE(13608): VBO disposed for object 'firefly1'
05-29 19:47:42.905: I/jPCT-AE(13608): VBO disposed for object 'firefly2'
05-29 19:47:42.905: I/jPCT-AE(13608): VBO disposed for object 'firefly3'
05-29 19:47:42.905: I/jPCT-AE(13608): VBO disposed for object 'firefly4'
05-29 19:47:42.905: I/jPCT-AE(13608): VBO disposed for object 'firefly5'
05-29 19:47:42.905: I/jPCT-AE(13608): VBO disposed for object 'firefly6'
05-29 19:47:42.905: I/jPCT-AE(13608): VBO disposed for object 'firefly7'
05-29 19:47:42.905: I/jPCT-AE(13608): VBO disposed for object 'firefly8'
05-29 19:47:42.905: I/jPCT-AE(13608): VBO disposed for object 'firefly9'
05-29 19:47:42.905: I/jPCT-AE(13608): VBO disposed for object 'firefly10'
05-29 19:47:42.920: I/jPCT-AE(13608): New texture's id is: 2
05-29 19:47:42.940: I/jPCT-AE(13608): New texture uploaded: com.threed.jpct.Texture@41f82fa8 in thread Thread[GLThread 55676,5,main]
05-29 19:47:42.940: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:42.940: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:42.940: I/jPCT-AE(13608): Allocating native memory for 1024*1024 texture(true/false/false/false/): 4194304 bytes!
05-29 19:47:43.165: I/jPCT-AE(13608): New texture's id is: 4
05-29 19:47:43.175: I/jPCT-AE(13608): New texture uploaded: com.threed.jpct.Texture@41f71e68 in thread Thread[GLThread 55676,5,main]
05-29 19:47:43.175: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.175: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.175: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.175: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.175: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.175: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.175: I/jPCT-AE(13608): Allocating native memory for 64*64 texture(true/false/false/false/): 16384 bytes!
05-29 19:47:43.175: I/jPCT-AE(13608): New texture's id is: 5
05-29 19:47:43.175: I/jPCT-AE(13608): New texture uploaded: com.threed.jpct.Texture@41f76910 in thread Thread[GLThread 55676,5,main]
05-29 19:47:43.175: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.175: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.180: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.180: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.180: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.180: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.180: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.180: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.180: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.180: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.180: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.180: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.180: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.180: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.180: I/jPCT-AE(13608): Allocating native memory for 64*64 texture(true/false/false/false/): 16384 bytes!
05-29 19:47:43.185: I/jPCT-AE(13608): New texture's id is: 6
05-29 19:47:43.185: I/jPCT-AE(13608): New texture uploaded: com.threed.jpct.Texture@41f6db30 in thread Thread[GLThread 55676,5,main]
05-29 19:47:43.185: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.185: I/jPCT-AE(13608): Creating buffers...
05-29 19:47:43.185: I/jPCT-AE(13608): OpenGL context has changed(2)...recovering for renderer 2/1!
05-29 19:47:43.185: I/jPCT-AE(13608): Creating buffers...

I also tried without creating the new framebuffer when context changes. The same issue is still there. Surprisingly, I do exactly the same method to other objects and textures, it works fine.

251
Hi Egon,

I tried by just having livewallpaper preview without setting it to the phone, and unloading texture still causes error. I checked from jPCT-ae log, it says opengl context has changed.

Code: [Select]
05-29 16:50:15.218: I/jPCT-AE(6647): Visibility lists disposed!
05-29 16:50:15.218: I/jPCT-AE(6647): All texture data unloaded from gpu!
05-29 16:50:15.218: I/jPCT-AE(6647): Disposing VBOs!
05-29 16:50:15.223: I/jPCT-AE(6647): Renderer disposed!
05-29 16:50:15.228: I/jPCT-AE(6647): OpenGL vendor:     ARM
05-29 16:50:15.228: I/jPCT-AE(6647): OpenGL renderer:   Mali-400 MP
05-29 16:50:15.228: I/jPCT-AE(6647): OpenGL version:    OpenGL ES-CM 1.1
05-29 16:50:15.228: I/jPCT-AE(6647): OpenGL renderer initialized (using 2 texture stages)
05-29 16:50:15.228: I/jPCT-AE(6647): OpenGL context has changed(2)...recovering for renderer 14/13!

It also says all textures unloaded from GPU while I din't flush the TextureManger explicitly. May I know what is happening there and why the gl context changed when it resumes to the same livewallpaper preview? (The log pops up when I goto preference activity and come back to the preview)

252
I have a feature in which it changes texture based on user's preference. The textures are huge and it may cause memory error if I load all of them. So, I load the texture that is needed and unload the one that is not needed.

253
I never expect that happen too. Yes, Config.unloadImmediately is set to true. I tried it on S2, nexus 4 and nexus 7, all have the same weird looking preference activity after the steps are reproduced (nexus 4 and nexus 7 show broken texture at the preference activity group titles respectively). Judging from what you said, i started to think it can be possible as I share the texture for both livewallpapers from home screen and preview. It happens when I disable a feature from preview, and the preview tries to unload the texture from livewallpaper home screen; different gl context.

Egon, what would you suggest? Is it possible to unload texture with finding back the correct gl context? (I tried dispose everything when onPause() is called and reload all textures and objects during onResume(), but it takes a long time to reload everything back which causes my livewallpaper a big lag at the beginning)

254
Support / Re: Models not loading after exporting
« on: May 28, 2013, 04:54:14 am »
Or, you may do this

Code: [Select]
InputStream is = context.getAssets().open("greenleaf_02.3ds");
Loader.load3DS(is, scale);

Put the 3ds/obj file in assets folder.

Works for me.

255
Support / Strange looking preference activity in livewallpaper
« on: May 28, 2013, 04:45:58 am »
Hi,

Does anyone have the strange looking preference activity in android before? The fonts in preference activity becomes square after some settings have been made there.

Step to reproduce:
1. Load texture and add objects to world
2. In preference activity, if the feature is unchecked by user, unload texture immediately and remove objects from world.
3. Go back to livewallpaper preview.
4. Goto the preference activity again. It shows square font (font is in english, no other language), and no errors from JPCT-AE log.

However, if I don't unload the texture and only remove objects from world, it doesn't cause the error.

[attachment deleted by admin]

Pages: 1 ... 15 16 [17] 18 19 20