gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
on:
2007-02-26 13:59:49 » |
|
I have been progamming my own FPS since october using java and JOGL to achieve creating quite good graphics with hardware rendering and other interesting features. The source code has been largely inspired from d3caster, written by Vincent Stahl but has been improved. Nevertheless, I have a few bugs in my current MD3 loader. There is a distance between the bottom and the top of the body of the model. I need some help to find the solution. I ported the MD3 loader written by Digiben into java. The original source code in C++ (and a MD3 model) is there : http://www.phys.uu.nl/~0307467/docs/md3%20animation/Please find enclosed my source code in java. The original version of the game is here : http://www.stahlforce.com/games/aa1/index.htmlMy version of the game is here : http://tuer.cvs.sourceforge.net/tuer/bac_a_sable/You need JRE 1.5 and JOGL beta 5 to test it. I really need some help. I have been looking for a solution to have my MD3 loder worked since about 2 weeks. I can't use true fullscreen mode under both windows and linux, it's very unpleasant. It would be nice if someone could give me some advice. That's only my second "try" of 3D video game programming. Edit.: rather click here (Java 1.6 needed): http://tuer.sourceforge.net/tuer.jnlp
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #1 on:
2007-02-27 04:26:38 » |
|
I show you a screenshot of the MD3 loader.
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #2 on:
2007-02-27 04:36:39 » |
|
This is a screenshot of my game. 
|
Julien Gouesse
|
|
|
Games published by our own members! Go get 'em!
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #3 on:
2007-02-27 04:41:23 » |
|
This is a screenshot of the MD3 loader. 
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #4 on:
2007-02-27 04:54:40 » |
|
This is a screenshot of my game at the beginning of an attack phase. Notice the dynamic lighning and the shadows under some robots and the walls. 
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #5 on:
2007-02-27 04:58:36 » |
|
This screenshot shows some explosions.  I hope to get some help for the MD3 loader or it will be a real problem to develop the game.
|
Julien Gouesse
|
|
|
|
|
nva225
Sr. Member   Posts: 298
|
 |
«
Reply #7 on:
2007-02-27 20:15:36 » |
|
Err, tried to run the game, couldn't get anything to work. I downloaded the 10_02 something zip and extracted it, then tried to run the aa.jar and the masks.jar (I assumed a jar in the parent dir would execute the game?) but they both say invalid or corrupt jar file. A little more instruction on how to run this? I haven't yet downloaded all the "prerequisites" (I realized these existed after reading through a few files) but I would think the jar would at least execute and then crash if it was missing a library, wouldn't it?
Oh and please please please package the required files *in* the package you have up for download. JOGL versions have been known to change significantly between releases and it's much easier for anyone testing it to have the files already there. And this is also a reason why people may not have JOGL installed to their JREs (the version could conflict with another older JOGL program they may happen to run).
A lot of the forum members can be very busy, please make the download/test as easy as possible if you want to get feedback. Webstart would be fantastic if you could set it up.
|
|
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #8 on:
2007-02-28 04:23:25 » |
|
Hi. Thanks for your reply. There is a makefile inside the zip file. To use the game, follow these steps : - unzip the tuer_..._.zip - go into the directory where "aa.jar" is - enter "java -jar aa.jar" If you want to recompile the source, follow these steps : - unzip the tuer_..._.zip - go into the directory where "aa.jar" is - enter "make" You need the JRE 1.5 and JOGL beta 5. As it seems to be complicated for you to use my game, I give you the link to download the JOGL version I use currently : https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=5476&expandFolder=5476&folderID=6750To install JOGL, follow these steps : - download jogl.jar (use the link above) - go into your JRE directory - copy jogl.jar in your directory called "/jre/lib/ext" or something like "/java-1.5.0-sun-1.5.0.07/jre/lib/ext/" - download the jogl-natives.jar which matches with your operating system - decompress the jar file - copy libjogl.so, libjogl_awt.so, libjogl_cg.so and libjogl_drihack.so in the directory called "/jre/lib/i386/" or something like "/java-1.5.0-sun-1.5.0.07/jre/lib/i386/" (WINDOWS users, you obtain .dll files instead of .so files) Use only aa.jar to launch the game. The other jar files stores data used in the game, images and masks. To use the loader, copy each class in a file, compile and enter "java MD3Viewer". Sorry if it was frustrating not to be able to try my game and thank you again for your reply.
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #9 on:
2007-02-28 04:33:08 » |
|
You're right, there is something wrong in the jar file. When I enter "java -jar aa.jar", I get this message : Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
Something happens to my zip file on CVS, I don't know what.
Therefore, if you want to use the game, recompile the source at first!! It is easy. If you already have the good version of JOGL, use my makefile. If you can't use my makefile, enter "java stahlforce/*.java" and "java d3caster". Is that alright now?
|
Julien Gouesse
|
|
|
Games published by our own members! Go get 'em!
|
|
Orangy Tang
JGO Kernel      Posts: 2960 Medals: 37
Monkey for a head
|
 |
