Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6391 commits
Select commit Hold shift + click to select a range
e365f21
Added KMZLoader.
mrdoob Oct 3, 2015
7dd7f78
Editor: Added support for kmz files.
mrdoob Oct 3, 2015
1976f57
Merge pull request #7276 from makc/patch-1
mrdoob Oct 3, 2015
2b4efb9
Fix for retina displays
leitzler Oct 3, 2015
1281173
Fix for retina displays
leitzler Oct 3, 2015
a353e5e
Fix for retina displays
leitzler Oct 3, 2015
12b975e
Fix for retina displays
leitzler Oct 3, 2015
c245fb7
Merge pull request #7280 from leitzler/leitzler-retina
mrdoob Oct 3, 2015
1e3b730
Merge pull request #7281 from leitzler/leitzler-retina-2
mrdoob Oct 3, 2015
3713824
Removed console.log
leitzler Oct 3, 2015
dbd9ade
Removed console.log
leitzler Oct 3, 2015
9b10805
Updated param.PointCloud to param.Points
leitzler Oct 3, 2015
9d9652c
renamed: w_chaingun.MD2 -> w_chaingun.md2
Oct 3, 2015
286df9b
Update webgl_performance.html
leitzler Oct 3, 2015
40b5776
Removed shading property for MeshNormalMaterial
leitzler Oct 3, 2015
7355d3f
Update misc_lookat.html
leitzler Oct 3, 2015
05d638a
Removed shading property for MeshNormalMaterial
leitzler Oct 3, 2015
774519e
Removed shading property for MeshNormalMaterial
leitzler Oct 3, 2015
99959e7
Merge pull request #7286 from leitzler/leitzler-loadermd2
mrdoob Oct 4, 2015
166288d
Merge pull request #7283 from leitzler/leitzler-consolelog
mrdoob Oct 4, 2015
eb1157b
Merge pull request #7284 from leitzler/leitzler-consolelog-2
mrdoob Oct 4, 2015
b97e2d4
Merge pull request #7285 from leitzler/leitzler-raycastparams
mrdoob Oct 4, 2015
11f03ed
Merge pull request #7278 from nraynaud/patch-5
mrdoob Oct 4, 2015
9036e30
WebGLRenderer: Clean up.
mrdoob Oct 4, 2015
6271069
WebGLRenderer: readRenderTargetPixels clean up.
mrdoob Oct 4, 2015
1c215af
Updated builds.
mrdoob Oct 4, 2015
23d6cc5
SphereBufferGeometry: Handle Uint16 limit. Fixes #7288.
mrdoob Oct 4, 2015
46c4b3e
Updated builds.
mrdoob Oct 4, 2015
e0209c0
add read float buffer example
nraynaud Oct 4, 2015
12803ed
Merge pull request #7287 from leitzler/leitzler-meshnormmat
mrdoob Oct 4, 2015
1171231
fix indentation
nraynaud Oct 4, 2015
d1af463
oopsie
nraynaud Oct 4, 2015
acd8fcd
fix indentation
nraynaud Oct 4, 2015
f47b93a
try to reformat with the online tool
nraynaud Oct 4, 2015
214dda4
revert build file
nraynaud Oct 4, 2015
914c4bd
remove useless foreground
nraynaud Oct 4, 2015
a9c17b5
ColladaLoader2: Separated parse and build steps.
mrdoob Oct 4, 2015
a5f9673
ColladaLoader2: Fixed instance_* handling.
mrdoob Oct 4, 2015
e29d2cd
Editor: Added color for lines and points.
mrdoob Oct 4, 2015
c7145d4
Added missing dependencies for sae3d examples.
arodic Oct 5, 2015
ea9a8ba
Merge pull request #7294 from arodic/sae3dfix
mrdoob Oct 5, 2015
74de60f
Merge pull request #7289 from nraynaud/patch-5
mrdoob Oct 5, 2015
f1d0bb5
Fixed remaining SEA3D example.
mrdoob Oct 5, 2015
c6e69f2
ColladaLoader2: Cloning nodes. Not sure if it's needed though.
mrdoob Oct 5, 2015
9dfe76e
ColladaLoader: application/xml produces Document instead of HTMLDocum…
mrdoob Oct 7, 2015
ddd3f3d
Editor: Commented out objectParent select box. Hangs the tab with >20…
mrdoob Oct 7, 2015
abccf23
Overwritten THREE.Geometry.clone for THREE.TubeGeometry to fix #7301
Oct 7, 2015
a13cf43
WebGLRenderer: Avoid 0 shininess. Fixes #7252.
mrdoob Oct 7, 2015
6365d63
MTLLoader: Convert shininess to float. See #7252.
mrdoob Oct 7, 2015
d04e045
ColladaLoader2: Flattening node when possible.
mrdoob Oct 7, 2015
5a89619
Updated builds.
mrdoob Oct 7, 2015
63de5a7
Docs: Removed unneeded shininess information. See #7252.
mrdoob Oct 7, 2015
d50b697
Merge pull request #7303 from AVGP/7301-tube-geometry-clone
mrdoob Oct 7, 2015
36c1aef
TubeGeometry: Saving taper parameter.
mrdoob Oct 7, 2015
429b3de
Updated builds.
mrdoob Oct 7, 2015
2a7aa82
Fixed webgl_loader_amf links.
mrdoob Oct 7, 2015
64a1e88
XHRLoader: Using event.target instead of this. See #7300.
mrdoob Oct 7, 2015
a0dbe43
Fixed resize in sea3d examples.
mrdoob Oct 7, 2015
f82ed42
Updated builds.
mrdoob Oct 7, 2015
d2c0bbd
Docs: Allow 0 shininess in material viewer.
mrdoob Oct 7, 2015
468a998
ColladaLoader2: Parse Asset.
mrdoob Oct 7, 2015
275f339
Clean up.
mrdoob Oct 8, 2015
e012d22
Updated builds.
mrdoob Oct 8, 2015
1ab154b
Added rotateAround method to Vector2
please-wait Oct 8, 2015
46d0293
WebGLProperties: Renamed .delete to .remove. See #7298.
mrdoob Oct 9, 2015
7fbe906
Editor: Fixed File/New when autosave disabled.
mrdoob Oct 9, 2015
6dffe4a
Fix intersection uv for non-indexed BufferGeometry
patak-dev Oct 9, 2015
2e128d8
Refactor Mesh raycast
patak-dev Oct 9, 2015
155d4c7
Merge pull request #7317 from matias-capeletto/dev-raycast-fix
mrdoob Oct 9, 2015
6d64a06
Remove Line Breaks at function calls
patak-dev Oct 9, 2015
e2a72e1
CanvasRenderer/SVGRenderer: Removed broken MeshDepthMaterial support.…
mrdoob Oct 9, 2015
eb3dfab
Fix null pointer err for some collada models
ruofeidu Oct 9, 2015
a0a6a94
Merge branch 'dev' of https://github.com/mrdoob/three.js into dev
elijahsgh Oct 10, 2015
9637015
WebGLRenderer: Ignore position.count if drawRange.count !== Infinity.…
mrdoob Oct 10, 2015
54aa2c1
Updated builds.
mrdoob Oct 10, 2015
0689391
WebGLRenderer: groups now take geometry.drawRange into account. See #…
mrdoob Oct 10, 2015
05696b4
Updated builds.
mrdoob Oct 10, 2015
c8448c8
Merge pull request #7320 from matias-capeletto/dev-raycast-refactor
mrdoob Oct 10, 2015
a5cbf88
Color: Added offset to fromArray.
mrdoob Oct 10, 2015
5720ae4
Geometry: Removed morphColors.
mrdoob Oct 10, 2015
1fd2e44
Clean up.
mrdoob Oct 10, 2015
45614d2
Merge branch 'dev' of https://github.com/mrdoob/three.js into dev
mrdoob Oct 10, 2015
990cf6b
Mesh: raycast() clean up.
mrdoob Oct 10, 2015
d169038
Clean up.
mrdoob Oct 10, 2015
f1d3105
Refactored Light's shadow API.
mrdoob Oct 11, 2015
bea45d2
Clean up.
mrdoob Oct 11, 2015
440f508
Tweaks to Light's shadow API. Object3D has .castShadow...
mrdoob Oct 11, 2015
e996d3c
Object3D.toJSON: Handle castShadow and receiveShadow.
mrdoob Oct 11, 2015
d1bfad4
Light: Set receiveShadow to undefined.
mrdoob Oct 11, 2015
b8fa394
WebGLRenderer: Tweaked drawRange/groups handling. As per @WestLangley…
mrdoob Oct 11, 2015
bdb0bd4
Updated builds.
mrdoob Oct 11, 2015
0373ba6
WebGLRenderer: Tweaks to drawRange code. See 068939194e840800e93d9934…
mrdoob Oct 11, 2015
9a2a15a
Light: Remove shadowMapSize. It's only used internally.
mrdoob Oct 11, 2015
1d3cf6b
Cleaned up tern definitions. This file needs to be rebuilt... /ping @…
mrdoob Oct 11, 2015
a2985ac
Updated builds.
mrdoob Oct 11, 2015
12c8d0d
Editor: Added shadow support.
mrdoob Oct 11, 2015
f2690c6
Editor: Clean up.
mrdoob Oct 11, 2015
978b7b1
WebGLShadowMap: Clean up.
mrdoob Oct 11, 2015
551b226
Updated builds.
mrdoob Oct 11, 2015
569d84a
Editor/App: Shadow support.
mrdoob Oct 11, 2015
a6e269a
VRMLLoader improvements
makc Oct 11, 2015
3e12ab1
Vector2: Added width/height getters/setters. Seems simpler than creat…
mrdoob Oct 11, 2015
b3b2996
un-break quads in VRMLLoader
makc Oct 11, 2015
0e045c7
LightShadow API clean up.
mrdoob Oct 11, 2015
843aa3b
Updated builds.
mrdoob Oct 11, 2015
3ca08a1
WebGLProgram: Fixed displacementMap bug.
mrdoob Oct 11, 2015
34d0f3f
Editor/App clean up.
mrdoob Oct 11, 2015
de4361f
Updated builds.
mrdoob Oct 11, 2015
6f1b2af
formatting, removing dummy geometry
makc Oct 11, 2015
14b7e32
UI: Moved add/remove/clear to Element.
mrdoob Oct 11, 2015
593102b
Editor: Prettier Shadow panel.
mrdoob Oct 11, 2015
104a2bc
Editor: Update material when receiveShadow changes.
mrdoob Oct 11, 2015
e9e2bee
Editor: Project UI clean up.
mrdoob Oct 11, 2015
a3ac716
Revert "WebGLProperties: Renamed .delete to .remove. See #7298."
mrdoob Oct 11, 2015
06ba13b
Updated builds.
mrdoob Oct 11, 2015
c9ebd1c
build.py: strip comments from glsl files.
mrdoob Oct 12, 2015
1acf410
Updated builds.
mrdoob Oct 12, 2015
14918f8
Curve: Clean up.
mrdoob Oct 12, 2015
53796b3
*Geometry.clone() clean up.
mrdoob Oct 12, 2015
01274d9
*Path and Shape clean up.
mrdoob Oct 12, 2015
136ef4e
Updated builds.
mrdoob Oct 12, 2015
db89a0c
Improved pointlight shadows example.
mrdoob Oct 12, 2015
be40b79
CircleGeometry: Use CircleBufferGeometry internally.
mrdoob Oct 12, 2015
a0217db
CircleBufferGeometry: Clean up.
mrdoob Oct 12, 2015
de83767
Editor: Improved Sidebar.Geometry.CircleGeometry.
mrdoob Oct 12, 2015
419b8f9
Fixes zooming in firefox
fkammer Oct 12, 2015
220497e
Bugfix for color initializer
elijahsgh Oct 12, 2015
9c187d5
Merge branch 'dev' of https://github.com/tamarintech/three.js into dev
elijahsgh Oct 12, 2015
2112042
Removed duplicate normal loading section
elijahsgh Oct 12, 2015
580761c
MeshLambertMaterial: Moved ambientLightColor to fargment shader.
mrdoob Oct 12, 2015
7696fbc
ShaderLib: Moved phong composite code to main file.
mrdoob Oct 12, 2015
0ba9d0a
ShaderLib: Apply shadowMask to diffuse/specular only. See #7321.
mrdoob Oct 12, 2015
4bb7be7
LightShadow: Removed shadowDarkness. See #7321.
mrdoob Oct 12, 2015
d3abd92
Updated builds.
mrdoob Oct 12, 2015
7fc2e6f
Updated builds.
mrdoob Oct 12, 2015
d220c98
build.py: unobfuscated code.
mrdoob Oct 12, 2015
2a91fef
shadowDarkness clean up.
mrdoob Oct 12, 2015
889c1e3
ShaderLib: Added totalAmbientLight back to basic. See 0ba9d0a581398c6…
mrdoob Oct 12, 2015
e13ea81
Updated builds.
mrdoob Oct 12, 2015
8313642
Fixed typo.
mrdoob Oct 12, 2015
c2bbd46
Updated builds.
mrdoob Oct 12, 2015
e49a7d2
ShaderLib: Removed shadows from basic material. See 0ba9d0a581398c64b…
mrdoob Oct 12, 2015
a2a79e2
Updated builds.
mrdoob Oct 12, 2015
6c94104
Remove redundant 'opacity', bugfix for materialid vs materialId casin…
elijahsgh Oct 12, 2015
78a1f36
Merge pull request #7334 from tamarintech/dev
mrdoob Oct 12, 2015
41e1fba
Merge pull request #7331 from fkammer/fix-orbitcontrols-firefox
mrdoob Oct 13, 2015
6c86b83
Tweaked examples.
mrdoob Oct 13, 2015
f11c485
DOMMouseScroll to MozMousePixelScroll. See #7331.
mrdoob Oct 13, 2015
7e49ce8
Reverted shadowDarkness removal. See #7321.
mrdoob Oct 13, 2015
1866efc
Updated builds.
mrdoob Oct 13, 2015
690e880
More examples improved.
mrdoob Oct 13, 2015
5fa6333
colorAmbient clean up.
mrdoob Oct 13, 2015
9f5f6ba
Merge pull request #7323 from ruofeidu/patch-1
mrdoob Oct 13, 2015
4eccb8f
added clampLength method to Vector2 and Vector3
Mugen87 Oct 13, 2015
57902f1
use divideScalar to avoid zero division
Mugen87 Oct 13, 2015
525b9c6
remove closure of clampLength
Mugen87 Oct 13, 2015
89af646
adjust formatting of clampLength
Mugen87 Oct 13, 2015
c4c85e8
align code of clampLength to setLength
Mugen87 Oct 13, 2015
a9c5076
Color: Fixed hls(a) parsing. See #7336.
mrdoob Oct 13, 2015
24471ae
Color: Simplified setStyle().
mrdoob Oct 13, 2015
9776d27
Vector*: Simplified clamp(). See #7326.
mrdoob Oct 13, 2015
1c4bb69
ExtrudeGeometry: Reverted face.material removal. See #7332.
mrdoob Oct 13, 2015
a0c6d17
Updated builds.
mrdoob Oct 13, 2015
70bd430
Math: Using max/min in clamp(). See #7326.
mrdoob Oct 13, 2015
7956297
Math: Removed clampBottom.
mrdoob Oct 13, 2015
a484774
Docs: Updated Math page.
mrdoob Oct 13, 2015
2c9d46e
Curve/Path/Shape: Removed dead code (bends).
mrdoob Oct 13, 2015
c2d95cb
Updated builds.
mrdoob Oct 13, 2015
f5132c2
Merge pull request #7328 from makc/patch-2
mrdoob Oct 13, 2015
b9e85fb
Loader: Using MaterialLoader in .createMaterial().
mrdoob Oct 14, 2015
aa47670
Updated builds.
mrdoob Oct 14, 2015
e8d2b08
ImageUtils: Use TextureLoader in loadTexture().
mrdoob Oct 14, 2015
2725e5d
Updated builds.
mrdoob Oct 14, 2015
3b8338c
more compact version of clampLength
Mugen87 Oct 14, 2015
91d7c95
Merge pull request #7326 from Mugen87/dev
mrdoob Oct 14, 2015
e6f7d2a
avoid unnecessary Math.sqrt operations
Mugen87 Oct 14, 2015
071418a
Merge pull request #7343 from Mugen87/sqrt
mrdoob Oct 14, 2015
fc881d6
Vector*: Simplified setLength(). See #7326.
mrdoob Oct 14, 2015
5218134
Vector*: Simplified min() and max()
mrdoob Oct 14, 2015
8c4f342
Vector*: Safe multiplyScalar. See #7326.
mrdoob Oct 14, 2015
d6edbe1
Vector4: I guess z should be 0 when multiplyScalar is 0? Was this a b…
mrdoob Oct 14, 2015
56da50f
Updated builds.
mrdoob Oct 14, 2015
839efa1
Added CubeTextureLoader.
mrdoob Oct 14, 2015
e96712e
ImageUtils: Use CubeTextureLoader in loadTextureCube.
mrdoob Oct 14, 2015
a1fa8ac
Fixe typo.
mrdoob Oct 14, 2015
15da3dd
ImageUtils: Deprecated loadTexture() and loadTextureCube().
mrdoob Oct 14, 2015
b6070a0
ImageUtils: Moved getNormalMap() and generateDataTexture() to examples.
mrdoob Oct 14, 2015
bb982de
Loader: Fixed textures.
mrdoob Oct 14, 2015
ca85e3a
Loader: Improved loadTexture.
mrdoob Oct 14, 2015
36f4f45
Updated builds.
mrdoob Oct 14, 2015
ff3465c
WebGLRenderer: Convert to power of two textures that require it inste…
mrdoob Oct 14, 2015
9164153
Updated webgl_materials_lightmap. HemisphereLight no longer produces …
mrdoob Oct 14, 2015
b2d9a30
Updated builds.
mrdoob Oct 14, 2015
1eb3ffc
WebGLRenderer: Check image type in makePowerOfTwo.
mrdoob Oct 14, 2015
9cff15c
Updated builds.
mrdoob Oct 14, 2015
52df393
ImageUtils: Fixed CanvasRenderer breakage.
mrdoob Oct 14, 2015
74ed483
Improved examples.
mrdoob Oct 14, 2015
5922ade
Updated builds.
mrdoob Oct 14, 2015
cc06a10
Clean up.
mrdoob Oct 14, 2015
35e5c70
export extremely large jsons
makc Oct 15, 2015
4e9abd1
Reverting Vector3.angleTo change. See #7343.
mrdoob Oct 15, 2015
1bb1c7f
Merge pull request #7349 from makc/p-p-patch
mrdoob Oct 15, 2015
ba13c98
AmbientLight/HemisphereLight: Set castShadow to undefined.
mrdoob Oct 15, 2015
96ceac4
Merge branch 'dev' of https://github.com/mrdoob/three.js into dev
mrdoob Oct 15, 2015
f828720
Clean up.
mrdoob Oct 15, 2015
a8e787b
Moved Shape.Utils to ShapeUtils.
mrdoob Oct 15, 2015
a83c567
WebGLRenderer: Fixed castShadow.
mrdoob Oct 15, 2015
f854386
Mover Curve.Utils to CurveUtils.
mrdoob Oct 15, 2015
dfe314b
Path: Removed PathActions.
mrdoob Oct 15, 2015
95b294d
Path: Removed unneeded Array.prototype.calls.
mrdoob Oct 15, 2015
8ed08e9
Replaced EPSILONS with Number.EPSILON.
mrdoob Oct 15, 2015
d0582f1
Build: Added CurveUtils.
mrdoob Oct 15, 2015
dff36c0
Curve.Utils and Shape.Utils to CurveUtils and ShapeUtils.
mrdoob Oct 15, 2015
facbcd3
ShapeUtils: Simplified b2 and b3 methods.
mrdoob Oct 15, 2015
0437fb4
Curves code clean up.
mrdoob Oct 15, 2015
041f5fd
WebGLRenderer: Removed sourceFile reference.
mrdoob Oct 15, 2015
388c751
WebGLRenderer: Removed unused. texture.__weblInit.
mrdoob Oct 15, 2015
1e32e60
Updated builds.
mrdoob Oct 15, 2015
806a4d5
FontUtils: Moved triangulate code to ShapeUtils.
mrdoob Oct 15, 2015
24ac597
ShapeUtils: Fixed area reference.
mrdoob Oct 15, 2015
9381d72
WebGLRenderer: Commented out .complete check as it collides with data…
mrdoob Oct 15, 2015
ded588f
Moved FontUtils and TextGeometry to examples.
mrdoob Oct 15, 2015
7fecc50
WebGLRenderer: Reverted .complete check. It actually saves data:* ima…
mrdoob Oct 15, 2015
661ce3a
ExtrudeGeometry: Force materialIndex to 0 and 1.
mrdoob Oct 15, 2015
bc383cf
Included FontUtils and TextGeometry in relevant examples.
mrdoob Oct 15, 2015
52fe779
MeshBasicMaterial: Reverted shadowmap removal.
mrdoob Oct 15, 2015
16dfebe
Fixed example.
mrdoob Oct 15, 2015
bf8de9b
Editor: Added UI.Modal. (Failed attempt to to fix Publish...)
mrdoob Oct 15, 2015
df313b1
Editor: Added version info.
mrdoob Oct 15, 2015
00a12dd
Editor: UI tweaks.
mrdoob Oct 15, 2015
3c8aa5d
ColladaLoader2: WIP Z_UP
mrdoob Oct 15, 2015
5dca3aa
Docs: Added lib include back.
mrdoob Oct 15, 2015
6e8b56b
r73
mrdoob Oct 15, 2015
a72b0e0
Merge branch 'dev'
mrdoob Oct 15, 2015
773e043
Merge pull request #6776 from amirebrahimi/master
mrdoob Oct 15, 2015
6febf71
Merge pull request #7307 from please-wait/dev
mrdoob Oct 15, 2015
56723ec
Clean up
WestLangley Oct 16, 2015
b1f0e36
Fixed merge.
mrdoob Oct 16, 2015
e1dc0bd
Merge branch 'master' into dev
mrdoob Oct 16, 2015
d36df79
Basic Channels implementation. See #5180 and #5931.
mrdoob Oct 16, 2015
48d9b20
Merge pull request #7355 from WestLangley/dev-cleanup
mrdoob Oct 16, 2015
82e98bc
fixed isNaN for Safari
tiagopadua Oct 16, 2015
6376bc1
Merge pull request #7356 from tiagopadua/fix_isNaN
mrdoob Oct 16, 2015
56bd34c
Channels: Removed clear().
mrdoob Oct 16, 2015
f381aa4
Updated builds.
mrdoob Oct 16, 2015
3135c47
Added missing examples to examples list.
mrdoob Oct 16, 2015
21d4a37
Removed example from list.
mrdoob Oct 16, 2015
e55ba32
Updated package.json
mrdoob Oct 16, 2015
317d6f6
Fixed SEA3D examples.
mrdoob Oct 16, 2015
4bab468
Docs: Fixed TextGeometry.
mrdoob Oct 17, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DS_Store
*.swp
.project
utils/npm/node_modules/*
node_modules
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
examples/
src/
test/
utils/
docs/
editor/
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The issues section is for bug reports and feature requests only. If you need help, please use [stackoverflow](http://stackoverflow.com/questions/tagged/three.js).
### The issues section is for bug reports and feature requests only. If you need help, please use [stackoverflow](http://stackoverflow.com/questions/tagged/three.js).


Before reporting a bug
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2010-2013 three.js authors
Copyright © 2010-2015 three.js authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ three.js

The aim of the project is to create a lightweight 3D library with a very low level of complexity — in other words, for dummies. The library provides <canvas>, <svg>, CSS3D and WebGL renderers.

[Examples](http://threejs.org/) — [Documentation](http://threejs.org/docs/) — [Migrating](https://github.com/mrdoob/three.js/wiki/Migration) — [Help](http://stackoverflow.com/questions/tagged/three.js)
[Examples](http://threejs.org/examples/) — [Documentation](http://threejs.org/docs/) — [Migrating](https://github.com/mrdoob/three.js/wiki/Migration) — [Help](http://stackoverflow.com/questions/tagged/three.js)


### Usage ###
Expand All @@ -17,31 +17,31 @@ Alternatively see [how to build the library yourself](https://github.com/mrdoob/
<script src="js/three.min.js"></script>
```

This code creates a scene, then creates a camera, adds the camera and cube to the scene, creates a &lt;canvas&gt; renderer and adds its viewport in the document.body element.
This code creates a scene, a camera, and a geometric cube, and it adds the cube to the scene. It then creates a `WebGL` renderer for the scene and camera, and it adds that viewport to the document.body element. Finally it animates the cube within the scene for the camera.

```html
<script>

var camera, scene, renderer;
var scene, camera, renderer;
var geometry, material, mesh;

init();
animate();

function init() {

scene = new THREE.Scene();

camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 10000 );
camera.position.z = 1000;

scene = new THREE.Scene();

geometry = new THREE.CubeGeometry( 200, 200, 200 );
geometry = new THREE.BoxGeometry( 200, 200, 200 );
material = new THREE.MeshBasicMaterial( { color: 0xff0000, wireframe: true } );

mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );

renderer = new THREE.CanvasRenderer();
renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );

document.body.appendChild( renderer.domElement );
Expand All @@ -50,7 +50,6 @@ This code creates a scene, then creates a camera, adds the camera and cube to th

function animate() {

// note: three.js includes requestAnimationFrame shim
requestAnimationFrame( animate );

mesh.rotation.x += 0.01;
Expand All @@ -62,7 +61,7 @@ This code creates a scene, then creates a camera, adds the camera and cube to th

</script>
```
If everything went well you should see [this](http://jsfiddle.net/ksRyQ/).
If everything went well you should see [this](http://jsfiddle.net/f17Lz5ux/).

### Change log ###

Expand Down
26 changes: 26 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "three.js",
"homepage": "http://threejs.org/",
"description": "JavaScript 3D library",
"main": "build/three.js",
"keywords": [
"three",
"threejs",
"three.js",
"3D",
"webgl"
],
"license": "MIT",
"ignore": [
"**/.*",
"*.md",
"docs",
"editor",
"examples/*",
"!examples/js",
"src",
"test",
"utils",
"LICENSE"
]
}
Loading