Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
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  
  OpenGL and LWJGL  (Read 2225 times)
0 Members and 1 Guest are viewing this topic.
Offline nickdotjava

Junior Devvie




I have fallen to the dark side.  I'm using DX9


« Posted 2003-06-08 14:37:38 »

I'm having trouble learning LWJGL, mainly because there are lots of commands that are used, and appear in the javadoc, but there's no explanation of what they do.  I'm reading the OpenGL specification 1.4, but would like a reference book.  Printing 300+ pages isn't exactly what I want to do.  Any recommendations?

-Nick

"Oh ya, that's trivial.  I should have it done in an hour."
Offline jbanes

JGO Coder


Projects: 1


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


« Reply #1 - Posted 2003-06-08 14:42:46 »

Man pages! All the gl commands are listed in unix man pages. Just change gl.command to glCommand. (i.e. gl.color4f becomes glColor4f) Personally, I have Cygwin installed so I can just open a window and type "man glCommand".

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

Junior Devvie




Nothing more that... Java games are cool !


« Reply #2 - Posted 2003-06-08 14:57:58 »

Hum...
Learning lwjgl is learning OpenGL, so I think you should look at OpenGL tutorials...
Try http://nehe.gamedev.net, it's one of the best site for opengl beginner...

Nehe's tutorials are in C++, but the opengl syntax is the same...
I've ported many of his tutorials to java on my website (http://chman-area.tuxfamily.org), but I haven't made any update since a little time (sorry for the community)...

Hope it helps !

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

Junior Devvie




I have fallen to the dark side.  I'm using DX9


« Reply #3 - Posted 2003-06-08 16:23:20 »

LWJGL is using the 1.4 specification, right?

-Nick

"Oh ya, that's trivial.  I should have it done in an hour."
Offline Chman

Junior Devvie




Nothing more that... Java games are cool !


« Reply #4 - Posted 2003-06-08 16:27:15 »

Yeah, I think so...
Offline Captain-Goatse

Junior Devvie




I suck at teh 2D. XBOX IS BIG LOL!111


« Reply #5 - Posted 2003-06-08 17:29:13 »

OpenGL superbible, if it doesn't teach you OpenGL, then it will convert you to C.
Offline bedelf

Junior Devvie




Are you suggesting coconuts migrate?


« Reply #6 - Posted 2003-06-08 19:21:29 »

Captain-Goatse, from the heart of hell, I stabbeth thee. Wink
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #7 - Posted 2003-06-08 19:32:47 »

Capt., you're starting to resemble a Jehova's Witness.  Roll Eyes

Offline cfmdobbie

Senior Devvie


Medals: 1


Who, me?


« Reply #8 - Posted 2003-06-08 21:08:29 »

LWJGL follows the OpenGL 1.4 spec.  However, you can use it to talk to any previous version of OpenGL as well - I'm currently using it to talk OpenGL 1.1.

Check the boolean values of GL.OpenGL10 through GL.OpenGL14 to see what versions your driver supports - all versions up to and including the supported version will be true.

Hellomynameis Charlie Dobbie.
Offline jbanes

JGO Coder


Projects: 1


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


« Reply #9 - Posted 2003-06-09 01:23:28 »

Quote
Capt., you're starting to resemble a Jehova's Witness.  Roll Eyes


I suppose "Captain-Watchtower" does sound slightly better than "Captain-Goatse". After all, they both seem to be trolls... Wink

Java Game Console Project
Last Journal Entry: 12/17/04
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Captain-Goatse

Junior Devvie




I suck at teh 2D. XBOX IS BIG LOL!111


« Reply #10 - Posted 2003-06-09 08:23:53 »

Ok, I'll stop!

....or...Hay guys I heard ocaml > *...


no really, it was meant to be a joke.
Offline Andrew

Senior Newbie




Java games rock!


« Reply #11 - Posted 2003-06-09 11:10:03 »

Chman,

just tried some of the tutorials on your site. Thanks very much for the effort you must have put in, but you are still using Display.create and destroy() - I'm afraid they need to be updated to 0.6

It also looks like an error has crept into Nehe38. It has this at line 373

1  
            gl.genTextures(1, shaderTexture);                                    // Get A Free Texture ID


it needs a buffer address:

1  
2  
3  
        IntBuffer textureBuf = ByteBuffer.allocateDirect(4).order(ByteOrder.nativeOrder()).asIntBuffer();
            gl.genTextures(1, Sys.getDirectBufferAddress(textureBuf));                                    // Get A Free Texture ID
        shaderTexture = textureBuf.get(0);


Runs nicely after that. Smiley
Offline nickdotjava

Junior Devvie




I have fallen to the dark side.  I'm using DX9


« Reply #12 - Posted 2003-06-09 20:00:13 »

Quote
OpenGL superbible, if it doesn't teach you OpenGL, then it will convert you to C.


I WILL NEVER CONVERT TO C!  YOU HEAR ME?  NEVER!!!  lol   Smiley

Quote
Ok, I'll stop!

....or...Hay guys I heard ocaml > *...


no really, it was meant to be a joke.


O'Caml?  O'Caml has got to be the worst language ever!  I hate it, even more than C!   Angry

And now for the on-topic part.   Grin  Is the difference between LWJGL and OpenGL that the underscores in OpenGL are replaced with periods in LWJGL?

-Nick

"Oh ya, that's trivial.  I should have it done in an hour."
Offline jbanes

JGO Coder


Projects: 1


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


« Reply #13 - Posted 2003-06-09 22:32:03 »

>  O'Caml?  O'Caml has got to be the worst language ever!  I hate it, even more than C!

You're right. He should be mentioning Haskell...


JUST KIDDING!!!

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.

trollwarrior1 (32 views)
2014-11-22 12:13:56

xFryIx (73 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (40 views)
2014-11-12 21:09:33

kovacsa (64 views)
2014-11-07 19:57:14

TehJavaDev (69 views)
2014-11-03 22:04:50

BurntPizza (67 views)
2014-11-03 18:54:52

moogie (82 views)
2014-11-03 06:22:04

CopyableCougar4 (82 views)
2014-11-01 23:36:41
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!