[android-developers] Re: Open GL texture is shown on emulator but not on the mobile

2011-03-25 Thread Robert Green
What resource directory is your bitmap in?  drawable-nodpi?

On Mar 25, 10:23 am, MobileVisuals  wrote:
> I tried to run a OpenGL tutorial project
>
> http://obviam.net/index.php/texture-mapping-opengl-android-displaying...
>
>  on a Samsung Galaxy, but only a white rectangle is shown instead of
> the texture. The texture is shown on the emulator, but not on the
> Samsung Galaxy.  What do I have to do to see the texture on the device?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Open GL texture is shown on emulator but not on the mobile

2011-03-26 Thread MobileVisuals
My resources are in the res\drawable-nodpi directory. It is a PNG
image with 256*256 size. Shouldn't that be enough?

On Mar 25, 10:34 pm, String  wrote:
> Make sure your textures are power of two dimensioned. The emulator doesn't 
> care, but most real devices do.
>
> String

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Open GL texture is shown on emulator but not on the mobile

2011-03-26 Thread String
The usual advice at this point is to debug into the routine that loads your 
bitmap - on the device, of course - and check what the actual loaded 
height() and width() are. That will tell for sure, one way or another, if 
they're the size you think they are.

String

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Open GL texture is shown on emulator but not on the mobile

2011-03-27 Thread Oscar
Did you tried in another device, maybe could be some problem with this
device

On Mar 26, 2:54 am, MobileVisuals  wrote:
> My resources are in the res\drawable-nodpi directory. It is a PNG
> image with 256*256 size. Shouldn't that be enough?
>
> On Mar 25, 10:34 pm, String  wrote:
>
>
>
>
>
>
>
> > Make sure your textures are power of two dimensioned. The emulator doesn't 
> > care, but most real devices do.
>
> > String

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en