06-05-2010 01:27 PM
Hello all Im tryin to start learning open GL with Blackberry. Im trying to start with this example. So I create a new project in my eclipse and create the class OpenGLTest and copied the example content. But Sadly the emulator does not show me anything when I execute the example.
If you have any ideas (like code errors or if there is an emulator that does not display OpenGL stuffs) I dont have any experience with Open Gl so I cant say if the code must work but since is an official example Im putting my trust in it.
Here are the data of the tools Im using:
Eclipse with 1.1 plugin Beta
If you need more information pls ask
Thanks in advance
06-05-2010 02:12 PM
What simulator are you using? Only ones that support OpenGL is 8530, 9520, 9550, and 9650 support OpenGL so if you aren't running on one of those then it won't work.
06-05-2010 03:41 PM
Thanks for the reply!! I was using a 9700 emulator but now I tried with 9550 and still I get this blank screen. Anyway Im going to try to download and use another simulator and I ll let you know how It went. If anything else comes to you pls let me know.
06-05-2010 04:23 PM
OK, the 9700 does not support OpenGL, if you call GLUtils.isSupported() you will find out if it is supported or not.
08-30-2010 09:06 AM
But what about 9550, and 9650? I'm trying to do the same on 9650 simulator now - no luck at all!
(I've debugged, traced it, all seems to be okay, the bitmap for a texture is loaded, the size matches, no errors after glTexImage2D, but I see only black screen)
08-30-2010 11:37 PM
If you aren't getting any errors then it might be something in your code.
08-31-2010 02:15 PM
No, I did a straight copy paste and it works for me or RIMs code. What code do you have?
The only area that their might be issues with is the glDrawArrays function because it doesn't support "sections" right now.
So where it might say "draw one side, now the next, now the next..." you need to have it all draw at the same time for it to work. I posted this on Issue Tracker but they couldn't reproduce it, I'm going to repost it and update it so that it has a better chance of occuring.