Chman
Junior Devvie  
Nothing more that... Java games are cool !
|
 |
«
Posted
2003-01-07 08:36:48 » |
|
Hi everybody ! (sorry for my baaaaaaaad english) I love lwjgl, and i love nehe's website, so i've ported some of his tutorials from C++ to Java (using LWJGL  . You can found the port on my website : www.multimania.com/chman1234if people are interested in my ports, i will port all nehe's tutorial to LWJGL ! ++ Chman
|
|
|
|
Chman
Junior Devvie  
Nothing more that... Java games are cool !
|
 |
«
Reply #1 - Posted
2003-01-07 08:38:23 » |
|
I forgot to say that the site is in french, so if someone wants to help me to convert it in english...............
++ Chman
|
|
|
|
Matzon
|
 |
«
Reply #2 - Posted
2003-01-07 09:18:44 » |
|
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Chman
Junior Devvie  
Nothing more that... Java games are cool !
|
 |
«
Reply #3 - Posted
2003-01-07 10:07:13 » |
|
oh yeah... but i'm going to port all nehe's tutorials... and maybe all GameTutorials.com if i've enough time...
|
|
|
|
Matzon
|
 |
«
Reply #4 - Posted
2003-01-07 14:08:16 » |
|
do notify us of you progress - when you have a bit more than in the examples dir, we'll create a link from lwjgl's page to yours.
|
|
|
|
Chman
Junior Devvie  
Nothing more that... Java games are cool !
|
 |
«
Reply #5 - Posted
2003-01-07 14:14:32 » |
|
thx for your interest !  i've just added a wonderfull demo ! ++ Chman
|
|
|
|
Grom
|
 |
«
Reply #6 - Posted
2003-01-07 19:32:36 » |
|
I'm really looking forward to the port of the later tutorials - and especially the later BSP/MD3 tutorials from GameTutorials.com. Please post as you get more working.
|
|
|
|
Chman
Junior Devvie  
Nothing more that... Java games are cool !
|
 |
«
Reply #7 - Posted
2003-01-11 06:35:43 » |
|
A few more interesting tuts and demos has been had to the site... more are to come ! And all tuts are now working with LWJGL alpha 0.4 !
++ Chman
|
|
|
|
Matzon
|
 |
«
Reply #8 - Posted
2003-01-11 10:35:25 » |
|
awesome - I will link to the page from lwjgl later tonight.
Could someone translate to english please? - it's been 7 years since I last spoke french and I sucked at it!
|
|
|
|
Matzon
|
 |
«
Reply #9 - Posted
2003-01-11 10:36:07 » |
|
The following demos are missing: VertexArray -- 5k, 09 Jan 2003 WaterRain -- 69k, 07 Jan 2003
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Matzon
|
 |
«
Reply #10 - Posted
2003-01-11 10:42:11 » |
|
lol - Nehe 21 is nice  ) 1 thing though, if oal isn't present you just crash out... - might want to report that oal couldn't be loaded since OpenAL32.dll/libopenal.so is missing.
|
|
|
|
Grom
|
 |
