Sun Sep 16 18:09:09 CDT 2012
I'm trying to develop a 3D viewer in webGL to be used in the ipython
Right now I have been able to use standard webGL from the notebook, and now
I'm triying to use the three.js library (http://mrdoob.github.com/three.js/),
but I haven't been able to make it visible for my scripts.
I did the following:
Copy the three.min.js file in the .config/ipython/n/profile_default/static/
When I open the browser in http://127.0.0.1:8888/static/three.min.js I can
see the file.
But when I try to use it in a script:
var container, stats;
var camera, scene, renderer;
I get an error message
ReferenceError: THREE is not defined
But THREE is defined in the three.min.js file.
I have tried different ways to import the js file without success.
Can some one point me in the wright direction?
Ricardo Amézquita Orozco
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User