«
Reply #10 on:
2007-02-28 04:35:49 » |
|
Hi. Thanks for your reply. There is a makefile inside the zip file. To use the game, follow these steps : - unzip the tuer_..._.zip - go into the directory where "aa.jar" is - enter "java -jar aa.jar" If you want to recompile the source, follow these steps : - unzip the tuer_..._.zip - go into the directory where "aa.jar" is - enter "make" You need the JRE 1.5 and JOGL beta 5. As it seems to be complicated for you to use my game, I give you the link to download the JOGL version I use currently : https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=5476&expandFolder=5476&folderID=6750To install JOGL, follow these steps : - download jogl.jar (use the link above) - go into your JRE directory - copy jogl.jar in your directory called "/jre/lib/ext" or something like "/java-1.5.0-sun-1.5.0.07/jre/lib/ext/" - download the jogl-natives.jar which matches with your operating system - decompress the jar file - copy libjogl.so, libjogl_awt.so, libjogl_cg.so and libjogl_drihack.so in the directory called "/jre/lib/i386/" or something like "/java-1.5.0-sun-1.5.0.07/jre/lib/i386/" (WINDOWS users, you obtain .dll files instead of .so files) Use only aa.jar to launch the game. The other jar files stores data used in the game, images and masks. To use the loader, copy each class in a file, compile and enter "java MD3Viewer". Sorry if it was frustrating not to be able to try my game and thank you again for your reply. Far, far, far too hard. How about a nice easy webstart version? 
|
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #11 on:
2007-02-28 04:47:28 » |
|
Too hard?   ? It is a little bit long but it is not difficult as I explain each step. I thought this is a forum for game developpers. If you have the good version of JOGL, you only have to enter "make" and "java -jar aa.jar". Do you find it complicated? I could use the class JOGLAppletLauncher and webstart but I have no website. Sorry. I know it would have been easier. I will add an installer in the following weeks. If you have already installed an other version of JOGL, it is quite easy to install another one. If you suggest me to use webstart etc..., tell me how to do. Thank you for your reply.
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #12 on:
2007-02-28 04:53:51 » |
|
I've found a tutorial about webstart. I will try to see how to deploy my game with it but I don't promise anything as I have no website.
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #13 on:
2007-02-28 12:00:22 » |
|
I tried to configure Java Web Start. You might play with my game by clicking of the link below : http://poux.ufr-info-p6.jussieu.fr/~2660633/The link will be active only from Monday the 5th of March 2007!!!There could be something wrong because I would have loaded the libraries with "System.loadLibrary(...);". Please try it and tell if if something is wrong. It's the first time that I use Java Web Start so keep cool. I didn't plan to do it. I wish you a happy gaming here! 
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #14 on:
2007-03-01 06:11:18 » |
|
The MD3 loader works fine now!!! I thank Ben Humphrey, Ron Sullivan,Thomas Hourdel and Frederic Kauffmann for their help and their sources. Ben Humphrey's website : www.gametutorials.comFrederic Kauffmann's website for the amber project : http://users.skynet.be/fabrice.kauffmann/theamberproject/The result is good, the top of the body is now correctly linked to the bottom!!  If you need a MD3 loader for JOGL, I will update the packages of the source on sourceforge.net to allow you to download it. If you use LWJGL, download the source of the amber project.
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #15 on:
2007-03-02 12:32:10 » |
|
|
Julien Gouesse
|
|
|
TheAnalogKid
« League of Dukes » JGO Wizard      Posts: 1307 Medals: 2
|
 |
«
Reply #16 on:
2007-03-02 12:56:00 » |
|
Looks good! TUER? like the the verb tuer in french? 
|
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #17 on:
2007-03-02 13:39:35 » |
|
I'm sorry, the quality of the video is very low. I will use xvidcap to improve it. Thank you for your encouragement. Yes, the name of the game is a play of words and means "kill" ("tuer" in french which is my mother tongue). Maybe the link for my game works now : http://poux.ufr-info-p6.jussieu.fr/~2660633/I'm sorry if something is wrong. Bye. 
|
Julien Gouesse
|
|
|
TheAnalogKid
« League of Dukes » JGO Wizard      Posts: 1307 Medals: 2
|
 |
