Main Menu

An advanced example

Started by EgonOlsen, May 15, 2007, 08:54:41 PM

Previous topic - Next topic

EgonOlsen

I've finally managed to finish documentation of my client-/server-based fps-example. It's for you to enjoy, rip apart, make jokes about ...whatever. Please note that the level and the models are not done by me. Here are the files: http://www.jpct.net/download/feud_demo.zip and here's a webstart demo: http://www.jpct.net/demos/feud/feud.jnlp.

Have fun!

Melssj5

Well, it looks good. I never could implement the shooting when I was trying to do the Flier Match, anyway its very good to have this demo to continue developing from it.

The shots have some particle efects on them that look funny. Anyway was nice.

Maybe i will check it better later at home, now I am at the office.
Nada por ahora

cyberkilla

#2
Im downloading it now....:)

EDIT:
Brilliant! This will be useful in a few weeks:)

I am *still* busy with my browser based(php) mmorpg.
It is almost finished. I really can't wait to try the new things out!
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

raft

hey that's really cute and brilliant ;D
i should have add idle animation to karga too

san14

#4
Hi

http://www.jpct.net/demos/feud/feud.jnlp.

I tried this link and is giving me this error message.?


java.lang.RuntimeException: [ Thu May 24 16:46:19 IST 2007 ] - ERROR: java.lang.RuntimeException: [ Thu May 24 16:46:19 IST 2007 ] - ERROR: Can't set videomode - try different settings!
   at com.threed.jpct.Logger.log(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at feud.testgame.BlueThunderClient.initWorld(BlueThunderClient.java:414)
   at feud.testgame.BlueThunderClient.run(BlueThunderClient.java:251)
   at feud.testgame.BlueThunderClient.<init>(BlueThunderClient.java:78)
   at feud.testgame.RunGame.main(RunGame.java:8 )
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


With Regards
San14
San14

Melssj5

that happens becausse the demo tries to run on a video mode (resolution, render type, bits per pixel) that you cant support?

Are you using widescreen?

which video card do you have?
Nada por ahora

EgonOlsen

The demo is hard coded at 800*600. If that fails, it tries 1024*768. If that fails to, the demo fails. This thing is meant to be an example for you to be altered by yourself so that it fits your needs. If the webstart demo doesn't work, download the sources and change it to a videomode that works on your machine.

san14

#7
HI EgonOlsen
     
     I tryed with 800 * 600 vedio on my system But still it gives me same error for web start.  I download the sources and got this error. I am using eclipse.3.2.2
   
    I dont have any extra vedio card. My system is P-915 Mother board with built in card. Is that a problem. Do i need to put extra vedio card


Loading textures...
Exception in thread "main" java.lang.NullPointerException
   at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
   at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
   at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
   at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
   at java.io.ObjectInputStream.<init>(Unknown Source)
   at src.feud.testgame.BlueThunderClient.load(BlueThunderClient.java:660)
   at src.feud.testgame.BlueThunderClient.run(BlueThunderClient.java:250)
   at src.feud.testgame.BlueThunderClient.<init>(BlueThunderClient.java:78)
   at src.feud.testgame.RunGame.main(RunGame.java:8 )



With Regards
San14
San14

EgonOlsen

You have to add the files in the data-dir to the classpath.

san14

Hi EgonOlsen
       
    It worked Thanks, Now it is giving me error for vedio mode. I will change vedio mode and try again.
     

Loading file from InputStream
File from InputStream loaded...23908 bytes
Processing new material Cielo!
Processing object from 3DS-file: Sphere02
Object 'Sphere02_jPCT-1' created using 1024 polygons and 514 vertices.
Java version is: 1.5.0_06
-> support for BufferedImage
Version helper for 1.2+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Can't find desired videomode (800 x 600 x 24) - searching for alternatives
Current mode:800 x 600 x 32 @1Hz
[ Fri May 25 16:35:04 IST 2007 ] - WARNING: ZBuffer depth of 16 not supported - trying something else now...!
[ Fri May 25 16:35:04 IST 2007 ] - WARNING: Does this machine actually support OpenGL? Trying everything at lowest settings now!
[ Fri May 25 16:35:04 IST 2007 ] - ERROR: Can't set videomode - try different settings!
[ Fri May 25 16:35:04 IST 2007 ] - ERROR: java.lang.RuntimeException: [ Fri May 25 16:35:04 IST 2007 ] - ERROR: Can't set videomode - try different settings!
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space



With Regards
San14
San14

cyberkilla

It's real nice:)

I have had another try in linux, and its fine here too.

Well, unless you run it with Beryl, in windowed mode, where windows are just textured 3d surfaces. It goes ultra black then - but thats not your fault:P
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

san14

Hi
     Thank's for all support, Its working fine now I had problem with my graphic driver.
Really great good graphics, light and nice controls.


With Regards
San14
San14