×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    9

    Diagnosing OpenGL ES issues

    I'm trying to create a simple application that renders a background texture using OpenGL ES (I've used the Slideshow example as a basis). The texture (or at least the bitmap) is being successfully loaded, but the output only white.

    The texture is 512x512, glGetError returns GL_NO_ERROR after glBindTexture, glVertexPointer, glTexCoordPointer and glDrawArrays.

    What is the best way to diagnose the problem?

    (As an alternative, I'm willing to dump my entire codebase if there is a better, working, template to work against)

    Many thanks,
    Stuart

  2. #2
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,100

    Re: Diagnosing OpenGL ES issues

    Hello there, stuart_george!


    Just checking, can you tell me if you use e.g. bgImage = Bitmap.createBitmap do you have width height of POW2 and maybe non-POW values...?



    Best Regards,
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    9

    Re: Diagnosing OpenGL ES issues

    Hi Marko,

    I'm using CTextureManager from the OpenGL samples to load the texture. CTextureManager appears to be using CImageDecoder::FileNewL, ::FrameInfo and ::Convert to load the bitmaps.

    The texture is 512x512 (I resized it because I vaguely remembered OpenGL having a POW2 texture restriction).

    Any thoughts to what could be the problem or how to diagnose it? Alternatively, if there's a simpler working code example around that'd be handy too

    Thanks,
    Stuart

Similar Threads

  1. M3G vs OpenGL ES
    By MobileVisuals in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2010-04-15, 19:11
  2. How to write text in an OpenGL ES game?
    By MobileVisuals in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2009-12-10, 08:13
  3. Tearing with OpenGL ES
    By lpvalente in forum Symbian
    Replies: 0
    Last Post: 2008-09-14, 23:08
  4. Possible OpenGL ES implementation bug
    By greatape in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-10-28, 18:02
  5. running OpenGL ES in N93
    By derBertl in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-10-10, 14:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×