Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've scoured the internet for the last few hours looking for an example of how to run even the most basic OpenGL ES 2 example using JOGL but "by Jupiter!" it has been a total fail.

I tried converting the android example from the OpenGL ES 2.0 Programming Guide examples (and at the same time looking at the WebGL example -- which worked fine) yet without any success.

Are there any examples out there?

If anyone else wants some extra help regarding this question see this thread on the official Jogamp forum.

share|improve this question
up vote 4 down vote accepted

The book "Guide to Graphics Software Tools" uses JOGL to his examples. There are examples for shaders in GLSL, HLSL and Cg.


In there are examples with source code. has a bit of code.

share|improve this answer
I had a look at that book; it's not really what I'm looking for (plus it is pretty pricey considering I only want one example). I already have the book I mentioned in my question so it's just a matter of getting something running so that I can continue learning. – fjdutoit Jul 21 '11 at 7:29
Ok. I've edited my answer with links to examples. – momboco Jul 21 '11 at 11:00

Xerxes Ranby contributed a raw ES2 demo, not using any JOGL utilities and is self contained.

Then you can have a look at another simple demo code using some JOGL utilities. Of course, here you would need to check the shader files.

share|improve this answer
If I had at least 15 points I'd upvote your answer. Thanks for the examples. – fjdutoit Oct 10 '12 at 9:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.