Sdl 1.3, Glu And Nehe Opengl Tutorials For The Pandora
#1
Posted 28 May 2009 - 02:56 PM
After a lot of work, i finally successfully writed an OpenGL ES pandora driver for the upcoming SDL 1.3 library.
The pandora video driver allow to use SDL 1.3 with OpenGL ES support under the framebuffer, but for now i didn't writed the input event part, so we need to add our own control system. This will be added to the pandora video driver soon, i bet before the official pandora release.
I also added OpenGL ES support for the x11 video driver, so we can use SDL 1.3 with OpenGL ES support under X, with input event working and all that crap. So it mean that this one is fully functionnal.
I contacted Sam, the author of the SDL library, this one confirmed me that we can dynamically link our application against SDL 1.3 for FREE, and that we can add this shared library for free in our Pandora firmware image. This mean that you can already start coding application under the SDL 1.3 library, it will be free for the pandora.
Note that all this work is done on the SVN library, but this one seems to be almost done for a release so it may not change a lot.
Here is the SDL 1.3 repository with Pandora support : http://github.com/Cp...ste/SDL-13/tree
In the same time, i ported GLU library to the pandora, based on the "Mike Gorchak" QNX port (http://embedded.org.ua/opengles/lessons.html) so i was able to compile his Nehe OpenGL tutorials ports.
Here is the GLU repository with Pandora support, which need SDL 1.3 : http://github.com/Cpasjuste/GLU/tree
And here is the Nehe OpenGL tutorial compiled for the pandora (with sources) : http://mydedibox.fr/.../sdl13_nehe.zip
If you want some screenshot of the tutorials, you can found them here : http://embedded.org....es/lessons.html
All of them have been ported with success on the pandora.
See you !!!
#3
Posted 28 May 2009 - 05:45 PM
How is 1.3 different. In previous 1.2.X build opengl and software context's seem to separate, is this still the case with 1.3? Basically does any of the opengles power the normal software modes? Could normal SDL apps linked to 1.3 see any increase in speed?
I guess I need to find some documentation on 1.3 to get up to speed.
#4
Posted 28 May 2009 - 05:59 PM
Having SDL 13 mean that we have a great openGL ES powered 2D library, and that all future application using the sdl 13 engine will be openGL ES accelerated on the pandora. Also the 1.3 engine is already working on the iphone, so people can easly develop application for the iphone and the pandora in the same time.
I was actually writing a 2D opengl Es library for the pandora, i will move it to SDL 1.3.
This post has been edited by Cpasjuste: 28 May 2009 - 06:02 PM
#5
Posted 28 May 2009 - 06:02 PM
Having SDL 13 mean that we have a great openGL ES powered 2D library, and that all future application using the sdl 13 engine will be openGL ES accelerated on the pandora.
Yeah thats what I thought, very awesome!
#6
Posted 28 May 2009 - 06:13 PM
Also, you remember our problem of poor framerate under X with openGL ES ? I asked powerVr team about that, and they are already aware of this problem. It should be fixed in june with the EVM ! So for now SDL 13 under X is slower than under the framebuffer but should be fixed in june.
This post has been edited by Cpasjuste: 28 May 2009 - 06:15 PM
#7
Posted 28 May 2009 - 07:13 PM
Also, you remember our problem of poor framerate under X with openGL ES ? I asked powerVr team about that, and they are already aware of this problem. It should be fixed in june with the EVM ! So for now SDL 13 under X is slower than under the framebuffer but should be fixed in june.
Great im glad they are on the problem.
#9
Posted 29 May 2009 - 03:21 AM
EDIT: P.S. Very exciting thread, I am about to start my own project (uni semester is over)
And to add, this is exactly what I (and other amateur developers) need, thanks a lot!
This post has been edited by senorgomez: 29 May 2009 - 03:40 AM
#11
Posted 29 May 2009 - 05:50 AM
If people want to start a project with SDL 1.3 for the pandora, you can compile the openGL desktop version of it, and use it on your desktop, As soon as you don't use any openGL call that are not provided with openGL ES, your project will run fine on the pandor. I'm actually working on a library that come on top of SDL 1.3, that should add some easy wrapper for rotation, scaling, TTF font rendering etc. I will try to release a premilary version very soon, maybe in the next week, so people can start coding !
#13
Posted 29 May 2009 - 08:25 AM
#14
Posted 29 May 2009 - 10:41 AM
In SuperLumenal i do all my transforms as a 2D matrix + displacement vector. Saves a lot over a full 4D matrix or 3d + displacement.... 8 vs 28 / 18 operations.

Sign In
Register
Help

MultiQuote