From 420c17d55c8da0d7b986fb534376ac72826ff6d4 Mon Sep 17 00:00:00 2001 From: zengjf Date: Tue, 22 Nov 2016 06:25:00 +0800 Subject: [PATCH 1/5] add autorun.sh that work as a web server. --- autorun.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 autorun.sh diff --git a/autorun.sh b/autorun.sh new file mode 100755 index 0000000..749e85a --- /dev/null +++ b/autorun.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +python -m SimpleHTTPServer From 97a352626661eadd4a9f3c18bded7d1b363e7e46 Mon Sep 17 00:00:00 2001 From: zengjf Date: Tue, 22 Nov 2016 07:07:55 +0800 Subject: [PATCH 2/5] add the index.html to repository. --- index.html | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ index.md | 54 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 index.html create mode 100644 index.md diff --git a/index.html b/index.html new file mode 100644 index 0000000..997945b --- /dev/null +++ b/index.html @@ -0,0 +1,67 @@ + + + + + +

essential-threejs

+

chapter-01:
+ 01.01-basic-scene.html
+ 01.02-simple-mesh.html
+ 01.03-vertices.html
+ 01.04-faces.html
+ 01.05-controls.html
+ 01.06-statistics.html +

+ +

chapter-02:
+ 02.01-globe-and-camera.html
+ 02.02-basic-textures.html
+ 02.03-add-lighting.html
+ 02.04-starry-background.html
+ 02.05-advanced-textures.html
+ 02.06-canvas-overlay.html
+ 02.07-add-an-object-overlay.html
+ 02.07-add-an-object-overlay-orig.html +

+ +

chapter-03:
+ 03.01-simple-generated-maze.html
+ 03.02-animate-cube.html
+ 03.03-collision-detection.html
+ 03.04-ball-and-maze.html
+ 03.05-keyboard-controls.html
+ 03.0A-maze.html +

+ +

chapter-04:
+ 04.01-output-sound-volums.html
+ 04.02-particle-line-output.html
+ 04.03-bar-histogram.html
+ 04.04-particle-line-landscape.html
+ 04.04-bass-circle-system.html +

+ +

chapter-05:
+ 05.01-3D-plane-from-scratch.html
+ 05.02-3D-plane-from-scratch-perlin.html
+ 05.03-3D-plane-with-texture.html
+ 05.04-Simple-3D-Buildings.html
+ 05.05-generated-tree.html +

+ +

chapter-06:
+ 06.01-CSS3DSkeleton.html
+ 06.02-google-maps-cube.html
+ 06.03-Animations.html
+ 06.04-CSS3DSprites.html
+ gm-embed.html +

+ +

chapter-07:
+ 07.01-load-json-model.html
+ 07.02-load-json-model-textures.html
+ 07.03-load-json-model-animations-bones.html
+ 07.04-load-json-model-animations-morph.html +

