Skip to content
Permalink
Browse files

Initial commit

  • Loading branch information
MattyRad committed Feb 8, 2020
0 parents commit e64294f79a703bdd23b58d7490d385dfffc2638c
Showing with 121,438 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +18 −0 README.md
  3. +14 −0 index.js
  4. +357 −0 package-lock.json
  5. +18 −0 package.json
  6. +1,042 −0 public/assets/OrbitControls.js
  7. 0 public/examples/.gitkeep
  8. +551 −0 public/examples/3d-obj-loader/assets/MTLLoader.js
  9. +670 −0 public/examples/3d-obj-loader/assets/OBJLoader.js
  10. BIN public/examples/3d-obj-loader/assets/R2D2_Diffuse.jpg
  11. BIN public/examples/3d-obj-loader/assets/R2D2_Illumination.jpg
  12. BIN public/examples/3d-obj-loader/assets/R2D2_Normal.jpg
  13. BIN public/examples/3d-obj-loader/assets/R2D2_Reflection.jpg
  14. BIN public/examples/3d-obj-loader/assets/R2D2_Specular.jpg
  15. +13 −0 public/examples/3d-obj-loader/assets/r2-d2.mtl
  16. +118,143 −0 public/examples/3d-obj-loader/assets/r2-d2.obj
  17. +16 −0 public/examples/3d-obj-loader/index.html
  18. +53 −0 public/examples/3d-obj-loader/scripts.js
  19. BIN public/examples/background-image/assets/background.jpg
  20. BIN public/examples/background-image/assets/earth.jpg
  21. BIN public/examples/background-image/assets/space-background.jpg
  22. +14 −0 public/examples/background-image/index.html
  23. +75 −0 public/examples/background-image/scripts.js
  24. +282 −0 public/examples/draggable-objects-dragcontrols/assets/DragControls.js
  25. +14 −0 public/examples/draggable-objects-dragcontrols/index.html
  26. +61 −0 public/examples/draggable-objects-dragcontrols/scripts.js
  27. BIN public/examples/video-texture-360/assets/video.mp4
  28. +14 −0 public/examples/video-texture-360/index.html
  29. +44 −0 public/examples/video-texture-360/scripts.js
  30. +13 −0 public/index.html
  31. +24 −0 public/scripts.js
@@ -0,0 +1,2 @@
node_modules
.DS_Store
@@ -0,0 +1,18 @@
# Three.js boilerplate
This is a simple three.js boilerplate for new projects, feel free to contribute!

### Setup
Run the setup script to make the repository your own!

```bash
$ ./setup
```

Install dependencies and start your engines! This ships with a simple express.js server so we can run three.js properly without cross-origin issues.

```bash
$ npm install
$ npm run start
```

Open http://localhost:8080 to view your project.
@@ -0,0 +1,14 @@
var express = require('express'),
path = require('path'),
app = express();

app.set('port', (process.env.PORT || 8080));

app.use(express.static('public'));

app.listen(app.get('port'), function(err) {
if (err) {
console.log(err);
} else {
console.log('Running on port: ' + app.get('port')); }
});

Some generated files are not rendered by default. Learn more.

0 comments on commit e64294f

Please sign in to comment.
You can’t perform that action at this time.