gouessej
|
 |
«
Posted
2007-02-26 18: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 : http://tuer.sourceforge.net/play.php
|
|
|
|
gouessej
|
 |
«
Reply #1 - Posted
2007-02-27 09:26:38 » |
|
I show you a screenshot of the MD3 loader.
|
|
|
|
gouessej
|
 |
«
Reply #2 - Posted
2007-02-27 09:36:39 » |
|
This is a screenshot of my game. 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
gouessej
|
 |
«
Reply #3 - Posted
2007-02-27 09:41:23 » |
|
This is a screenshot of the MD3 loader. 
|
|
|
|
gouessej
|
 |
«
Reply #4 - Posted
2007-02-27 09: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. 
|
|
|
|
gouessej
|
 |
«
Reply #5 - Posted
2007-02-27 09: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.
|
|
|
|
|
nva225
|
 |
«
Reply #7 - Posted
2007-02-28 01: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
|
 |
«
Reply #8 - Posted
2007-02-28 09: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. Edit.: I was a real beginner in JOGL in 2007. Of course, NEVER copy any JARs into jre/lib/ext.
|
|
|
|
gouessej
|
 |
«
Reply #9 - Posted
2007-02-28 09: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?
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Orangy Tang
|
 |
«
Reply #10 - Posted
2007-02-28 09: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
|
 |
«
Reply #11 - Posted
2007-02-28 09: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.
|
|
|
|
gouessej
|
 |
«
Reply #12 - Posted
2007-02-28 09: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.
|
|
|
|
gouessej
|
 |
«
Reply #13 - Posted
2007-02-28 17: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/[size=10pt]The link will be active only from Monday the 5th of March 2007!!![/size]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! 
|
|
|
|
gouessej
|
 |
«
Reply #14 - Posted
2007-03-01 11: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.
|
|
|
|
gouessej
|
 |
«
Reply #15 - Posted
2007-03-02 17:32:10 » |
|
|
|
|
|
TheAnalogKid
|
 |
«
Reply #16 - Posted
2007-03-02 17:56:00 » |
|
Looks good! TUER? like the the verb tuer in french? 
|
|
|
|
gouessej
|
 |
«
Reply #17 - Posted
2007-03-02 18: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. 
|
|
|
|
TheAnalogKid
|
 |
«
Reply #18 - Posted
2007-03-02 18:49:59 » |
|
I understood the meaning of tuer since I'm a francophone as well.
|
|
|
|
|
jojoh
|
 |
«
Reply #20 - Posted
2007-03-08 10:22:32 » |
|
The connection has timed out
The server at poux.ufr-info-p6.jussieu.fr is taking too long to respond.
|
|
|
|
gouessej
|
 |
«
Reply #21 - Posted
2007-03-08 12:16:16 » |
|
Link removed
What about the link above??
|
|
|
|
jojoh
|
 |
«
Reply #22 - Posted
2007-03-08 14: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
|
 |
«
Reply #23 - Posted
2007-03-08 17:23:03 » |
|
Thank you very much. What happened when you click on "Run TUER"? This should launch Webstart version of the game.
|
|
|
|
gouessej
|
 |
«
Reply #24 - Posted
2007-03-09 14: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.
|
|
|
|
gouessej
|
 |
«
Reply #25 - Posted
2007-03-09 17:45:50 » |
|
 It doesn't work because of problems of signature. You will have to wait, I'm sorry.
|
|
|
|
gouessej
|
 |
«
Reply #26 - Posted
2007-03-12 15: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 
|
|
|
|
gouessej
|
 |
«
Reply #27 - Posted
2007-03-13 17: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!!!!! 
|
|
|
|
|
SimonH
|
 |
«
Reply #29 - Posted
2007-03-13 20: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!
|
People make games and games make people
|
|
|
|