提交 8b18eafc 编写于 作者: M Mr.doob

- Added "Or so they say..." demo to featured projects.

- Camelcased the minified files (it feels weird both ways anyway...)
上级 ada5ff25
...@@ -26,6 +26,7 @@ Other similar projects: [pre3d](http://deanm.github.com/pre3d/), [pvjs](http://c ...@@ -26,6 +26,7 @@ Other similar projects: [pre3d](http://deanm.github.com/pre3d/), [pvjs](http://c
### Featured projects ### ### Featured projects ###
[![Or so they say...](http://github.com/mrdoob/three.js/raw/master/assets/projects/07_orsotheysay.png)](http://xplsv.com/prods/demos/online/xplsv_orsotheysay/)
[![Rat](http://github.com/mrdoob/three.js/raw/master/assets/projects/06_rat.png)](http://tech.lab212.org/2010/07/export-textured-models-from-blender2-5-to-three-js/) [![Rat](http://github.com/mrdoob/three.js/raw/master/assets/projects/06_rat.png)](http://tech.lab212.org/2010/07/export-textured-models-from-blender2-5-to-three-js/)
[![Failure](http://github.com/mrdoob/three.js/raw/master/assets/projects/05_failure.png)](http://www.is-real.net/experiments/three/failure/) [![Failure](http://github.com/mrdoob/three.js/raw/master/assets/projects/05_failure.png)](http://www.is-real.net/experiments/three/failure/)
[![Space Cannon 3D](http://github.com/mrdoob/three.js/raw/master/assets/projects/02_spacecannon.png)](http://labs.brian-stoner.com/spacecannon/) [![Space Cannon 3D](http://github.com/mrdoob/three.js/raw/master/assets/projects/02_spacecannon.png)](http://labs.brian-stoner.com/spacecannon/)
...@@ -36,9 +37,9 @@ Other similar projects: [pre3d](http://deanm.github.com/pre3d/), [pvjs](http://c ...@@ -36,9 +37,9 @@ Other similar projects: [pre3d](http://deanm.github.com/pre3d/), [pvjs](http://c
### Usage ### ### Usage ###
Download the [minified library](http://github.com/mrdoob/three.js/raw/master/build/three.js) and include it in your html. Download the [minified library](http://github.com/mrdoob/three.js/raw/master/build/Three.js) and include it in your html.
<script type="text/javascript" src="js/three.js"></script> <script type="text/javascript" src="js/Three.js"></script>
This code creates a camera, then creates a scene object, adds a bunch of random particles in it, creates a &lt;canvas&gt; renderer and adds its viewport in the document.body element. This code creates a camera, then creates a scene object, adds a bunch of random particles in it, creates a &lt;canvas&gt; renderer and adds its viewport in the document.body element.
......
...@@ -54,12 +54,12 @@ tmp_file.close() ...@@ -54,12 +54,12 @@ tmp_file.close()
# YUICOMPRESSOR # YUICOMPRESSOR
os.system("java -jar yuicompressor-2.4.2.jar temp.js -o ../build/three.js --charset utf-8 -v") os.system("java -jar yuicompressor-2.4.2.jar temp.js -o ../build/Three.js --charset utf-8 -v")
os.unlink("temp.js") os.unlink("temp.js")
# HEADER # HEADER
output = '../build/three.js' output = '../build/Three.js'
string = "// three.js r" + str(rev) + " - http://github.com/mrdoob/three.js\n" string = "// three.js r" + str(rev) + " - http://github.com/mrdoob/three.js\n"
src_file = open(output,'r') src_file = open(output,'r')
......
...@@ -64,12 +64,12 @@ tmp_file.close() ...@@ -64,12 +64,12 @@ tmp_file.close()
# YUICOMPRESSOR # YUICOMPRESSOR
os.system("java -jar yuicompressor-2.4.2.jar temp.js -o ../build/three_debug.js --charset utf-8 -v") os.system("java -jar yuicompressor-2.4.2.jar temp.js -o ../build/ThreeDebug.js --charset utf-8 -v")
os.unlink("temp.js"); os.unlink("temp.js");
# HEADER # HEADER
output = '../build/three_debug.js' output = '../build/ThreeDebug.js'
string = "// three.js r" + str(rev) + " - http://github.com/mrdoob/three.js\n" string = "// three.js r" + str(rev) + " - http://github.com/mrdoob/three.js\n"
src_file = open(output,'r') src_file = open(output,'r')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册