www.jpct.net

jPCT - a 3d engine for Java => Projects => Topic started by: JavaMan on May 10, 2009, 08:49:02 pm

Title: Mother's Day Card:My first run at high quality graphics :)
Post by: JavaMan on May 10, 2009, 08:49:02 pm
Well, after piddling around for I think two years, I finally have something in the area of simulation to post on the project forums.

I put this little "thing" together this morning for my mom.
Here's a screen shot. The island mass and house calmly rotate around the y axis.

Her favorite spot in the world would be on a beach, so I thought why not use my favorite graphics engine to put her there? All in crappy textures. ;D

(http://img253.imageshack.us/img253/9004/image2i.png) (http://img253.imageshack.us/my.php?image=image2i.png)

If you want to try it out. Here it is. The main class is Main and I ran it with -Xmx300m
The jar file does not have the main class specified in the manifest so you have to run it in the command line with say

java -cp jpct.jar;lwjgl.jar;MD.jar -Xmx300m Main

assuming jpct,lwjgl,MD and the lwjgl dll are all in the local directory.

http://files.filefront.com/MDjar/;13738529;/fileinfo.html


Title: Re: Mother's Day Card:My first run at high quality graphics
Post by: EgonOlsen on May 10, 2009, 10:27:33 pm
It's a bit awkward to get it to run...or in other words: I can't! I wrote a batch file to start it, with the correct jars included and such, but it failed because the Main.class in the jar isn't in the mothersday-package where it is supposed to be. I've corrected this too and now it starts, but my TFT doesn't offer the requested resolution of 1600*1200, so it fails again... :'(
Title: Re: Mother's Day Card:My first run at high quality graphics
Post by: JavaMan on May 10, 2009, 11:09:15 pm
Quote
but it failed because the Main.class

Hmmm. That's strange. Did you run it like something java -cp jpct.jar;lwjgl.jar;MD.jar -Xmx300m Main2 ?

Quote
resolution of 1600*1200, so it fails again...
Ok, oops. I forgot some people may not be able to do that. I will upload one that tries some other resolutions.
Title: Re: Mother's Day Card:My first run at high quality graphics
Post by: EgonOlsen on May 10, 2009, 11:16:24 pm
Quote
but it failed because the Main.class

Hmmm. That's strange. Did you run it like something java -cp jpct.jar;lwjgl.jar;MD.jar -Xmx300m Main2 ?
I've started Main. Should i have used Main2 instead?

Edit: I should have read your post better. Obviously, Main2 is the one. Anyway, i'm still stuck at 1280*1024...
Title: Re: Mother's Day Card:My first run at high quality graphics :)
Post by: JavaMan on May 11, 2009, 12:03:38 am
Ok, I uploaded a new version. This one allows you to choose a resolution from a list.

http://files.filefront.com/MDjar/;13738529;/fileinfo.html

Oh, and by the way. I renamed Main2 to Main, so run Main.
Title: Re: Mother's Day Card:My first run at high quality graphics :)
Post by: C3R14L.K1L4 on May 11, 2009, 09:44:48 pm
LOL cute! ;D I hope your mom gave you a huge kiss :D

I'll download and see it the soonest possible.

Edit:
It doesn't run. The jar's manifest doesn't specify the booting class...
Title: Re: Mother's Day Card:My first run at high quality graphics :)
Post by: JavaMan on May 12, 2009, 02:21:17 am
Quote
LOL cute! Grin I hope your mom gave you a huge kiss

Hehe, no kiss, but she liked it.

Quote
It doesn't run. The jar's manifest doesn't specify the booting class...
No, it can't be run by double-clicking it in Windows explorer. It has to run from the command line. For instance say MD.jar jpct.jar lwjgl.jar and the lwjgl dll are all in the same directory then I ran it with

java -cp jpct.jar;lwjgl.jar;MD.jar -Xmx300m Main