We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Learning references for OPenGL in Processing
Page Index Toggle Pages: 1
Learning references for OPenGL in Processing (Read 807 times)
Learning references for OPenGL in Processing
Jul 5th, 2008, 2:11pm
 
Hi
Could someone point me to any online beginner's references for learning how to use OpenGL in processing, for example, I only accidently discovered that "hint(ENABLE_OPENGL_4X_SMOOTH)" is how you implement anti aliasing.  I couldn't find in any of the Processing documentation any mentnion of this, or anywhere online that explains what 'hints' are.  Stuff like this and a reference library of other similar commands would be very useful.

Thanks,

gl.noob
Re: Learning references for OPenGL in Processing
Reply #1 - Jul 5th, 2008, 5:05pm
 
what have you seen?

http://processing.org/learning/3d/index.html
is all the openGL examples

http://processing.org/reference/hint_.html
is the reference page for hints (they are a bit of a platypus really, don't belong anywhere as they cover opengl, zip files and fonts).

i think the point of processing is that you don't need to know the opengl stuff - you just use the standard line / box / whatever and the opengl renderer translates it into pixels for you.

(if you're keen on learning 'raw' openGL then you're better off using java and jogl in something like netbeans rather than processing, imo. have a look into the jogl versions of the nehe tutorials. google 'nehe jogl')
Re: Learning references for OPenGL in Processing
Reply #2 - Jul 5th, 2008, 5:23pm
 
Thanks Koogs
the hint page was useful (embarassed I didn't know about it)

I thought I was missing out on a whole bunch of sexy GL functions that I wasn't aware of, as I'd seen some code around in the forums with people using direct GL calls....  But hopefully, like you say, I shouldn't need too - I just get on with writing my program.

Cheers,

Glenn.
Re: Learning references for OPenGL in Processing
Reply #3 - Jul 5th, 2008, 5:30pm
 
There's no reference for the direct OpenGL functions as they're kinda outside the scope of processing itself. You're able to use them, but they're quite advanced, and when you're using them you're probably better off finding information about them from dedicated OpenGL places, rather than here.
Re: Learning references for OPenGL in Processing
Reply #4 - Jul 6th, 2008, 12:57am
 
If you are interested in opengl there are some pretty good tutorials here
http://nehe.gamedev.net/

and if you wanna get deeper there is of course the bible:
http://www.opengl.org/documentation/red_book/

which luckily you can find a slightly older version online (covers opengl 1.1, not 2.0)
http://www.glprogramming.com/red/

these cover the concepts of opengl and the opengl API, and you can use pretty much all of it in Java / Processing through jogl by following the instructions halfway down this page (under the advanced section), though it isn't really advised unless you have to (or really want to)...
http://processing.org/reference/libraries/opengl/

Re: Learning references for OPenGL in Processing
Reply #5 - Jul 6th, 2008, 11:32am
 
Thanks for this help guys Smiley



Page Index Toggle Pages: 1