Threejs is an awesome 3D javascript
library that makes it easy to play with WebGL, i.e. 3D objects, in the browser. Refer documentation.
This gem will add threejs
r89
to your rails app via the asset-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
You're good to go with threejs on your rails app!
- 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.