Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (547)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  How to start with OpenGL ?  (Read 1872 times)
0 Members and 1 Guest are viewing this topic.
Offline Andre Lopes
« Posted 2013-03-23 13:30:36 »

Hi Guys!
I want start studying openGL!

Im actually working on my 2D game and learning a lot of it... Also, learning AI.
But now, i finished the 2D part of "KIller game Programming book" and since the java3D is kinda dead and will be replaced by javafx 3D , i wont study it.

Anyway, i want study something else now,  i think openGL is a good thing.But i dont know how to start it.
I was checking the topics with resources but most books are deprecated or bad-spoke in amazon...
How did you guys learned it ?
I want a good Book to learn a lot of it...

For instance, this red book :http://www.amazon.com/OpenGL-Programming-Guide-Official-Learning/dp/0321552628/ref=zg_bs_3935_10
Check the comments, ppl are kinda raging...


And now , thios orange book will come..Should i buy it ?
http://www.amazon.com/OpenGL-Programming-Guide-Official-Learning/dp/0321773039/ref=zg_bs_3935_1

Anyone have another book recomendation that is not that old or deprecated ... Can be something basic, at least for start... I have not a clue how to start with it.


Thanks guys!
XD
Offline Andre Lopes
« Reply #1 - Posted 2013-03-23 15:02:06 »

I kept searching but , i have another thing to ask.

Does it matter if its for java or C++ or anything else? Or OpenGl Methods are almost the same in any Language ?
Offline JESTERRRRRR

Senior Member


Medals: 7
Exp: 1 year



« Reply #2 - Posted 2013-03-23 15:20:11 »

For your 2nd question, I believe it is mostly the same. Most people who ask about learning opengl in java get told C tutorials or w/e will be fine. I think that JOGL and LWJGL all have mostly the same opengl commands, just a slightly different bit of setup/initialization code, nothing major though.

I will sya however that as a compeltely self taught (internet) programmer with no knowledge of any language but java I found it extremely difficult to learn from anything but java tutorials for opengl
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Andre Lopes
« Reply #3 - Posted 2013-03-23 15:54:42 »

Hi jester :p
I downloaded lwjgl - 2.8.5 , but now i need some guide... Not sure where to find.

Which API you think is more complete and updated frequently ? lwjgl or JOGL ?


Btw, your name reminds me of California games ( Mega Drive)
Offline JESTERRRRRR

Senior Member


Medals: 7
Exp: 1 year



« Reply #4 - Posted 2013-03-23 16:28:32 »

loool I won't er, recommend either because a certain developer will literally jump me.

I'm not the best person to answer, but first step is
http://www.lwjgl.org/wiki/index.php?title=Main_Page
the basics under tutorials. will get you started with at least a shape. goodluck
Offline Andre Lopes
« Reply #5 - Posted 2013-03-23 16:32:14 »

Quote
Recommend either because a certain developer will literally jump me.

Does he have another API which is better ?
Im kinda new here , so,,, you gotta update me up LOl Tongue
Offline HeroesGraveDev

JGO Kernel


Medals: 244
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #6 - Posted 2013-03-23 18:50:53 »

LWJGL is more popular on this forum.

I too, will make no comment on which is more maintained.

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #7 - Posted 2013-03-23 19:01:48 »

I recommend LWJGL due to its awesome static API.

To learn OpenGL, here's a really good tutorial I recommend: www.arcsynthesis.org/gltut
The code that goes along with it is in C++ so I ported it to Java+LWJGL: www.bitbucket.org/ra4king/lwjgl-shader-tutorials/

Offline Sparky83

Senior Member


Medals: 6
Projects: 1



« Reply #8 - Posted 2013-03-23 19:29:39 »

Let me join the party of LWJGL users! I am totally happy with it! Smiley
Offline Andre Lopes
« Reply #9 - Posted 2013-03-25 15:46:16 »

Why the helpful comments are gone ?
I was going to check them... Weird.

Anyway, should i use Slick2D or simply start with LWJGL ?
If i use Slick2D, i need to learn LWJGL ?

What you guys recommend for me?
Im a begginner with games. What api should i use to start?
Im very, very noob with game programming. But i will put a lot effort into it, prommisse!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Andre Lopes
« Reply #10 - Posted 2013-03-25 16:02:41 »

Ok, i found the topic.
It seems , that because of the flame war, part of the topic was moved heheh.

Ok, i found this :  http://libgdx.badlogicgames.com/download.html

So , whats the road should i take?

Learn first LWJGL and then go for libgdx ?
Or go directly to libgdx?

What should i do ?
Offline Sparky83

Senior Member


Medals: 6
Projects: 1



« Reply #11 - Posted 2013-03-25 16:28:40 »

I will tell you what I would do if I were in your position and knew what I know now:
If I just wanted to start with game programming right away, I would definitly use LibGDX, because once set up (which is fairly easy thanks to the setup tool) you can read some tutorial and start right away. And there is a nice and often copied tutorial featuring a bucket and a raindrop. This might be perfect for you to start with:
http://code.google.com/p/libgdx/wiki/SimpleApp

This is just a hint. You don't need to do it this way. Of course, learning OpenGL (doesn't matter if JogAmp/JOGL or LWJGL) would help you, to better understand everything, but it is some hard work and might not help you that much depending on what you want to achieve.
Offline davedes
« Reply #12 - Posted 2013-03-25 16:45:19 »

If your main goal is to learn game programming, then LibGDX is the best choice.

If your main goal is to learn graphics programming and OpenGL, then LibGDX is still a good choice. At its core, it's essentially just another OpenGL wrapper, like LWJGL, but with added utilities (shader compilation, image decoding, vector math, etc). It lets you jump into the important concepts, like writing GLSL or working with vertex data, without having to write hundreds of lines of boilerplate.

The most important "modern OpenGL" concepts to learn first, in my opinion, are Textures and shaders. Once you understand these, the rest of the pipeline will begin to make more sense. I'd suggest reading through some of my tutorials, and following along either with LibGDX or the lwjgl-basics API:

OpenGL, GLSL and LibGDX Tutorials

This will let you learn the concepts without dealing with boilerplate like VBOs and shader utilities. If at a later point you feel compelled to "reinvent the wheel," you can get down to the wire with LWJGL and write your own VBO/texture/shader/etc utilities.

Offline Andre Lopes
« Reply #13 - Posted 2013-03-25 16:46:47 »

https://github.com/mattdesl/lwjgl-basics/wiki

http://code.google.com/p/libgdx/wiki/SimpleApp


Thanks Guys!
I will print those two Tutorials and make a little Book for me to study.
Does that sound a good Plan ?

Tongue
Offline PeterNicholson

Senior Member


Medals: 3
Projects: 1



« Reply #14 - Posted 2013-03-25 16:51:04 »

Yes, good idea, if You have got enough ink  Roll Eyes Also, try reading up The Coding Universe , he has got some goot tuts.

Subscribe to me on YouTube: http://youtube.com/javaprogrammerguy
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (23 views)
2014-08-19 09:29:53

Tekkerue (22 views)
2014-08-16 06:45:27

Tekkerue (21 views)
2014-08-16 06:22:17

Tekkerue (12 views)
2014-08-16 06:20:21

Tekkerue (19 views)
2014-08-16 06:12:11

Rayexar (57 views)
2014-08-11 02:49:23

BurntPizza (37 views)
2014-08-09 21:09:32

BurntPizza (29 views)
2014-08-08 02:01:56

Norakomi (36 views)
2014-08-06 19:49:38

BurntPizza (66 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!