«
Reply #18 on:
2007-03-02 13:49:59 » |
|
I understood the meaning of tuer since I'm a francophone as well.
|
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #19 on:
2007-03-08 03:51:21 » |
|
Can someone tell me if it works fine? http://poux.ufr-info-p6.jussieu.fr/~2660633/If not, please tell me what happens, give me some details of the error messages in the JVM window.
|
Julien Gouesse
|
|
|
jojoh
JGO Ninja    Posts: 554 Medals: 6
games4j.com
|
 |
«
Reply #20 on:
2007-03-08 05:22:32 » |
|
The connection has timed out
The server at poux.ufr-info-p6.jussieu.fr is taking too long to respond.
|
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #21 on:
2007-03-08 07:16:16 » |
|
Link removed
What about the link above??
|
Julien Gouesse
|
|
|
jojoh
JGO Ninja    Posts: 554 Medals: 6
games4j.com
|
 |
«
Reply #22 on:
2007-03-08 09:29:25 » |
|
Well, it was sort of an improvement: java.lang.ClassNotFoundException: com.sun.opengl.util.JOGLAppletLauncher at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: open HTTP connection failed. at sun.applet.AppletClassLoader.getBytes(Unknown Source) at sun.applet.AppletClassLoader.access$100(Unknown Source) at sun.applet.AppletClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) ... 10 more
Funky thing was that the progress bar for the java applet went WAY past 100% done  It also crashed my browser so I couldn't switch tabs any more...
|
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #23 on:
2007-03-08 12:23:03 » |
|
Thank you very much. What happened when you click on "Run TUER"? This should launch Webstart version of the game.
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #24 on:
2007-03-09 09:50:33 » |
|
IT WORKS!!!!!!!!!!!
go here :
Link removed
and click on "Run TUER"
If it don't work, enter "javaws Link removed" in the xterm under linux or "start"->"execute..." under windows.
Please tell me if there is problems with librairies.
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #25 on:
2007-03-09 12:45:50 » |
|
 It doesn't work because of problems of signature. You will have to wait, I'm sorry.
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #26 on:
2007-03-12 11:50:27 » |
|
My game using java webstart is now working! My jogl.jnlp file may cause problems for 64-bit computers and some "old" macintoshs. Link removedI'm waiting for your feedback. It is slow because of raycasting as I said before. I hope I will satisfy your suggestions. As it is an homework, I will respect the objectives which had been fixed with my teacher but I will improve the game by listening to your suggestions. Next objectives : - remove raycasting - use MD3 models and rendering "tools" (lists, vertex arrays, VBO) to increase the speed of the game The address of my website is : Link removedIf Java Webstart doesn't detect my configuration file as a jnlp file, go to command line and enter : javaws Link removedI'm very very happy to allow you to play with my modest and tiny game 
|
Julien Gouesse
|
|
|
gouessej
JGO Kernel      Posts: 3560 Medals: 30
TUER
|
 |
«
Reply #27 on:
2007-03-13 13:57:26 » |
|
Warning! The game may crash under Microsoft Windows XP! If it happens, use JRE 1.6 in order to solve this problem. It comes from a conflict with DirectDraw. That's not my fault. Please give me feedback!!!!! 
|
Julien Gouesse
|
|
|
EgonOlsen
JGO Strike Force    Posts: 821 Medals: 6
|
 |
«
Reply #28 on:
2007-03-13 14:33:39 » |
|
Works for me (from the command line) on XP/Java6. But were is the OpenGL part? These are still the same old raycasted graphics the engine on which you've based your game on was using. I expected it to use hardware acceleration... 
|
|
|
|
SimonH
JGO Strike Force    Posts: 896 Medals: 14
|
 |
«
Reply #29 on:
2007-03-13 16:12:17 » |
|
Works OK (but very slow) on Windows 2K/java6 . A few suggestions though;
1. Increase the mouse sensitivity - (rule of thumb: A largish wrist movement on the mouse should make the player turn 180') 2. Add WSAD as movement keys; arrow keys are difficult to use alongside mouselook. 3. Add an 'Are you sure you want to quit' screen or window - I hit ESC (expecting an options screen) but the game just quit out! 4. How about a crosshair? I found aiming quite tricky... 5. Do all the floors/ceilings have to be at the same height? It would add visual interest if you could put in ramps or steps!
That said, it's looking good! I look forward to playing it when the raycasting's gone so it's a bit faster!
|
|
|
|
|