PDA

View Full Version : Statrting point



mobile
06-21-2004, 03:45 AM
Hi there,

I have worked on PC version on OpenGL want to get set go for 3D mobile, infact i did some j2me development.

Where do get necessary libraries, codes, turorials which will enable me write HELLO WORLD styled OpenGL ES code and enable me to run on my cell phone.

Isnt there OpenGL ES for Dummies avaialable online :)

Mobile

Neelima
06-21-2004, 08:27 PM
Hi,

The hello world for ES is given at http://www.khronos.org/opengles/documentation/html/eglIntro.html

For getting started you can probably use the OpenGL ES reference implementation which can be downloaded from http://www.khronos.org/developers/code.html

The vs.dsw file in the vs folder opens up a VC workspace with test projects for common and common lite profiles. You can run them and see the results.

You can also try the Klimt implementation from sourceforge..

Hope this helps.

Best regards,
Neelima

dimensionX
07-15-2004, 03:53 AM
Hi Neelima,

I downloaded the "OpenGL ES 1.0 Sample Implementation (Open Source Wrapper for Desktop OpenGL) " package from the website you mentioned. I tried to execute the vs.dsw, it says "gl_sin.h" is not available.

Did you try it ?

Thanks,
Arun.

hmwill
07-15-2004, 05:22 AM
Look here. (http://www.khronos.org/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=4&t=000022)

- HM

07-15-2004, 06:45 AM
Dear all,

I am very new to OpenGL ES. I downloaded the "OpenGL ES 1.0 Sample Implementation (Open Source Wrapper for Desktop OpenGL)" package from http://www.khronos.org/opengles/documentation/html/eglIntro.html and then i unzip but i did not see "The vs.dsw file in the vs folder". How can i run it?

Another question:

I create and "c" file in VC++ 6 run on Windows 2000 and copy and paste the example in "eglIntro - introduction to OpenGL ES in an EGL window system". When i compiled it show error "fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
Error executing cl.exe.". What should i do next in order to run this example?

Bests

Chansophea

hmwill
07-15-2004, 10:03 AM
The example code in the manual does not work for windows. You have to create a window class, create a window hooked up to your message loop, and create the rendering context based on the window device context of your window.

You need something like main.cpp (http://cvs.sourceforge.net/viewcvs.py/ogl-es/ogles/test/testwin.cpp?rev=1.1&only_with_tag=HEAD&view=markup) and the InitOpenGL function from
paint.cpp (http://cvs.sourceforge.net/viewcvs.py/ogl-es/ogles/test/paint.cpp?rev=1.1&view=auto)

Hope that helps,
HM

dimensionX
07-15-2004, 10:56 AM
Hi Martin,

Thanks! It worked. It ran the cube example and it was very flickery. Was it supposed to be that way ?

Arun.

hmwill
07-15-2004, 01:01 PM
The code I pointed you at sets up timer events that cause a regular repaint. For a static image you might want to remove the timer creation.

- HM

[ July 15, 2004: Message edited by: Hans-Martin Will ]