Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2 3 ... 39
  ignore  |  Print  
  TUER: Truly Unusual Experience of Revolution, FPS using JOGL  (Read 210347 times)
0 Members and 1 Guest are viewing this topic.
Offline 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.html
My 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


Offline gouessej
« Reply #1 - Posted 2007-02-27 09:26:38 »

I show you a screenshot of the MD3 loader.

Offline 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!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #3 - Posted 2007-02-27 09:41:23 »

This is a screenshot of the MD3 loader.


Offline 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.


Offline 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.

Offline gouessej
« Reply #6 - Posted 2007-02-27 14:33:59 »

There is an excellent MD3 loader and Quake 3 maps viewer written in gl4java.

http://www11.brinkster.com/chapter23/divergence/divergence.html

If you're interested in this, I will probably adapt the code in order to use JOGL. Here we go!

Offline nva225

Junior Duke





« 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.
Offline 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=6750

To 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.

Offline 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!
Legends of Yore - The Casual Retro Roguelike
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« 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=6750

To 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? Grin

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline gouessej
« Reply #11 - Posted 2007-02-28 09:47:28 »

Too hard?HuhHuh?

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.

Offline 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.

Offline 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!   Wink

Offline 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.com
Frederic 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.

Offline gouessej
« Reply #15 - Posted 2007-03-02 17:32:10 »

This is a short video of my game :

http://video.google.com/googleplayer.swf?docId=7868088229959752664&hl=fr

Offline TheAnalogKid

JGO Coder


Projects: 2



« Reply #16 - Posted 2007-03-02 17:56:00 »

Looks good!

TUER? like the the verb tuer in french?  Smiley

Offline 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.  Wink

Offline TheAnalogKid

JGO Coder


Projects: 2



« Reply #18 - Posted 2007-03-02 18:49:59 »

I understood the meaning of tuer since I'm a francophone as well.

Offline gouessej
« Reply #19 - Posted 2007-03-08 08: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.

Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« 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.

Offline gouessej
« Reply #21 - Posted 2007-03-08 12:16:16 »

Link removed

What about the link above??

Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« 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  Shocked
It also crashed my browser so I couldn't switch tabs any more...


Offline 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.

Offline 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.

Offline gouessej
« Reply #25 - Posted 2007-03-09 17:45:50 »

 Angry It doesn't work because of problems of signature. You will have to wait, I'm sorry.

Offline 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 removed

I'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 removed

If Java Webstart doesn't detect my configuration file as a jnlp file, go to command line and enter :
javaws Link removed

I'm very very happy to allow you to play with my modest and tiny game Grin Cheesy

Offline 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!!!!!  Huh

Offline EgonOlsen
« Reply #28 - Posted 2007-03-13 18: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... Huh Huh

Offline 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
Pages: [1] 2 3 ... 39
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (45 views)
2014-10-17 03:59:02

Norakomi (36 views)
2014-10-16 15:22:06

Norakomi (27 views)
2014-10-16 15:20:20

lcass (31 views)
2014-10-15 16:18:58

TehJavaDev (61 views)
2014-10-14 00:39:48

TehJavaDev (61 views)
2014-10-14 00:35:47

TehJavaDev (51 views)
2014-10-14 00:32:37

BurntPizza (69 views)
2014-10-11 23:24:42

BurntPizza (39 views)
2014-10-11 23:10:45

BurntPizza (81 views)
2014-10-11 22:30:10
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!