Mother's Day Card:My first run at high quality graphics :)

Started by JavaMan, May 10, 2009, 08:49:02 PM

Previous topic - Next topic

JavaMan

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



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



EgonOlsen

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... :'(

JavaMan

Quotebut 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 ?

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

EgonOlsen

#3
Quote from: JavaMan on May 10, 2009, 11:09:15 PM
Quotebut 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...

JavaMan

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.

C3R14L.K1L4

#5
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...

JavaMan

QuoteLOL cute! Grin I hope your mom gave you a huge kiss

Hehe, no kiss, but she liked it.

QuoteIt 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