/three.js-express-demo

demo - using express framework, import .OBJ file for WebGL case.

Primary LanguageJavaScript

three.js-express-demo

Using express framework, import .obj file to JavaScript Object for WebGL case.

How to use

start express server

  • cd src
  • npm install
  • node app.js

front_end

  • cd front
  • open index.html in your browser, see CONSOLE.

References

Express guider

http://www.expressjs.com.cn/starter/generator.html http://www.expressjs.com.cn/starter/static-files.html

Fix cors problem

http://blog.csdn.net/chengscau/article/details/41050763

Using three.js import model data from file(file OBJLoader.js is not originally included in THREE.js)

https://threejs.org/docs/#examples/loaders/OBJLoader