gem "jax", "~> 2.0"Or, for Standalone Jax, install Ruby and then Jax:
rails generate jax:install
gem install jaxGenerate the app:
jax new demo
gem "jax", "~> 2.0"Or, for Standalone Jax, install Ruby and then Jax:
rails generate jax:install
gem install jaxGenerate the app:
jax new demo
jax generate controller teapotsGenerate the material:
jax generate material phongGenerate the light source:
jax generate light sun directional
@world.addLightSource "sun"Add a teapot:
@world.addObject new Jax.Model
position: [0, 0, -5]
mesh: new Jax.Mesh.Teapot
material: "phong"
jax serverSee your demo in its test environment at localhost:3000/jax! (Remove /jax for non-Rails)
Control-C.
rake assets:precompileDeploy and enjoy!