Active Topics

 


Reply
Thread Tools
Posts: 8 | Thanked: 16 times | Joined on Dec 2009
#1
Hello,

I've spent the past weekend looking at how to use OpenGL ES 2.0 on the Nokia N900 so that I can eventually begin working on a game for the device.

I spent some time working out various things that I didn't really understand and have documented my efforts. Maybe this will be useful for others. I have placed this on the maemo wiki. Hopefully this is the right place. You can find it here:

http://wiki.maemo.org/OpenGL_ES_Libraries

Also, if anyone has any additional information about using OpenGL ES 2.0 with the N900 that would be very much appreciated. I still have some unanswered questions such as:
  • Is OpenGL ES 1.x emulated? Does this impact performance?
  • What libraries do you suggest using? Is there SDL with OpenGL ES 2.x support?
  • While trying out the PVRShell for creating an OpenGL ES 2.x application I encountered something that I'm not sure is an issue or not. When I ran the TrainingCourse/03_IntroducingPVRShell example I received the message:

    Code:
    "PVRShell: Warning! Using the SOFTWARE renderer".
    I looked through the PVRShell source code and found out that it was trying to set the attribute EGL_NATIVE_RENDERABLE to EGL_FALSE when calling eglChooseConfig.
    I've spent some time trying to figure out if it's possible to get this attribute set to EGL_FALSE but haven't been successful. I'm not really sure if having this set to EGL_TRUE really results in software rendering.
    My understanding of the attribute EGL_NATIVE_RENDERABLE is that it refers to whether other native applications have access to and can write to the framebuffer (EGL_TRUE). I'm still not entirely sure what it means.
    The OpenGL ES documentation at http://www.khronos.org/opengles/sdk/...ooseConfig.xml says this:

    EGL_NATIVE_RENDERABLE


    Must be followed by
    EGL_DONT_CARE,
    EGL_TRUE, or
    EGL_FALSE.
    If EGL_TRUE is
    specified, then only frame buffer configurations
    that allow native rendering into the surface will be
    considered. The default value is EGL_DONT_CARE.
    Does anyone know about this? I thought it might have something to do with the hildon compositor but I've tried even after setting the X11 window attribute to _HILDON_NON_COMPOSITED_WINDOW but still cannot set this to EGL_FALSE.

Thanks!

Last edited by Mr_Smiley; 2009-12-22 at 05:15.
 

The Following 14 Users Say Thank You to Mr_Smiley For This Useful Post:
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#2
Many thanks for creating that very useful wiki page. Just a quick note that http://wiki.maemo.org/OpenGL-ES-Game is a slightly more readable link to the same page. Also, ideally wiki articles shouldn't be written in the first person ("I did this" etc.), as that might put off other people from editing the page.

Last edited by pelago; 2009-12-21 at 11:57.
 

The Following 5 Users Say Thank You to pelago For This Useful Post:
Posts: 8 | Thanked: 16 times | Joined on Dec 2009
#3
Hello,

Thanks for the comments. I have modified it so that it's more general and have removed first person references.

Thanks!

Last edited by Mr_Smiley; 2009-12-22 at 04:40.
 

The Following User Says Thank You to Mr_Smiley For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 14:24.