www.jpct.net

jPCT - a 3d engine for Java => Projects => Topic started by: enbe11_3 on November 10, 2009, 04:02:26 am

Title: Ballbox
Post by: enbe11_3 on November 10, 2009, 04:02:26 am

What do you think about my first jPCT`s proyect?

http://ballbox.webcindario.com/

Ballbox is under development so it might have some bugs...
Title: Re: Ballbox
Post by: EgonOlsen on November 10, 2009, 10:08:00 pm
Nice. Too bad that i suck tremendously in this kind of game. However, i think that a little increase in the ball's "power" (10-20%) would help to make it even cooler. I'll add it to the projects page later this week if you don't mind.
BTW: How did the OLPC version work out?
Title: Re: Ballbox
Post by: enbe11_3 on November 11, 2009, 04:58:10 am
Thank you so much for your advice, I will consider it.
Ofcousre you can add it to the projects page!! (I will be grateful  ;D)

I tested Ballbox in a Virtual Machine, but I didn't have the opportunity to test it in a OLPC.
In the VM it works, slow but it works. If I test ballbox in a real OLPC i will tell you.

OLPCBallbox images:

http://ballbox.webcindario.com/olpc/Ballboxolpc.png
http://ballbox.webcindario.com/olpc/Ballboxolpc2.png

Title: Re: Ballbox
Post by: EgonOlsen on November 11, 2009, 08:52:12 am
Disabling the textured background should help on the OLPC, because it will save a huge amount of fill rate, which the lowly cpu can't deliver.
Title: Re: Ballbox
Post by: enbe11_3 on November 12, 2009, 02:55:44 am
Cool, that would be very useful!!!

I had made one last test in the OLPC VM, with the original Ballbox OLPC version, and it gave me good results for me (around 26fps).
Title: Re: Ballbox
Post by: JavaMan on November 12, 2009, 09:24:17 pm
I tried it out, but I can't get to the game. I hit enter, and it says to choose a level, and I hit enter again. Then the game crashes. Here is the output:

Code: [Select]
jimboy@jimboy-laptop:~/Downloads/Ballbox-Linux$ run
No command 'run' found, did you mean:
 Command 'zrun' from package 'moreutils' (universe)
 Command 'runq' from package 'exim4-daemon-heavy' (main)
 Command 'runq' from package 'sendmail-bin' (universe)
 Command 'runq' from package 'exim4-daemon-light' (main)
 Command 'grun' from package 'grun' (universe)
 Command 'qrun' from package 'torque-client' (multiverse)
 Command 'lrun' from package 'lustre-utils' (universe)
 Command 'rn' from package 'trn' (multiverse)
 Command 'rn' from package 'trn4' (multiverse)
 Command 'rup' from package 'rstat-client' (universe)
 Command 'srun' from package 'slurm-llnl' (universe)
run: command not found
jimboy@jimboy-laptop:~/Downloads/Ballbox-Linux$ ./run.sh
1    [main] INFO  odejava  - Odejava version 0.2.4
Java version is: 1.6.0_0
-> support for BufferedImage
Version helper for 1.5+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Current mode:800 x 600 x 24 @60Hz
[ Thu Nov 12 15:20:08 EST 2009 ] - WARNING: Number of samples (2) not supported!
Driver is: unknown OpenGL driver on Mesa Project / Software Rasterizer
GL_ARB_texture_env_combine supported and used!
FBO supported and used!
OpenGL renderer initialized (using 4 texture stages)
128994-139073 -> using splitted buffer access!
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
[ Thu Nov 12 15:20:09 EST 2009 ] - ERROR: File 'from InputStream' not found - replacement texture used instead!
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: File 'from InputStream' not found - replacement texture used instead!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: File 'from InputStream' not found - replacement texture used instead!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: File 'from InputStream' not found - replacement texture used instead!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (600)...resizing to a width of 256 pixels!
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (20)...resizing to a width of 256 pixels!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: A texture with the name 'data/backgroundb.jpg' has been declared twice!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: A texture with the name 'data/backgroundb.jpg' has been declared twice!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: A texture with the name 'data/backgroundb.jpg' has been declared twice!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: A texture with the name 'data/backgroundb.jpg' has been declared twice!
Loading Texture...from InputStream
[ Thu Nov 12 15:20:10 EST 2009 ] - WARNING: Unsupported Texture width (4)...resizing to a width of 256 pixels!
[ Thu Nov 12 15:20:10 EST 2009 ] - ERROR: A texture with the name 'data/backgroundb.jpg' has been declared twice!
Loading file from InputStream
File from InputStream loaded...1420 bytes
Processing new material 01 - Default!
Texture named CRATE01.JPG added to TextureManager!
Processing object from 3DS-file: Box01
Object 'Box01_jPCT8' created using 12 polygons and 8 vertices.
Exception in thread "main" java.lang.IllegalStateException: Line not open
at org.classpath.icedtea.pulseaudio.PulseAudioClip.stop(PulseAudioClip.java:543)
at game.sounds.xcvbnmsdfghjertyukjhgfd.stopSound(xcvbnmsdfghjertyukjhgfd.java:35)
at game.sounds.zxcvbnmsdfghjkwertyu.stopSound(zxcvbnmsdfghjkwertyu.java:47)
at game.frames.jdbnkjdswf.loop(jdbnkjdswf.java:39)
at game.frames.kjhaskjd.loop(kjhaskjd.java:44)
at game.frames.jkhskjhfwe.input(jkhskjhfwe.java:113)
at game.frames.jkhskjhfwe.loop(jkhskjhfwe.java:80)
at Start.Run.main(Run.java:75)
jimboy@jimboy-laptop:~/Downloads/Ballbox-Linux$

I'm using Ubuntu 9.10 with
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-1ubuntu3)

That may be the problem, I'll try to get the Sun VM to work. I actually thought I was using the Sun VM.
JavaMan,

Oh, and another thing. The main menu didn't work to well for me. Pressing the arrow keys on the keyboard didn't always move the selection up/down sequentially.

I know you're just starting on it. Hope this helps!
Title: Re: Ballbox
Post by: enbe11_3 on November 13, 2009, 02:26:36 am
First of all thanks for the feedback!! :)

I think I know how to solve the problem in the main menu, but i am trying to find out why you canīt enter to the choose levelīs next window (Instructions window). Can you enter to the credits window?

Title: Re: Ballbox
Post by: JavaMan on November 13, 2009, 03:17:03 pm
Yes, I can get to the other screens just fine. Actually, I can get to the choose levels. The problem is when the instruction screen comes up, and I hit enter again. That's when the game crashes.

Quote
First of all thanks for the feedback!!
I like testing people's stuff when I have the time.  :)
Title: Re: Ballbox
Post by: enbe11_3 on November 14, 2009, 02:32:25 am
  :-\, Try disabling the sound and the shadows ?
Title: Re: Ballbox
Post by: JavaMan on November 15, 2009, 07:25:12 pm
ok, i'll try that
Title: Re: Ballbox
Post by: EgonOlsen on November 15, 2009, 09:12:22 pm
I tried to run it on my old EEEPC using the default Linux that comes with the system, but i couldn't get it to work. Because the desktop uses a 16bit color depth, it couldn't find a 24bit mode and crashed. You should add a video mode selection.
Title: Re: Ballbox
Post by: JavaMan on November 15, 2009, 09:32:51 pm
Ok, got it to work. The problem was the OpenJDK VM. For some reason, that Java vm creates that sound error. The Sun-vm doesn't do that. Everything works fine.

I really like the feel of the game. It reminds me of a Wii game I played. Also, I don't know if you want this but the average number that is printed out on the console is around 400.
Title: Re: Ballbox
Post by: enbe11_3 on November 16, 2009, 12:52:44 am
Thanks a lot Egon and JavaMan!!!

I am going to fix sound and video mode bugs as soon as i can

About the average number (fps), i am going to print it on game screen

thanks again!
Title: Re: Ballbox
Post by: EgonOlsen on November 16, 2009, 05:57:23 pm
I've added Ballbox to the projects page.
Title: Re: Ballbox
Post by: enbe11_3 on November 17, 2009, 02:35:53 am
Looks great, Thanks!
Title: Re: Ballbox
Post by: enbe11_3 on November 21, 2009, 06:04:12 am
Iīve uploaded a new version of Ballbox with bugs fixed.
This version comes with 4 more levels.

I hope you enjoy it!!!


I will keep working on the OLPC version and the video mode selection.
Title: Re: Ballbox
Post by: EgonOlsen on November 25, 2009, 05:00:08 pm
Nice work. Too bad that i really suck in this kind of game, so i can't really tell what could be improved IMHO...because i would have to improve myself first. Maybe you should make a webstart version and post it on javagaming.org (http://javagaming.org) to get at least some feedback on game play.
Title: Re: Ballbox
Post by: enbe11_3 on November 26, 2009, 04:00:25 am
Great Idea!

At this moment i am working onthe OLPC version, but after finish that i will post Ballbox there.

thanks
Title: Re: Ballbox
Post by: enbe11_3 on January 25, 2010, 04:33:15 pm
Finally i ran Ballbox, OLPC version, on a real OLPC computer and the
performance was about 4 fps to 7 fps..   :-[

MMM.. I think that Java applications are too demanding for OLPCīs hardware..
Title: Re: Ballbox
Post by: EgonOlsen on January 25, 2010, 05:44:40 pm
With or without the background graphics?
Title: Re: Ballbox
Post by: enbe11_3 on January 25, 2010, 06:22:40 pm
Without background graphics.
Title: Re: Ballbox
Post by: EgonOlsen on January 25, 2010, 07:09:13 pm
Well then...another option would be to use undersampling for the graphics, i.e. render in a quarter of the resolution and scale up. But i doubt that this will help very much...
Title: Re: Ballbox
Post by: enbe11_3 on January 26, 2010, 01:26:43 am
mmm... I will try that.