Author Topic: An advanced example  (Read 11225 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
An advanced example
« on: May 15, 2007, 08:54:41 pm »
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!

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Re: An advanced example
« Reply #1 on: May 15, 2007, 09:25:02 pm »
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

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
Re: An advanced example
« Reply #2 on: May 16, 2007, 04:29:36 am »
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!
« Last Edit: May 16, 2007, 04:33:12 am by cyberkilla »
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: An advanced example
« Reply #3 on: May 16, 2007, 09:37:10 am »
hey that's really cute and brilliant ;D
i should have add idle animation to karga too

Offline san14

  • int
  • **
  • Posts: 60
    • View Profile
Re: An advanced example
« Reply #4 on: May 24, 2007, 10:29:07 am »
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
« Last Edit: May 24, 2007, 01:29:26 pm by san14 »
San14

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Re: An advanced example
« Reply #5 on: May 24, 2007, 06:02:02 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: An advanced example
« Reply #6 on: May 24, 2007, 06:07:22 pm »
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.

Offline san14

  • int
  • **
  • Posts: 60
    • View Profile
Re: An advanced example
« Reply #7 on: May 25, 2007, 12:45:48 pm »
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
« Last Edit: May 25, 2007, 12:47:19 pm by san14 »
San14

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: An advanced example
« Reply #8 on: May 25, 2007, 12:48:34 pm »
You have to add the files in the data-dir to the classpath.

Offline san14

  • int
  • **
  • Posts: 60
    • View Profile
Re: An advanced example
« Reply #9 on: May 25, 2007, 01:19:54 pm »
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

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
Re: An advanced example
« Reply #10 on: May 25, 2007, 09:10:26 pm »
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

Offline san14

  • int
  • **
  • Posts: 60
    • View Profile
Re: An advanced example
« Reply #11 on: May 26, 2007, 08:54:09 am »
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