Tuesday, July 17, 2007

A Mention on Freegamer

I've managed to garner more than my fair share of paragraphs on the excellent Freegamer blog! Thanks Charles. Knowing people are taking an interest in my games, and maybe even gleaning a small amount of fame, is what keeps me programming.


Here's another screenshot from Last Remaining:-



I like the shadows in this one.

11 comments:

Charlie said...

Keep up the good work. :-)

Anonymous said...

Well, no luck on linux:

java -Djava.library.path=./jme/lib -cp ./bin:./jme/lib/lwjgl.jar:./jme/lib/jogg-0.0.5.jar:./jme/lib/jorbis-0.0.12.jar:./jme/jme.jar:./jme/jme-awt.jar:./jme/jme-effects.jar:./jme/jme-model.jar:./jme/jme-sound.jar:./jme/jme-terrain.jar:./jme/jmetest.jar:./jme/jmetest-data.jar:./lib/jl1.0.jar:./lib/mp3spi1.9.4.jar:./lib/tritonus_share.jar towerdefence.TowerDefenceMain

java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.

Paul said...

How do you get those nice shadows in JME? They look cool! ( I am using JME for my project jcrpg, but didnt mess with shadows yet too much.)

Paul said...

And yeah, the models you are using, are cool too! Did you model them? In what software?

Charlie said...

Free Gamer... "bringing developers together" :-)

Steve said...

Paul: The models have all come from http://artist-3d.com/. As for the lighting, here's the full code - there's not much to it:

private void buildLighting() {
SpotLight light = new SpotLight();
light.setLocation(new Vector3f(0, .5f, 0));
light.setDirection(new Vector3f(1f, 0, 1f));
light.setAngle(45f);
light.setDiffuse(new ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f));
light.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 0.5f));
light.setShadowCaster(true);
light.setEnabled(true);

/** Attach the light to a lightState and the lightState to rootNode. */
LightState lightState = display.getRenderer().createLightState();
lightState.setEnabled(true);
lightState.setGlobalAmbient(new ColorRGBA(.4f, .4f, .4f, 1f));
lightState.attach(light);

scene.setRenderState(lightState);

}

Steve said...

anonymous: I just tried the download myself on Linux, and I get a different error, something about an incorrect class version. Sorry about that, but I'm afraid I have no idea what your error means - it looks like an error with your Java installation rather than the software, but like I said, I can't even get it to run myself (except in the IDE)! I'll look into it, anyway.

Paul said...

Steve: thanks for the code, and the link much!

anonymous: are you using java 1.5+?

Paul said...

Charlie, yeah, web 2.0 brings jme devels together too :D

Steve said...

anon: I've just uploaded a new version compiled for Java 1.5, which works for me. Can you give that a go and let me know how you get on? :)

Anonymous said...

'xlib.lock' failed:
uh, it was/is broken x11 (xcb) library :-(

https://bugs.freedesktop.org/show_bug.cgi?id=9336