Threejs is an awesome lightweight JavaScript 3D library that makes WebGL - 3D in the browser - very easy(documentation).
This gem makes it easy to use Threejs (REVISION 70) with Rails 4+ assets pipeline.
Add this line to your application's Gemfile:
gem 'threejs-rails', git: 'git://github.com/marvindanig/threejs-rails.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install threejs-rails
Add the following to your app/assets/javascripts/application.js
:
//= require three
That's it. You're good to go with threejs on your rails app!
TODO: Semantic versioning
- Fork it ( https://github.com/marvindanig/threejs-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Contact me if I don't respond within 24 hours.