Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
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  
  best way to learn 2d openGL  (Read 1989 times)
0 Members and 1 Guest are viewing this topic.
Offline Kommi

Junior Devvie




All opinions will be lined up and shot!


« Posted 2003-06-05 01:23:30 »

Should I go out and by a book and if so any recomendations? I wish to do 2d openGL stuff for now. I have searched the net for some 2d tutorials but came up with next to nothing. All the tutorials are about 3d. It makes me think that no one uses openGL for 2d at all. Is there any truth to this?

Kommi
Offline bedelf

Junior Devvie




Are you suggesting coconuts migrate?


« Reply #1 - Posted 2003-06-05 03:40:35 »

Well 2d opengl is somewhat of a silly term anyways since no matter what your basically always doing 3d graphics. It's just.. flat. Smiley So instead of drawing an image you have to make 4 vertices into a square and texture it. The thing I had the hardest time with after doing java2d stuff for a long time was just adjusting to how opengl does business. i.e. you setup a state and render something, and generally trying to figure out what the hell was really going on. Smiley

Though I think without Cas's SPGL to look at/use I think I would still be doing java2d and just using openal for sound.

http://chman-area.tuxfamily.org/

I also have a ton of "omfg this isnt working" newbie questions on here you might find useful is you decide to try and do this.
Offline Kommi

Junior Devvie




All opinions will be lined up and shot!


« Reply #2 - Posted 2003-06-05 12:21:59 »

Thanx I have already started learning the tutorials frm both your site and Nehe. You cleared up my confusion. I had the suspision that all openGL is 3d and the 2d stuff is just flat with only x,y translations. I was wondering if there are any openGL newbie books worth buying? As far as Java2D was is concerned I learned everything through tutorials and forum posts, but since the openGL API is so widely published maybe a book is a better way to go?  

Kommi
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mojomonkey

Senior Devvie




ooh ooh eee eeee


« Reply #3 - Posted 2003-06-05 12:40:43 »

While I don't know of any OpenGL 2D books the only books I would recommend for OpenGL are the Red Book and the Blue Book. I do own a copy of the OpenGL Super Bible that doesn't suck. Most of the others are pretty poor that I have seen.

Everyone should own a copy of the red and blue books though.

Don't send a man to do a monkey's work.
Offline Kommi

Junior Devvie




All opinions will be lined up and shot!


« Reply #4 - Posted 2003-06-05 13:20:11 »

What are the red and blue books?

Kommi
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #5 - Posted 2003-06-05 13:33:13 »

The red book is the official book for learning OpenGL, and starts from the basics and covers all the major features. You can get a copy here: http://www.gamedev.net/download/redbook.pdf

The blue book is a description of all the functions and their parameters and use, basically all the documentation. Its also avalible online i think, dunno where. As a fallback you can find all the core functions (up to v1.1) described in the MSDN docs.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #6 - Posted 2003-06-05 13:39:22 »

Here:

http://www.opengl.org/developers/documentation/books.html

"The OpenGL Programming Guide 3rd Edition The Official Guide to Learning" is the red book and "OpenGL Reference Manual 3rd edition" is the blue book.

Java Game Console Project
Last Journal Entry: 12/17/04
Offline Kommi

Junior Devvie




All opinions will be lined up and shot!


« Reply #7 - Posted 2003-06-05 16:19:33 »

Thanx for the replies. Last question going back to the topic of 2d openGL. So even if everything is essentially 3d I can still have a completely 2d game with openGL by having flat images and movement only along the x and y axis, correct?  

Kommi
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #8 - Posted 2003-06-05 16:28:26 »

Here's a small tutorial on ignoring the Z coord:

http://josrts.sourceforge.net/phpwiki/index.php/OpenGL2D

Java Game Console Project
Last Journal Entry: 12/17/04
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.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (50 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (57 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!