Re: JOGL Tutorials
Posted by
Michael Bien on
Aug 30, 2010; 1:06am
URL: https://forum.jogamp.org/JOGL-Tutorials-tp1386061p1386358.html
wow thats great Justin!
you are indeed filling a huge gap with this tutorials. Very good
explained.
just two small remarks:
you are using GLProfile in all examples very early in the program -
this is good since if you would do any GUI work before this call it
would probably crash on linux. To prevent this just call
GLProfile.initSingleton() explicitely before doing anything with
GUIs. This allows JOGL to do some linux specific locking
optimization. I don't know the status of this particular issue but
it was planed to make those optimizations optional (opt-in) to don't
have this a bit confusing requirement to call
GLProfile.initSingleton() so early. (Its currently a showstopper
which prevents using latest builds of JOGL 2 in module systems like
the NetBeans platform)
this is a bit under-documented since its not final yet... sorry for
that.
FPSAnimator: maybe mention that the coolest way of limiting the
framerate is by using the simple Animator to render fast as possible
and asking the driver to do the work for you.
gl.setSwapInterval(1); // -> synchronizes the framerate with the
screen refresh rate of your monitor (vsync)
(but its known to be ignored on some intel cards)
thank you for the contribution,
good work!
-michael
On 08/30/2010 01:03 AM, Justin [via jogamp] wrote:
Hi,
I'm a graduate student in CS working mainly with graphics. I
started learning graphics about a year and a half ago (as an
undergraduate) using JOGL, which was great at the time since Java
was the primary language taught at my university. Since then, I
started to learn OpenGL and DirectX using C++, but I still use
JOGL for many academic projects for its platform independence.
One of the things I found difficult in using JOGL was a lack of
resources or tutorials while getting started. Reading through an
APIs documentation isn't always easy, so I wanted to put together
some sort of quick-start guide. This was mainly for my own
benefit, but I figured it may also help others out there.
If anyone would care to take a quick look through what I've
written, please let me know if you see anything which isn't quite
correct or misleading. One intention of the tutorials was to get
an undergraduate student, new to graphics, to get up and running
as quickly as possible. I don't cover OpenGL in much detail at
all, as there are tons of resources available for it already.
https://sites.google.com/site/justinscsstuff/jogl-tutorials
Thanks,
Justin
--
http://michael-bien.com/