Starting with OpenGL ES 2

Started by
3 comments, last by kop0113 11 years, 2 months ago

Hi smile.png

I'm really confused now.
I'm 17 and I want to learn game design for mobile platforms (Android and iOS).

I have some game programming experience with XNA and C#, and I have solid knowledge of C/C++.

These are issues that are stopping me from learning OGLES :

  • I have no Android or iPhone device, so I'm wondering is there any way to emulate OGLES 2 on desktop (Ubuntu Linux) ?

  • What modern books and tutorials on GLSL and shader math can You recommend ?

  • Is there even a chance to learn fundamentals of OpenGL ES 2 and Shaders using GLSL in 6 months ?

  • Can indie game pay my college ? smile.png

Thank You in advance, and I'm sorry if the question is poor or bad, but I don't have anyone to ask these questions and I believe that communty can help me smile.png

Advertisement

Yes, you can do your OpenGL programming on Ubuntu. OpenGL 2 is effectively a superset of OpenGL ES 2, so if you stay within the confines of the ES features, you'll be fine. Mesa also supports the ES2 profile, so you could have a look at that. But if you want to write for mobile devices, having access to one will serve you well.

I'm sure other people, and Google, will can link any number of tutorials; I remember this book as being helpful http://www.amazon.co.uk/OpenGL-ES-2-0-Programming-Guide/dp/0321502795

Do you mean if there's a chance to learn the fundamentals in 6 months? Yes, definitely! Especially since you probably already know a lot of the basic concepts and math from XNA.

Making an indie game can pay for college roughly the same way buying a lottery ticket can, unfortunately. It's possible, but luck plays a huge factor.

Since you don't have a mobile device at the moment, I would focus on general OpenGL programming to start and get the basic concepts down, since they will be the same whether you are on PC or a mobile device.

If you go to http://www.reddit.com/r/opengl and look on the right side, there are some really good tutorials that can help you learn modern OpenGL programming.

Its definitely possible to learn in 6 months if you are a hard worker and not afraid to ask questions. :D

scottrick49

Thank you guys so much, I will start with OpenGL on desktop.I found this tutorial : http://ogldev.atspace.co.uk/.It looks good.

Also, I'll find the book that Brian recommend when I get real mobile device.

Thanks :)

If you want to target OpenGL ES (i.e so you can ignore any confusing deprecated stuff) I highly recommend emscripten. It is all desktop based which means you dont need to mess around with iPhone / Android related limitations (like certificates or java/objc shim layers).

https://github.com/kripken/emscripten

It basically compiles your C/C++ code to Javascript for a WebBrowser and supports OpenGL ES 2.0 (ultimately WebGL).

You will need to compile or get hold of binaries for...
LLVM
clang
node.js
python

But then emscripten will take any standard OpenGL Core or ES2 project (including GLUT) and cross compiles to a javascript output which is pretty awesome.

One thing that is a pain is the very long compile times when you use C++. (C is fine). So what I recommend is write your code to work on both OpenGL (with a standard compile) and then use emscripten to test it works with OpenGLES.

It provides Glut, libPNG, SDL and loads of other game related libraries by default.
http://tinyurl.com/shewonyay - Thanks so much for those who voted on my GF's Competition Cosplay Entry for Cosplayzine. She won! I owe you all beers :)

Mutiny - Open-source C++ Unity re-implementation.
Defile of Eden 2 - FreeBSD and OpenBSD binaries of our latest game.

This topic is closed to new replies.

Advertisement