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 - gamenewer

Pages: 1 2 [3] 4 5 ... 12
31
Support / Free Texture memory
« on: March 24, 2015, 03:16:22 pm »
Hello Egon,  How to free the  texture memory?  I use  removeAndUnload method, but I'm not sure if this clean up the texture used memory. 
another question, I have some common texture and some  scene texture , I only free the scene texture and not free the common texture,  I use preWarm  method for every new scene start,  If this  cost more  memory for common texture ?

Thanks !

32
News / Re: Happy Birthday, jPCT-AE!
« on: March 20, 2015, 04:24:12 pm »
Greate work !  Thank you Egon ! :)

33
Support / Re: Add object to world exception
« on: March 02, 2015, 01:46:05 pm »
Oh, Thanks very much ! :)

34
Support / Add object to world exception
« on: March 02, 2015, 05:44:12 am »
Hellow Egon, I  add objects to world , but sometimes get error

03-02 12:39:44.920: E/AndroidRuntime(5259): FATAL EXCEPTION: GLThread 13
03-02 12:39:44.920: E/AndroidRuntime(5259): java.lang.NullPointerException
03-02 12:39:44.920: E/AndroidRuntime(5259):    at com.threed.jpct.Object3DList.contains(Object3DList.java:83)
03-02 12:39:44.920: E/AndroidRuntime(5259):    at com.threed.jpct.World.addObject(World.java:325)

not always ,sometimes is ok ,but some times is error .   

35
Support / Re: Texture lost
« on: January 22, 2015, 01:15:35 pm »
Thank you very much,  I hope all this not waste your time  :) thanks again !

36
Support / Re: Texture lost
« on: January 22, 2015, 09:50:18 am »
This  is only a test I do, I want to know how many textures can support by jpct , and I want my app can run on old android device. so  if there is a way to extend  jpct  memory useage    from natvie  , it's much helpful  and powerful...

37
Support / Re: Texture lost
« on: January 22, 2015, 01:32:08 am »
it seems no effect  :-\
                                      for(int i = ... i<30...               
                                        Texture  tx = new Texture(bitmap);
                                        bitmap.recycle();
               tx.keepPixelData(false);
               TextureManager.getInstance().addTexture(txitem.tname,tx);
               TextureManager.getInstance().preWarm(buffer);
               

38
Support / Re: Texture lost
« on: January 21, 2015, 11:51:31 am »
Hello Egon, I make a test on my handset,  when I add 30 numbers 512X512 size texture , the app OOM,
01-21 18:46:14.324: E/dalvikvm(11106): Out of memory: Heap Size=32391KB, Allocated=29256KB, Bitmap Size=512KB, Limit=32768KB
I have set tx.keepPixelData(false)  but it still OOM,    when I create texture by myselft , upload gpn  and then free the bitmap, it's Ok.
Is the keepPixelData  no effect ?

39
Support / Re: Texture lost
« on: January 21, 2015, 01:44:20 am »
To save JVM memory, I  upload the texture data to GPU and then release the bitmap, not keep data in JVM, by this way can add more textures. My app should run on most device like JVM is 32M.

40
Support / Re: Texture lost
« on: January 20, 2015, 05:03:07 pm »
sorry , I have another question , when i set
                gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);
               gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);

the texture shows ok , but when I  set
                gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER,GL10.GL_LINEAR_MIPMAP_LINEAR);
                gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER,GL10.GL_LINEAR);
                gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL11.GL_GENERATE_MIPMAP, GL10.GL_TRUE);

the texture become white  , How can  i do  mipmap ? thank you !

41
Support / Re: Texture lost
« on: January 20, 2015, 12:01:10 pm »
Thank you very much !  :)

42
Support / Re: Texture lost
« on: January 20, 2015, 04:04:35 am »
I am so sorry , it's my mistake set . Now it's ok.

Could you add a new construct for texture that use extern glID to save memory  ?  like   Texture(int glid , int gltarget)  it only use glid and target.




43
Support / Re: Texture lost
« on: January 19, 2015, 01:54:37 pm »
Texture tx = new Texture(1,1);
int exid= externTexGen();
tx.setExternalId(exid, GL10.GL_TEXTURE_2D);
....

44
Support / Re: Texture lost
« on: January 19, 2015, 01:51:22 pm »
Texture comes not inside of jPCT-AE , it created by myself.

45
Support / Re: Texture lost
« on: January 19, 2015, 01:36:55 pm »
Sorry , A plane set with a transparent  texture , at it's top , show a thick  black line ,  I'm sure  set the clamping by  GL_CLAMP_TO_EDGE.

Pages: 1 2 [3] 4 5 ... 12