loualrid / scenejs_on_rails Goto Github PK
View Code? Open in Web Editor NEWSceneJS but on Rails! Easier loading for your assets into the scenejs pipeline
License: MIT License
SceneJS but on Rails! Easier loading for your assets into the scenejs pipeline
License: MIT License
I'm trying to setup a new rails app with scenejs following the instructions in the readme.
I'm, using Rails 4.0.1,
my application.js includes:
//= require scenejs
//= require scenejs_lib/stats.min
//= require scenejs_extras/gui
and my routes.rb includes:
resources :scenejs, only: [:get_scenejs_plugin]
and I pasted the example earth scene into a script tag on a simple page.
On loading the page a black canvas is injected, it says "Loading plugin 1..." but the console reads "GET http://0.0.0.0:3000/scenejs/get_scenejs_data.js?file=/node/cameras/orbit.js 404 (Not Found)" and rails reports "ActionController::RoutingError (No route matches [GET] "/scenejs/get_scenejs_data.js"):"
So it seems that after following the instructions the /scenejs/get_scenejs_data.js route doesn't appear to work.
I've never used scene.js before, so I'm as the naively following instructions stage.
Edit:
Adding the following code to the start of the script tag makes the demo load, though obviously isn't a solution:
SceneJS.setConfigs({
pluginPath: "http://www.corsproxy.com/scenejs.org/api/latest/plugins"
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.