+ + diff --git a/index.md b/index.md new file mode 100644 index 0000000..9292c44 --- /dev/null +++ b/index.md @@ -0,0 +1,54 @@ +[Convert markdown to HTML](https://www.browserling.com/tools/markdown-to-html) + +chapter-01: +[01.01-basic-scene.html](chapter-01/01.01-basic-scene.html ) +[01.02-simple-mesh.html](chapter-01/01.02-simple-mesh.html ) +[01.03-vertices.html ](chapter-01/01.03-vertices.html ) +[01.04-faces.html ](chapter-01/01.04-faces.html ) +[01.05-controls.html ](chapter-01/01.05-controls.html ) +[01.06-statistics.html ](chapter-01/01.06-statistics.html ) + +chapter-02: +[02.01-globe-and-camera.html ](chapter-02/02.01-globe-and-camera.html ) +[02.02-basic-textures.html ](chapter-02/02.02-basic-textures.html ) +[02.03-add-lighting.html ](chapter-02/02.03-add-lighting.html ) +[02.04-starry-background.html ](chapter-02/02.04-starry-background.html ) +[02.05-advanced-textures.html ](chapter-02/02.05-advanced-textures.html ) +[02.06-canvas-overlay.html ](chapter-02/02.06-canvas-overlay.html ) +[02.07-add-an-object-overlay.html ](chapter-02/02.07-add-an-object-overlay.html ) +[02.07-add-an-object-overlay-orig.html](chapter-02/02.07-add-an-object-overlay-orig.html) + +chapter-03: +[03.01-simple-generated-maze.html](chapter-03/03.01-simple-generated-maze.html ) +[03.02-animate-cube.html ](chapter-03/03.02-animate-cube.html ) +[03.03-collision-detection.html ](chapter-03/03.03-collision-detection.html ) +[03.04-ball-and-maze.html ](chapter-03/03.04-ball-and-maze.html ) +[03.05-keyboard-controls.html ](chapter-03/03.05-keyboard-controls.html ) +[03.0A-maze.html ](chapter-03/03.0A-maze.html ) + +chapter-04: +[04.01-output-sound-volums.html ](chapter-04/04.01-output-sound-volums.html ) +[04.02-particle-line-output.html ](chapter-04/04.02-particle-line-output.html ) +[04.03-bar-histogram.html ](chapter-04/04.03-bar-histogram.html ) +[04.04-particle-line-landscape.html](chapter-04/04.04-particle-line-landscape.html) +[04.04-bass-circle-system.html ](chapter-04/04.04-bass-circle-system.html ) + +chapter-05: +[05.01-3D-plane-from-scratch.html ](chapter-05/05.01-3D-plane-from-scratch.html ) +[05.02-3D-plane-from-scratch-perlin.html](chapter-05/05.02-3D-plane-from-scratch-perlin.html ) +[05.03-3D-plane-with-texture.html ](chapter-05/05.03-3D-plane-with-texture.html ) +[05.04-Simple-3D-Buildings.html ](chapter-05/05.04-Simple-3D-Buildings.html ) +[05.05-generated-tree.html ](chapter-05/05.05-generated-tree.html ) + +chapter-06: +[06.01-CSS3DSkeleton.html ](chapter-06/06.01-CSS3DSkeleton.html ) +[06.02-google-maps-cube.html](chapter-06/06.02-google-maps-cube.html ) +[06.03-Animations.html ](chapter-06/06.03-Animations.html ) +[06.04-CSS3DSprites.html ](chapter-06/06.04-CSS3DSprites.html ) +[gm-embed.html ](chapter-06/gm-embed.html ) + +chapter-07: +[07.01-load-json-model.html ](chapter-07/07.01-load-json-model.html ) +[07.02-load-json-model-textures.html ](chapter-07/07.02-load-json-model-textures.html ) +[07.03-load-json-model-animations-bones.html](chapter-07/07.03-load-json-model-animations-bones.html ) +[07.04-load-json-model-animations-morph.html](chapter-07/07.04-load-json-model-animations-morph.html) From 3251ce84be71f3f6184d6cff4d3f3fff05f3b241 Mon Sep 17 00:00:00 2001 From: zengjf Date: Tue, 22 Nov 2016 07:19:41 +0800 Subject: [PATCH 3/5] rm autorun.sh --- autorun.sh | 3 -- index.html | 117 +++++++++++++++++++++++++++-------------------------- index.md | 54 ------------------------- 3 files changed, 59 insertions(+), 115 deletions(-) delete mode 100755 autorun.sh delete mode 100644 index.md diff --git a/autorun.sh b/autorun.sh deleted file mode 100755 index 749e85a..0000000 --- a/autorun.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -python -m SimpleHTTPServer diff --git a/index.html b/index.html index 997945b..7e1b695 100644 --- a/index.html +++ b/index.html @@ -1,67 +1,68 @@ - - - -

essential-threejs

-

chapter-01:
- 01.01-basic-scene.html
- 01.02-simple-mesh.html
- 01.03-vertices.html
- 01.04-faces.html
- 01.05-controls.html
- 01.06-statistics.html -

+ + + +

essential-threejs

-

chapter-02:
- 02.01-globe-and-camera.html
- 02.02-basic-textures.html
- 02.03-add-lighting.html
- 02.04-starry-background.html
- 02.05-advanced-textures.html
- 02.06-canvas-overlay.html
- 02.07-add-an-object-overlay.html
- 02.07-add-an-object-overlay-orig.html -

+

chapter-01:
+ 01.01-basic-scene.html
+ 01.02-simple-mesh.html
+ 01.03-vertices.html
+ 01.04-faces.html
+ 01.05-controls.html
+ 01.06-statistics.html +

-

chapter-03:
- 03.01-simple-generated-maze.html
- 03.02-animate-cube.html
- 03.03-collision-detection.html
- 03.04-ball-and-maze.html
- 03.05-keyboard-controls.html
- 03.0A-maze.html -

+

chapter-02:
+ 02.01-globe-and-camera.html
+ 02.02-basic-textures.html
+ 02.03-add-lighting.html
+ 02.04-starry-background.html
+ 02.05-advanced-textures.html
+ 02.06-canvas-overlay.html
+ 02.07-add-an-object-overlay.html
+ 02.07-add-an-object-overlay-orig.html +

-

chapter-04:
- 04.01-output-sound-volums.html
- 04.02-particle-line-output.html
- 04.03-bar-histogram.html
- 04.04-particle-line-landscape.html
- 04.04-bass-circle-system.html -

+

chapter-03:
+ 03.01-simple-generated-maze.html
+ 03.02-animate-cube.html
+ 03.03-collision-detection.html
+ 03.04-ball-and-maze.html
+ 03.05-keyboard-controls.html
+ 03.0A-maze.html +

-

chapter-05:
- 05.01-3D-plane-from-scratch.html
- 05.02-3D-plane-from-scratch-perlin.html
- 05.03-3D-plane-with-texture.html
- 05.04-Simple-3D-Buildings.html
- 05.05-generated-tree.html -

+

chapter-04:
+ 04.01-output-sound-volums.html
+ 04.02-particle-line-output.html
+ 04.03-bar-histogram.html
+ 04.04-particle-line-landscape.html
+ 04.04-bass-circle-system.html +

-

chapter-06:
- 06.01-CSS3DSkeleton.html
- 06.02-google-maps-cube.html
- 06.03-Animations.html
- 06.04-CSS3DSprites.html
- gm-embed.html -

+

chapter-05:
+ 05.01-3D-plane-from-scratch.html
+ 05.02-3D-plane-from-scratch-perlin.html
+ 05.03-3D-plane-with-texture.html
+ 05.04-Simple-3D-Buildings.html
+ 05.05-generated-tree.html +

-

chapter-07:
- 07.01-load-json-model.html
- 07.02-load-json-model-textures.html
- 07.03-load-json-model-animations-bones.html
- 07.04-load-json-model-animations-morph.html -

- +

chapter-06:
+ 06.01-CSS3DSkeleton.html
+ 06.02-google-maps-cube.html
+ 06.03-Animations.html
+ 06.04-CSS3DSprites.html
+ gm-embed.html +

+ +

chapter-07:
+ 07.01-load-json-model.html
+ 07.02-load-json-model-textures.html
+ 07.03-load-json-model-animations-bones.html
+ 07.04-load-json-model-animations-morph.html +

+ diff --git a/index.md b/index.md deleted file mode 100644 index 9292c44..0000000 --- a/index.md +++ /dev/null @@ -1,54 +0,0 @@ -[Convert markdown to HTML](https://www.browserling.com/tools/markdown-to-html) - -chapter-01: -[01.01-basic-scene.html](chapter-01/01.01-basic-scene.html ) -[01.02-simple-mesh.html](chapter-01/01.02-simple-mesh.html ) -[01.03-vertices.html ](chapter-01/01.03-vertices.html ) -[01.04-faces.html ](chapter-01/01.04-faces.html ) -[01.05-controls.html ](chapter-01/01.05-controls.html ) -[01.06-statistics.html ](chapter-01/01.06-statistics.html ) - -chapter-02: -[02.01-globe-and-camera.html ](chapter-02/02.01-globe-and-camera.html ) -[02.02-basic-textures.html ](chapter-02/02.02-basic-textures.html ) -[02.03-add-lighting.html ](chapter-02/02.03-add-lighting.html ) -[02.04-starry-background.html ](chapter-02/02.04-starry-background.html ) -[02.05-advanced-textures.html ](chapter-02/02.05-advanced-textures.html ) -[02.06-canvas-overlay.html ](chapter-02/02.06-canvas-overlay.html ) -[02.07-add-an-object-overlay.html ](chapter-02/02.07-add-an-object-overlay.html ) -[02.07-add-an-object-overlay-orig.html](chapter-02/02.07-add-an-object-overlay-orig.html) - -chapter-03: -[03.01-simple-generated-maze.html](chapter-03/03.01-simple-generated-maze.html ) -[03.02-animate-cube.html ](chapter-03/03.02-animate-cube.html ) -[03.03-collision-detection.html ](chapter-03/03.03-collision-detection.html ) -[03.04-ball-and-maze.html ](chapter-03/03.04-ball-and-maze.html ) -[03.05-keyboard-controls.html ](chapter-03/03.05-keyboard-controls.html ) -[03.0A-maze.html ](chapter-03/03.0A-maze.html ) - -chapter-04: -[04.01-output-sound-volums.html ](chapter-04/04.01-output-sound-volums.html ) -[04.02-particle-line-output.html ](chapter-04/04.02-particle-line-output.html ) -[04.03-bar-histogram.html ](chapter-04/04.03-bar-histogram.html ) -[04.04-particle-line-landscape.html](chapter-04/04.04-particle-line-landscape.html) -[04.04-bass-circle-system.html ](chapter-04/04.04-bass-circle-system.html ) - -chapter-05: -[05.01-3D-plane-from-scratch.html ](chapter-05/05.01-3D-plane-from-scratch.html ) -[05.02-3D-plane-from-scratch-perlin.html](chapter-05/05.02-3D-plane-from-scratch-perlin.html ) -[05.03-3D-plane-with-texture.html ](chapter-05/05.03-3D-plane-with-texture.html ) -[05.04-Simple-3D-Buildings.html ](chapter-05/05.04-Simple-3D-Buildings.html ) -[05.05-generated-tree.html ](chapter-05/05.05-generated-tree.html ) - -chapter-06: -[06.01-CSS3DSkeleton.html ](chapter-06/06.01-CSS3DSkeleton.html ) -[06.02-google-maps-cube.html](chapter-06/06.02-google-maps-cube.html ) -[06.03-Animations.html ](chapter-06/06.03-Animations.html ) -[06.04-CSS3DSprites.html ](chapter-06/06.04-CSS3DSprites.html ) -[gm-embed.html ](chapter-06/gm-embed.html ) - -chapter-07: -[07.01-load-json-model.html ](chapter-07/07.01-load-json-model.html ) -[07.02-load-json-model-textures.html ](chapter-07/07.02-load-json-model-textures.html ) -[07.03-load-json-model-animations-bones.html](chapter-07/07.03-load-json-model-animations-bones.html ) -[07.04-load-json-model-animations-morph.html](chapter-07/07.04-load-json-model-animations-morph.html) From 48d9d301404aca58a4da3b3b442e8a033217578d Mon Sep 17 00:00:00 2001 From: zengjf Date: Tue, 22 Nov 2016 11:00:39 +0800 Subject: [PATCH 4/5] hacking chapter-01 --- README | 5 --- README.md | 63 ++++++++++++++++++++++++++++++++ autorun.sh | 3 ++ chapter-01/01.06-statistics.html | 43 +++++++++++++++++++--- 4 files changed, 103 insertions(+), 11 deletions(-) delete mode 100644 README create mode 100644 README.md create mode 100755 autorun.sh diff --git a/README b/README deleted file mode 100644 index d8a08dd..0000000 --- a/README +++ /dev/null @@ -1,5 +0,0 @@ -This repository contains the examples from the book Essential Three.js I'm currently writing for Packt. This -book shows, using a couple of complex examples, how to work with the most common features of Three.js. - -This repo will contain the source code for the 6 large examples (chapters 2 to 7) and the examples to get you -started will be in chapter 1. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..69f3309 --- /dev/null +++ b/README.md @@ -0,0 +1,63 @@ +> This repository contains the examples from the book Essential Three.js I'm currently writing for Packt. This +> book shows, using a couple of complex examples, how to work with the most common features of Three.js. +> +> This repo will contain the source code for the 6 large examples (chapters 2 to 7) and the examples to get you +> started will be in chapter 1. + +[Convert markdown to HTML](http://www.atool.org/html2markdown.php) + +essential-three.js + +chapter-01: +[01.01-basic-scene.html](chapter-01/01.01-basic-scene.html) +[01.02-simple-mesh.html](chapter-01/01.02-simple-mesh.html) +[01.03-vertices.html ](chapter-01/01.03-vertices.html) +[01.04-faces.html ](chapter-01/01.04-faces.html) +[01.05-controls.html ](chapter-01/01.05-controls.html) +[01.06-statistics.html ](chapter-01/01.06-statistics.html) + +chapter-02: +[02.01-globe-and-camera.html ](chapter-02/02.01-globe-and-camera.html) +[02.02-basic-textures.html ](chapter-02/02.02-basic-textures.html) +[02.03-add-lighting.html ](chapter-02/02.03-add-lighting.html) +[02.04-starry-background.html ](chapter-02/02.04-starry-background.html) +[02.05-advanced-textures.html ](chapter-02/02.05-advanced-textures.html) +[02.06-canvas-overlay.html ](chapter-02/02.06-canvas-overlay.html) +[02.07-add-an-object-overlay.html ](chapter-02/02.07-add-an-object-overlay.html) +[02.07-add-an-object-overlay-orig.html](chapter-02/02.07-add-an-object-overlay-orig.html) + +chapter-03: +[03.01-simple-generated-maze.html](chapter-03/03.01-simple-generated-maze.html) +[03.02-animate-cube.html ](chapter-03/03.02-animate-cube.html) +[03.03-collision-detection.html ](chapter-03/03.03-collision-detection.html) +[03.04-ball-and-maze.html ](chapter-03/03.04-ball-and-maze.html) +[03.05-keyboard-controls.html ](chapter-03/03.05-keyboard-controls.html) +[03.0A-maze.html ](chapter-03/03.0A-maze.html) + +chapter-04: +[04.01-output-sound-volums.html ](chapter-04/04.01-output-sound-volums.html) +[04.02-particle-line-output.html ](chapter-04/04.02-particle-line-output.html) +[04.03-bar-histogram.html ](chapter-04/04.03-bar-histogram.html) +[04.04-particle-line-landscape.html](chapter-04/04.04-particle-line-landscape.html) +[04.04-bass-circle-system.html ](chapter-04/04.04-bass-circle-system.html) + +chapter-05: +[05.01-3D-plane-from-scratch.html ](chapter-05/05.01-3D-plane-from-scratch.html) +[05.02-3D-plane-from-scratch-perlin.html](chapter-05/05.02-3D-plane-from-scratch-perlin.html) +[05.03-3D-plane-with-texture.html ](chapter-05/05.03-3D-plane-with-texture.html) +[05.04-Simple-3D-Buildings.html ](chapter-05/05.04-Simple-3D-Buildings.html) +[05.05-generated-tree.html ](chapter-05/05.05-generated-tree.html) + +chapter-06: +[06.01-CSS3DSkeleton.html ](chapter-06/06.01-CSS3DSkeleton.html) +[06.02-google-maps-cube.html](chapter-06/06.02-google-maps-cube.html) +[06.03-Animations.html ](chapter-06/06.03-Animations.html) +[06.04-CSS3DSprites.html ](chapter-06/06.04-CSS3DSprites.html) +[gm-embed.html ](chapter-06/gm-embed.html) + +chapter-07: +[07.01-load-json-model.html ](chapter-07/07.01-load-json-model.html) +[07.02-load-json-model-textures.html ](chapter-07/07.02-load-json-model-textures.html) +[07.03-load-json-model-animations-bones.html](chapter-07/07.03-load-json-model-animations-bones.html) +[07.04-load-json-model-animations-morph.html](chapter-07/07.04-load-json-model-animations-morph.html) + diff --git a/autorun.sh b/autorun.sh new file mode 100755 index 0000000..749e85a --- /dev/null +++ b/autorun.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +python -m SimpleHTTPServer diff --git a/chapter-01/01.06-statistics.html b/chapter-01/01.06-statistics.html index 7cb5ad2..f68bb4f 100644 --- a/chapter-01/01.06-statistics.html +++ b/chapter-01/01.06-statistics.html @@ -2,12 +2,16 @@ 01.06 - Statistics + + +