«
Reply #11 - Posted
2003-01-11 11:27:12 » |
|
All of the Nehe demos worked perfectly for me except for the last one (Nehe21): the data/* files had to be renamed to be all lower case F.E. Complete.wav must be renamed to complete.wav.
Also, I had to comment out playWave() as this crashed under Linux - likely an OpenAL issue, not your fault.
The game played so fast the only thing I could do was draw a box on the outside of the screen :-)
Keep up the great work!
|
|
|
|
Matzon
|
 |
«
Reply #12 - Posted
2003-01-11 11:38:37 » |
|
yeah - there's definately a caps issue with caps sensitive filesystems. But rather odd that oal would crash on linux...
Grom does it crash consistently ?
|
|
|
|
elias
|
 |
«
Reply #13 - Posted
2003-01-11 11:46:26 » |
|
It works nicely on my rh 8. Did you use the lwjgl oal lib and can we see the crash dump?
- elias
|
|
|
|
Grom
|
 |
«
Reply #14 - Posted
2003-01-11 12:09:57 » |
|
oal crashes 100% of the time.
Here's the dump: (Using gdb on the core revealed nothing as no symbols could be found. Perhaps openal could be compiled with the debug info intact as the default?)
An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 4 occurred at PC=0x4CD5B0D2 Function=alSourceQueueBuffers+0x2 Library=/mnt/freeb1/downloads/java/games/LWJGL/src/native/.libs/liblwjgl.so.0.0.0
Current Java thread: at org.lwjgl.openal.CoreAL.sourcei(Native Method) at Nehe21.playWave(Nehe21.java:257) at Nehe21.render(Nehe21.java:703) at Nehe21.main(Nehe21.java:147)
Dynamic libraries: 08048000-0804e000 r-xp 00000000 03:05 1876941 /mnt/freea5/java/j2sdk1.4.1_01/bin/java 0804e000-0804f000 rw-p 00005000 03:05 1876941 /mnt/freea5/java/j2sdk1.4.1_01/bin/java 40000000-40011000 r-xp 00000000 03:03 129313 /lib/ld-2.2.5.so 40011000-40012000 rw-p 00010000 03:03 129313 /lib/ld-2.2.5.so 40013000-4001c000 r-xp 00000000 03:05 2578592 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/native_threads/libhpi.so 4001c000-4001d000 rw-p 00008000 03:05 2578592 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/native_threads/libhpi.so 4001e000-40021000 r--s 00000000 03:05 1778914 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/dnsns.jar 40021000-40022000 rw-s 40000000 03:03 132656 /dev/nvidia0 40022000-40023000 rwxp 00000000 03:03 7499 /dev/zero 40023000-40024000 rwxp 00000000 03:03 7499 /dev/zero 40024000-40031000 r-xp 00000000 03:03 129309 /lib/i686/libpthread-0.9.so 40031000-40038000 rw-p 0000d000 03:03 129309 /lib/i686/libpthread-0.9.so 40038000-4003a000 r-xp 00000000 03:03 129321 /lib/libdl-2.2.5.so 4003a000-4003b000 rw-p 00001000 03:03 129321 /lib/libdl-2.2.5.so 4003b000-40152000 r-xp 00000000 03:03 129305 /lib/i686/libc-2.2.5.so 40152000-40157000 rw-p 00117000 03:03 129305 /lib/i686/libc-2.2.5.so 4015b000-40473000 r-xp 00000000 03:05 2578594 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/client/libjvm.so 40473000-40627000 rw-p 00317000 03:05 2578594 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/client/libjvm.so 40637000-40648000 r-xp 00000000 03:03 129325 /lib/libnsl-2.2.5.so 40648000-40649000 rw-p 00011000 03:03 129325 /lib/libnsl-2.2.5.so 4064b000-4066d000 r-xp 00000000 03:03 129307 /lib/i686/libm-2.2.5.so 4066d000-4066e000 rw-p 00021000 03:03 129307 /lib/i686/libm-2.2.5.so 4066e000-4067e000 r-xp 00000000 03:05 2578598 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libverify.so 4067e000-40680000 rw-p 0000f000 03:05 2578598 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libverify.so 40680000-406a1000 r-xp 00000000 03:05 2578599 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libjava.so 406a1000-406a3000 rw-p 00020000 03:05 2578599 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libjava.so 406a3000-406b8000 r-xp 00000000 03:05 2578601 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libzip.so 406b8000-406ba000 rw-p 00014000 03:05 2578601 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libzip.so 406ba000-41d88000 r--s 00000000 03:05 1256797 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/rt.jar 41dcb000-41de2000 r--s 00000000 03:05 1256695 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/sunrsasign.jar 41de2000-41e53000 r--s 00000000 03:05 1256697 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/jsse.jar 41e53000-41e66000 r--s 00000000 03:05 1256696 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/jce.jar 41e66000-42122000 r--s 00000000 03:05 1256795 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/charsets.jar 441ca000-441cb000 rwxp 00000000 03:03 7499 /dev/zero 441cb000-441cc000 rwxp 00000000 03:03 7499 /dev/zero 441cc000-441cd000 rwxp 00000000 03:03 7499 /dev/zero 441cd000-441ce000 rwxp 00000000 03:03 7499 /dev/zero 441ce000-441cf000 rwxp 00000000 03:03 7499 /dev/zero 441cf000-441d0000 rwxp 00000000 03:03 7499 /dev/zero 4c3d3000-4c3fe000 r--p 00000000 03:03 218877 /usr/share/locale/ISO-8859-1/LC_CTYPE 4c3fe000-4c40c000 r--s 00000000 03:05 1778916 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/ldapsec.jar 4c40c000-4c40e000 r-xp 00000000 03:03 163373 /usr/X11R6/lib/X11/locale/common/xlcDef.so.2 4c40e000-4c40f000 rw-p 00001000 03:03 163373 /usr/X11R6/lib/X11/locale/common/xlcDef.so.2 4c40f000-4c418000 r-xp 00000000 03:03 129330 /lib/libnss_files-2.2.5.so 4c418000-4c419000 rw-p 00008000 03:03 129330 /lib/libnss_files-2.2.5.so 4c61d000-4c63a000 r--s 00000000 03:05 1778913 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/sunjce_provider.jar 4c63a000-4c6d9000 r--s 00000000 03:05 1778915 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/localedata.jar 4c6d9000-4c720000 r--s 00000000 03:05 1779033 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/vecmath.jar 4c720000-4c984000 r--s 00000000 03:05 1779034 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/j3dcore.jar 4c984000-4cac9000 r--s 00000000 03:05 1779035 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/j3dutils.jar 4cac9000-4cc1b000 r--s 00000000 03:05 1779036 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/j3daudio.jar 4cc1b000-4cc53000 r--s 00000000 03:05 1779041 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/gl4java.jar 4cc53000-4cc71000 r--s 00000000 03:05 1779042 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/gl4java-glutfonts.jar 4cc71000-4cd08000 r--s 00000000 03:05 1779043 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/gl4java-glffonts.jar 4cd08000-4cd16000 r--s 00000000 03:05 1779044 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/ext/png.jar 4cd16000-4cd5b000 r-xp 00000000 03:41 294837 /mnt/freeb1/downloads/java/games/LWJGL/src/native/.libs/liblwjgl.so.0.0.0 4cd5b000-4cd69000 rw-p 00045000 03:41 294837 /mnt/freeb1/downloads/java/games/LWJGL/src/native/.libs/liblwjgl.so.0.0.0 4cd6a000-4cd7a000 rw-s 00810000 03:03 132656 /dev/nvidia0 4cd7b000-4cdb2000 r-xp 00000000 03:03 134862 /usr/local/lib/libopenal.so.0.0.6 4cdb2000-4cdb4000 rw-p 00036000 03:03 134862 /usr/local/lib/libopenal.so.0.0.6 4ce07000-4ce15000 r-xp 00000000 03:03 47100 /usr/X11R6/lib/libXext.so.6.4 4ce15000-4ce16000 rw-p 0000d000 03:03 47100 /usr/X11R6/lib/libXext.so.6.4 4ce16000-4ceda000 r-xp 00000000 03:03 43867 /usr/X11R6/lib/libX11.so.6.2 4ceda000-4cedd000 rw-p 000c3000 03:03 43867 /usr/X11R6/lib/libX11.so.6.2 4cedd000-4cf86000 r-xp 00000000 03:03 52142 /usr/lib/libstdc++.so.5.0.0 4cf86000-4cf9c000 rw-p 000a9000 03:03 52142 /usr/lib/libstdc++.so.5.0.0 4cfa1000-4cfa8000 r-xp 00000000 03:03 63755 /lib/libgcc_s-3.2.so.1 4cfa8000-4cfa9000 rw-p 00007000 03:03 63755 /lib/libgcc_s-3.2.so.1 4cfa9000-4cfec000 r-xp 00000000 03:03 37298 /usr/lib/libGL.so.1.0.3123 4cfec000-4cfef000 rw-p 00042000 03:03 37298 /usr/lib/libGL.so.1.0.3123 4cff1000-4d359000 r-xp 00000000 03:03 37414 /usr/lib/libGLcore.so.1.0.3123 4d359000-4d361000 rw-p 00367000 03:03 37414 /usr/lib/libGLcore.so.1.0.3123 4d408000-4d494000 r-xp 00000000 03:03 84004 /usr/X11R6/lib/libGLU.so.1.3.500 4d494000-4d49f000 rw-p 0008b000 03:03 84004 /usr/X11R6/lib/libGLU.so.1.3.500 4d4a3000-4d5aa000 rw-s 00000000 00:05 89554945 /SYSV00000000 (deleted) 4d5aa000-555aa000 rw-s 10000000 03:03 132656 /dev/nvidia0 55669000-5576b000 rw-s 80000000 03:03 132656 /dev/nvidia0 5586d000-55b34000 r-xp 00000000 03:05 2578609 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libawt.so 55b34000-55b49000 rw-p 002c6000 03:05 2578609 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libawt.so 55b6e000-55bc1000 r-xp 00000000 03:05 2578608 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libmlib_image.so 55bc1000-55bc2000 rw-p 00052000 03:05 2578608 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libmlib_image.so 55bd3000-55bda000 r-xp 00000000 03:03 83986 /usr/X11R6/lib/libXp.so.6.2 55bda000-55bdb000 rw-p 00006000 03:03 83986 /usr/X11R6/lib/libXp.so.6.2 55bdb000-55c29000 r-xp 00000000 03:03 84010 /usr/X11R6/lib/libXt.so.6.0 55c29000-55c2d000 rw-p 0004d000 03:03 84010 /usr/X11R6/lib/libXt.so.6.0 55c2d000-55c32000 r-xp 00000000 03:03 83738 /usr/X11R6/lib/libXtst.so.6.1 55c32000-55c33000 rw-p 00004000 03:03 83738 /usr/X11R6/lib/libXtst.so.6.1 55c33000-55c3b000 r-xp 00000000 03:03 43847 /usr/X11R6/lib/libSM.so.6.0 55c3b000-55c3c000 rw-p 00007000 03:03 43847 /usr/X11R6/lib/libSM.so.6.0 55c3c000-55c50000 r-xp 00000000 03:03 43843 /usr/X11R6/lib/libICE.so.6.3 55c50000-55c51000 rw-p 00013000 03:03 43843 /usr/X11R6/lib/libICE.so.6.3 55c53000-55d19000 r-xp 00000000 03:05 2578611 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libfontmanager.so 55d19000-55d34000 rw-p 000c5000 03:05 2578611 /mnt/freea5/java/j2sdk1.4.1_01/jre/lib/i386/libfontmanager.so 55d34000-55d6f000 r-xp 00000000 03:03 60786 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so 55d6f000-55d7a000 rw-p 0003a000 03:03 60786 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so 55dfd000-55e18000 r-xp 00000000 03:03 83719 /usr/X11R6/lib/X11/locale/common/ximcp.so.2 55e18000-55e1a000 rw-p 0001b000 03:03 83719 /usr/X11R6/lib/X11/locale/common/ximcp.so.2 56399000-56c99000 rw-s 80000000 03:03 132656 /dev/nvidia0
Local Time = Sat Jan 11 10:07:44 2003 Elapsed Time = 2 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode) # # An error report file has been saved as hs_err_pid24704.log. # Please refer to the file for further information. # ./nehe21: line 2: 24704 Aborted (core dumped) java -cp $LWJGL/bin:. -Djava.library.path=$LWJGL/src/native/.libs Nehe21
|
|
|
|
Matzon
|
 |
«
Reply #15 - Posted
2003-01-11 13:23:18 » |
|
are you using RH?
could you test: org.lwjgl.test.openal.PlayTest <filename in classpath>
ie:
java -cp .:lwjgl.jar:lwjgl_test.jar:../res: org.lwjgl.test.openal.PlayTest ding.wav
or whatever cp you need to setup...
|
|
|
|
Grom
|
 |
«
Reply #16 - Posted
2003-01-11 13:45:25 » |
|
Mandrake 8.2 updated to mostly Mandrake 9.
I tried the test you mentioned ( org.lwjgl.test.openal.PlayTest) and it core dumped. I was running from CVS. I `cvs update -d`, ant clean, cd src/native, make clean, ./configure, make and received this:
cpp -fPIC -DPIC -o .libs/org_lwjgl_input_GamePad.lo org_lwjgl_input_GamePad.cpp:43:37: org_lwjgl_input_GamePad.h: No such file or directory org_lwjgl_input_GamePad.cpp:50: syntax error before `void' org_lwjgl_input_GamePad.cpp:58: parse error before `Java_org_lwjgl_input_GamePad_nCreate' org_lwjgl_input_GamePad.cpp:70: syntax error before `void' org_lwjgl_input_GamePad.cpp:80: syntax error before `void' org_lwjgl_input_GamePad.cpp:90: parse error before `Java_org_lwjgl_input_GamePad_nRead' org_lwjgl_input_GamePad.cpp:101: parse error before `Java_org_lwjgl_input_GamePad_nEnableBuffer' org_lwjgl_input_GamePad.cpp:112: parse error before `Java_org_lwjgl_input_GamePad_nGetNumButtons' make[2]: *** [org_lwjgl_input_GamePad.lo] Error 1
|
|
|
|
elias
|
 |
«
Reply #17 - Posted
2003-01-11 15:08:36 » |
|
seems like your java home points to something else than a jdk 1.4, could you look at the output from ./configure to see to where it resolves JAVA_HOME?
You might come to IRC on irc.freenode.net at #lwjgl where realtime help is available most of the time.
- elias
|
|
|
|
Chman
Junior Devvie  
Nothing more that... Java games are cool !
|
 |
«
Reply #18 - Posted
2003-01-11 15:25:31 » |
|
Thanks very much for all your reports !!! The two demos are now online... you can download it. For the few bug, i'll fixed it very quikly! thx again !
english translation is in progress, but i'm not very good at english... the comments in source-code are in english anyway... but i'm working on an english part for the site !
++ Chman
|
|
|
|
Grom
|
 |
«
Reply #19 - Posted
2003-01-11 16:19:08 » |
|
checking for JAVA_HOME... /usr/java/j2sdk1.4.1_01 Every previous cvs update for LWJGL compiled and worked (except for my first time a long time ago). Only this last checkout fails.
It should be simple to fix the build as org_lwjgl_input_GamePad.h simply does not exist in CVS anymore:
org_lwjgl_input_GamePad.cpp:43:37: org_lwjgl_input_GamePad.h: No such file or directory
When the build is fixed again I'll try again and if that doesn't fix it perhaps I'll break down and work this out via irc.
Thanks.
|
|
|
|
Chman
Junior Devvie  
Nothing more that... Java games are cool !
|
 |
«
Reply #20 - Posted
2003-01-11 16:26:05 » |
|
All of the Nehe demos worked perfectly for me except for the last one (Nehe21): the data/* files had to be renamed to be all lower case F.E. Complete.wav must be renamed to complete.wav.
Fixed !
The game played so fast the only thing I could do was draw a box on the outside of the screen
There are no limited frame rate for this game, so more fast is you cpu, more fast is the game.............
++ Chman
|
|
|
|
zparticle
|
 |
«
Reply #21 - Posted
2003-01-11 17:05:17 » |
|
Grom: Don't know if this is even remotely related but you had crashes with the sound in my NWO: The Fortress program as well. I wonder if your linux is having serious problems with sound in Java all around?
|
|
|
|
Grom
|
 |
«
Reply #22 - Posted
2003-01-11 18:09:11 » |
|
A good suggestion, actually. It's strange, I used to be able to run the JavaSoundDemo and now I can't - I tried JDK 1.4.0, 1.4.0_01, 1.4.1, 1.4.1_01 and they all fail. Yet, I can play UT, play multiple oss and alsa wav files simultaneously (hardware mixing emu10k1). It must be me, and a reboot didn't fix it. Maybe I forced my way out of rpm hell one too many times. <In the voice of Charlie brown> Rats...
|
|
|
|
elias
|
 |
«
Reply #23 - Posted
2003-01-11 20:09:52 » |
|
Duh! I hadn't noticed some input changes by matzon - cvs should compile now, grom.
- elias
|
|
|
|
Matzon
|
 |
«
Reply #24 - Posted
2003-01-11 20:43:23 » |
|
Doeas all of the oal demos do a core dump? - and if so, could you mail me those - so that I might be able to see anything... - just send them to brian@matzon.dk
|
|
|
|
Grom
|
 |
«
Reply #25 - Posted
2003-01-11 21:15:08 » |
|
Elias: thanks - it compiles fine now. One thing to note: I did a cvs update to openal and the tests I tried produced sound with no error.
|
|
|
|
Matzon
|
 |
«
Reply #26 - Posted
2003-01-11 22:37:42 » |
|
uh - so everything works now? - or did the tests work, and Nehe21 still fail ?
|
|
|
|
Grom
|
 |
«
Reply #27 - Posted
2003-01-11 23:10:45 » |
|
No. Sorry - I didn't mean to leave ya hanging...It still doesn't work. I'm working till midnight tonight and am unable to steal some time to create debug builds and create a useful gdb stack trace for you. I will do this Soon...
|
|
|
|
Chman
Junior Devvie  
Nothing more that... Java games are cool !
|
 |
«
Reply #28 - Posted
2003-01-15 17:17:13 » |
|
Hi !
just a little post to say that i've just translated the site in english...
++ Ch*man
|
|
|
|
adamp
Senior Newbie 
-x-x-x-
|
 |
«
Reply #29 - Posted
2003-01-19 11:00:28 » |
|
I just started the WaterRain program and it crashed :-/
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x0 (you can get the whole error message if you need)
After commenting out "gl.wglSwapIntervalEXT(1);" it worked just fine. What exactly does this command do?
Greetings, Adam.
|
|
|
|
|