Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JRuby + jMonkeyEngine 3D fun
Ruby Java
branch: update

This branch is 14 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
assets
bin
lib
package/classes/java
spec
src/org/rubyforge/rawr
vendor
.document
.gitignore
.rspec
.rvmrc
Gemfile
LICENSE.txt
README.rdoc
Rakefile
build_configuration.rb
libbulletjme.jnilib
liblwjgl.jnilib
openal.dylib

README.rdoc

waves

This is just some JRuby(jruby.org/) and jMonkeyEngine(jmonkeyengine.org/) fun. Currently these are all samples from the jMonkeyEngine Hello tutorials re-written in JRuby. There are a few small modifications.

Installation

(rvm not required, but it's awesome)

rvm install jruby-head
git clone git://github.com/jwoertink/Waves.git
cd Waves
gem install bundler
bundle

You should be good at this point.

Running Waves

The main application can be run by

jruby bin/waves

You can view other samples by passing the sample number as an argument

jruby bin/waves 8

Normal camera operations use W A S D to move. To exit just hit esc.

Running Maze Craze

jruby lib/maze_craze

Requirements

OSX (Because I haven't tried this on anything else)
JRuby 1.6+
Bundler gem

jMonkeyEngine

jmonkeyengine.org/wiki/doku.php/jme3:beginner:hello_simpleapplication

Other Notes

The Nifty-gui must be implemented in Java (for now) to work. This requires taking the lib/samples/nifty/StartScreenController.java and compiling it into the package/classes/java/StartScreenController.class file. If this file is missing, then to compile, run

javac -classpath vendor/jme3_2012-10-19.jar  lib/samples/nifty/StartScreenController.java
mv lib/samples/nifty/StartScreenController.class package/classes/java

Current (known) Issues

  • MazeCraze runs smooth for the first 15 seconds, then gets really “jumpy”

  • Not tested in any other OS

  • MazeCraze maze is limited to size 10. Floor isn't dynamic enough to change sizes of maze

  • Nifty/JRuby example (sample 13a) throws nasty exception

  • Rag-doll sample loads, but isn't useable

  • Sample 8 renders green in JRuby, but normal in Java

Contributing to waves

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet

  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it

  • Fork the project

  • Start a feature/bugfix branch

  • Commit and push until you are happy with your contribution

  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright © 2012 Jeremy Woertink. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.