2
\$\begingroup\$

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.

\$\endgroup\$

2 Answers 2

4
\$\begingroup\$

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

Edited

In http://www.davidcornette.com/glsl/download.html there are examples with source code. http://www.guyford.co.uk/index.php/forum/14-java-jogl/15-jogl-example-glsl-shader-setup has a bit of code.

\$\endgroup\$
2
  • \$\begingroup\$ 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. \$\endgroup\$ Commented Jul 21, 2011 at 7:29
  • \$\begingroup\$ Ok. I've edited my answer with links to examples. \$\endgroup\$ Commented Jul 21, 2011 at 11:00
2
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\begingroup\$ If I had at least 15 points I'd upvote your answer. Thanks for the examples. \$\endgroup\$ Commented Oct 10, 2012 at 9:56

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.