Hi I think there is a program app or something for power two bitmap for the G1 did you check the market. I can't remember what it was called but someone was having this problen with support and found the app.
On 12/07/2008, Mathias Agopian <[EMAIL PROTECTED]> wrote: > > Hi, > > The G1 h/w doesn't support non power-of-two texture (NPOT) dimensions. > However, Android's software implementation does. > In order to know if a particular opengl context supports NPOT, you > need to check for the npot extension string. > > When the extension is not available, you have to use a bigger texture > that has POT dimensions (or use several smaller textures, but that's > harder). An easy way to deal with it, is to set a texture matrix which > scales the texture coordinates in pixels (glScalef(1/w, 1/h, 1)), > which allows you to specify the texcoord in texels. > > Of course, if you want to use the texture with GL_REPEAT wrapping > mode, you're out of luck -- well, things get harder, you need to scale > your original image to POT dimensions, and then use appropriate down- > scaling to map & repeat it (exercise left to the reader [hint: use > texture transformations to simplify your life]). > > Also, for 2D rendering, consider using the draw_texture extension > (glDrawTexi), it's available on most h/w implementations and is > usually faster than using geometry. > > Information about OpenGL and OpenGL ES extensions is available on the > intertubes. > > > Good luck! > > Mathias > > > On Dec 4, 8:48 am, Guian <[EMAIL PROTECTED]> wrote: >> in the OpenGL android API (android.opengl.GLUtils.texImage2D() ) >> (http://code.google.com/android/reference/android/opengl/GLUtils.html >> ) >> we can read=> >> >> "Whether or not bitmap can have non power of two dimensions depends >> on >> the current OpenGL context." >> >> I load my OpenGL context using : >> mEglContext = mEgl.eglCreateContext(mEglDisplay, >> mEglConfig,EGL10.EGL_NO_CONTEXT, null); >> >> do you know what do I have to do in order to load non power of two >> dimensions bitmap? > > > -- Xavier A. Mathews Student/Browser Specialist/Developer/Web-Master Google Group Client Based Tech Support Specialist Hazel Crest Illinois [EMAIL PROTECTED]@[EMAIL PROTECTED] "Fear of a name, only increases fear of the thing itself." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

