Skip to content

Example of Three.js inside Meteor -- tried to converge on simplest, most stripped down example

Notifications You must be signed in to change notification settings

foxaal/three.js-inside-Meteor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Standard Meteor project called, stupidly, threejs, so:
	> meteor create threejs

1. Added a line to three.js: window.THREE = THREE;
   This yielded threeHACK.js (it ain't the exact one at three.js)
2. Placed threeHACK.js in client/lib under the Meteor project
3. Added Template.hello.rendered in the threejs.js file with the javacript code to make "calls" to three.js

NOTES

a. Meteor seems to load threeHACK.js automagically
b. Seems necessary to use the Template.hello.rendered wrapper around the javascript code that makes use of three.js "library"

About

Example of Three.js inside Meteor -- tried to converge on simplest, most stripped down example

Resources

Stars

Watchers

Forks

Packages

No packages published