Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (525)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (594)
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  
  tutorial on LWJGL, where???  (Read 3844 times)
0 Members and 1 Guest are viewing this topic.
Offline triple-ace

Senior Newbie





« Posted 2005-08-30 07:45:55 »

hi there all...

i'm new in this forum, well at first i didn't expect that there would be a LWJGL forum here. But now since i know this forum exists i would like to ask a question to you guys.

i haven't use LWJGL because i don't know where to start, i haven't found any good tutorial to start with. Do you guys know where to find a good tutorial using LWJGL???

i have try using tutorial on NeHe but it was in C++ and JOGL, so i have still got  a problem using the example code. Ii don't know if there's a port for LWJGL though, but i'll check it again.

TiA
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #1 - Posted 2005-08-30 07:57:19 »

You could try the basic rendering tutorial from:
http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/index

There are LWJGL ports of nehe too - at the nehe site.

Offline AshenWraith

Junior Newbie





« Reply #2 - Posted 2005-08-30 10:34:58 »

I'm actually looking for tuts myself.  I went on nehe.gamedev.net a few days back and grabbed some tuts that were converted to LWJGL, but I had problems getting them to run and compile.  If you check out CaptainJester's profile on here, he has a link to a zip with all the "latest" nehe tutorials on them that he converted.

I tried out lesson 22, which is bump mapping, but I was getting errors with devil.  The readme
says it is compatible with LWJGL 0.9x, but I tried 0.98-0.93 and couldn't get it to to work right.

I got it to run by commenting out some lines of code that were giving me errors, but it doesn't look like then the bump mapping wast working correctly-I guess i'm just not good enough of a programmer  to make it work.  Tongue


Anyways GL with the tutorials and I hope you have better luck with them than me.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline chaosdeathfish

Junior Devvie


Projects: 1



« Reply #3 - Posted 2005-09-01 00:10:00 »

Ack! Don't use the bump mapping from Lesson 22 - That's Emboss bump mapping, which is awkward to use and not as realistic. Or at least, don't use it for anything serious Smiley
Offline hvor2

Junior Devvie




Beyond mind, there is an awareness...


« Reply #4 - Posted 2005-09-16 07:44:18 »

I don't know about you, but I always have problems in running NeHe LWJGL tutorials, because of line:  IL.ilGenImages(1, image); in method where it loads a texture into memory:

private int loadTexture(String path) {
        IntBuffer image = ByteBuffer.allocateDirect(4).order(ByteOrder.nativeOrder()).asIntBuffer();
        IL.ilGenImages(1, image);
        IL.ilBindImage(image.get(0));

.................
..................


SOLUTION: just put IL.ilGenImages( image)  instead of IL.ilGenImages(1, imageWink

Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #5 - Posted 2005-09-22 11:14:52 »

I don't know about you, but I always have problems in running NeHe LWJGL tutorials, because of line:  IL.ilGenImages(1, image); in method where it loads a texture into memory:

private int loadTexture(String path) {
        IntBuffer image = ByteBuffer.allocateDirect(4).order(ByteOrder.nativeOrder()).asIntBuffer();
        IL.ilGenImages(1, image);
        IL.ilBindImage(image.get(0));

.................
..................


SOLUTION: just put IL.ilGenImages( image)  instead of IL.ilGenImages(1, imageWink

That's because they changed the API after the tutorial was written.  The tutorial was written for 0.94alpha of LWJGL.

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #6 - Posted 2005-09-22 18:07:05 »

And if you have a Mac (or Linux?) you need to download the DevIL library manually. Do a search in the LWJGL section for it and you should find some links.

See my work:
OTC Software
Offline betwixt

Innocent Bystander





« Reply #7 - Posted 2005-11-04 12:23:44 »

I can't find that CaptainJester's link anywhere. Please send it to me betvixt@hotmail.com. Oh and how is it possible to use LWJGL with Gel?
Offline nardev

Senior Newbie





« Reply #8 - Posted 2005-11-11 18:04:00 »

just type in the google nehe game dev, and on the bottom of each lesson is source code for all the different versions of that particular lesson in regards of Programing language. Open a lesson, ctrl+F and type lwjgl. Much luck! If you have any questions let me know i just got done with the LWJGL initiation (2-3 months of coding) Cheesy

<a href="http://vedsta5.freeserverhost.com/">CroAsteroids</a> - Shoot asteroids while doing math equations.
Offline InfoRital

Junior Devvie





« Reply #9 - Posted 2005-11-12 23:28:57 »

If you understand french, you can go on JIGames Community : http://www.jigames.info/ .

There are tutorials on LWJGL, JOGL and Java gaming.

Java In Games : Java Games Community for French Developers
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Evil-Devil

Senior Devvie


Medals: 2


Fir Tree Master


« Reply #10 - Posted 2005-11-14 21:06:16 »

if you know the german language, or trust in translaters, try this one:
http://home.pages.at/evil-devil/evil-devil.com/index.php?menu=tutorials&cat=java&content=java_lwjgl

Someday I will translate it...
Offline Grand Poeba

Junior Devvie





« Reply #11 - Posted 2006-02-07 14:37:32 »

if you know the german language, or trust in translaters, try this one:
http://home.pages.at/evil-devil/evil-devil.com/index.php?menu=tutorials&cat=java&content=java_lwjgl

Someday I will translate it...

i used altavista babblefish to translate to english which makes it a lot easier
Offline egonh

Innocent Bystander





« Reply #12 - Posted 2006-02-12 08:07:38 »

http://coding.shakebox.org/Tutorials/

Chman has two very nice tutorials. There are some very minor errors in the pdf, but the provided sources are fine.
Offline f.l.x

Senior Devvie


Projects: 3


there is no place like 127.0.0.1


« Reply #13 - Posted 2006-02-14 14:19:40 »

one litle noob question.

i have a jared lwgl aplication which i try to run with the usual classpath and library path
1  
flx@kadath:/mnt/win_d/workspace/LWGL_textures$ java -cp ../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_util.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_devil.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_test.jar":textureManager.jar -Djava.library.path="../lwgl/lwjgl-linux-0.99/native/" -jar textureManager.jar


it seems to fail to load the clases on the classpath, since i get the known
1  
2  
3  
Exception in thread "Thread-2" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
        at com.proyectoanonimo.flx.lwgl.utils.TextureManager$4.run(TextureManager.java:298)
        at java.lang.Thread.run(Thread.java:595)


however, if i run the same app accessing directly the main class inside the jar, including the jar in the classpath:
1  
flx@kadath:/mnt/win_d/workspace/LWGL_textures$ java -cp ../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_util.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_devil.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_test.jar":textureManager.jar -Djava.library.path="../lwgl/lwjgl-linux-0.99/native/" com.proyectoanonimo.flx.lwgl.utils.TextureManager


it runs fine.

how should i specify the classpath to run my aplication with java -jar ?

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
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.

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

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

toopeicgaming1999 (14 views)
2014-11-26 15:20:08

SHC (27 views)
2014-11-25 12:00:59

SHC (25 views)
2014-11-25 11:53:45

Norakomi (31 views)
2014-11-25 11:26:43

Gibbo3771 (25 views)
2014-11-24 19:59:16

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

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

digdugdiggy (55 views)
2014-11-12 21:11:50
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!