[android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?

2011-10-04 Thread saex
solved, i must to put the images on assets directory. There is a bug or something in android 2.2 and upper versions that makes a redimension into the coordinates breaking the POT rule and getting white sprites. If you use assets dir this bug is solved. On 4 oct, 16:28, Adam Ratana wrote: > Also,

Re: [android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?

2011-10-04 Thread Adam Ratana
Also, make sure your textures are getting unloaded/unbound at the appropriate times, on some phones it will be okay if you keep loading textures over and over again with new contexts, on others you will have the white squares. On Tuesday, October 4, 2011 4:29:42 AM UTC-4, latimerius wrote: > >

Re: [android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?

2011-10-04 Thread Latimerius
On Tue, Oct 4, 2011 at 9:25 AM, saex wrote: > ok, definitively POT it is not the problem, i tested with a 256x256 > figure and it show a white texture > Okay, then I don't see anything immediately wrong with the code you posted. Perhaps just a couple of suggestions: - double-check your GL

[android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?

2011-10-04 Thread saex
ok, definitively POT it is not the problem, i tested with a 256x256 figure and it show a white texture :( On 3 oct, 23:43, Adam Ratana wrote: > I concur with this as well from experience.  Non powers of 2 textures are > supported by some implementations on some devices, but to be safe, alway

Re: [android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ?why?

2011-10-03 Thread Appaholics
On Mon, Oct 3, 2011 at 9:45 PM, saex wrote: > it is power of two, 180x140 I don't know who taught you maths but 180 and 140 are most definitely not a power of two. I think you mixed it up with multiple of two. Thanks -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appa

Re: [android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?

2011-10-03 Thread Latimerius
On Mon, Oct 3, 2011 at 6:03 PM, saex wrote: > please can you explain it a little more? i'm new in open GL. > Okay, as a first quick test to determine if texture dimensions are indeed the problem, why don't you just start up your Gimp (or Photoshop or whatever you use), make a new image 256x256,

Re: [android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?

2011-10-03 Thread Latimerius
On Mon, Oct 3, 2011 at 6:10 PM, saex wrote: > Oh, power of two is the resolution... > > ok, my image es 180x140, then i supose that it is power of two Um, if it's 180x140 then no, it's actually *not* POT. Try making it 256x256 (and adjust your texture coordinates accordingly). -- You receive

[android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ?why?

2011-10-03 Thread saex
it is power of two, 180x140 On 3 oct, 18:13, Jim Graham wrote: > On Mon, Oct 03, 2011 at 09:03:06AM -0700, saex wrote: > > What you mean with non power of two? > > It means that your texture's dimensions are not a power of two, > which, based on what I've read, is a REQUIREMENT, not a suggestion.

Re: [android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ?why?

2011-10-03 Thread Jim Graham
On Mon, Oct 03, 2011 at 09:03:06AM -0700, saex wrote: > What you mean with non power of two? It means that your texture's dimensions are not a power of two, which, based on what I've read, is a REQUIREMENT, not a suggestion. > what is POT? Look at it in the context of the reply What three

[android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?

2011-10-03 Thread saex
Oh, power of two is the resolution... ok, my image es 180x140, then i supose that it is power of two On 3 oct, 17:56, Latimerius wrote: > In my experience, the classic cause of "white" textures on some hardware but > not other is a non-power-of-two texture.  Your code doesn't seem to enforce > P

[android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?

2011-10-03 Thread saex
please can you explain it a little more? i'm new in open GL. What you mean with non power of two? what is POT? On 3 oct, 17:56, Latimerius wrote: > In my experience, the classic cause of "white" textures on some hardware but > not other is a non-power-of-two texture.  Your code doesn't seem to