19 Commits
Author SHA1 Message Date
Mr.doob 5697084e64 Moved RequestAnimationFrame.js code right into src/Three.js. 2011-11-29 03:29:13 +01:00
Mr.doob 1e5fc98582 Reworking Scene Graph setup. 2011-10-09 01:13:46 +02:00
Mr.doob c89e3fe49a More breakage...
* Added `scene.ambientColor` and `Scene` now ignores `AmbientLights` (transferring hex for temporal backwards compatibility)
* CanvasRenderer and SVGRenderer using `scene.ambientColor`. Tried to update `WebGLRenderer` too, but the method in question doesn't seem to have access to the scene :S
* Removed `scene.origin` and updated examples that used it.
* Improved subdivision example
2011-10-05 07:26:29 +02:00
Mr.doob a0b8f50fb0 Renamed scene.center to scene.origin as per @pyrotechnick suggestion. 2011-10-04 03:07:07 +02:00
Mr.doob 0995bc43f3 Added a handy "center" to Scene.
I could have just used `lookAt( scene.position )`, but eventually I would like to have Scene not extending Object3D.
2011-10-04 01:30:00 +02:00
Mr.doob 896448c06d Looking for the right pattern for the camera.lookAt() use. 2011-10-04 01:23:14 +02:00
Mr.doob 5d96f15b39 Started doing Camera changes.
* Camera is now a base object. PerspectiveCamera should be used instead. Figured out a way to show a warning when misused.
* OrthoCamera is now OrthographicCamera.
* Removed `target` from Camera.

Misc
* Renamed Trident to Axes.
2011-10-04 01:07:24 +02:00
Mr.doob ad31ff1214 Fixed the rest of the examples.
Found out that CrosseyedWebGLRenderer probably wouldn't work for target-less cameras.
Something weird going on with `webgl_scene_test.html` and `webgl_scene_test_blender.html`. For some reason cubes dissapear.
2011-10-02 06:33:32 +02:00
Mr.doob b87bfc71c8 Bunch of changes...
* Camera.useTarget is now false by default. Updated some of the examples. I tried to remove target altogether (and use lookAt every frame), but I found that WebGLRenderer's ShadowMaps uses a camera with target. Will try again at some point.
* Object3D.lookAt now checks if it's a Camera and does the inverted view.
* Quaternion glitch reported at #595
* Added .name to Material
* WebGLRenderer .clear() to .clear( color, depth, stencil ). All of them true by default.
2011-10-01 22:36:05 +02:00
Mr.doob 19d8261174 More examples clean up. 2011-09-20 18:31:13 -07:00
Mr.doob 71c2df1649 Updated HTML of some examples. 2011-09-20 15:59:12 -07:00
Mr.doob a940f05427 Updated examples with the new .add/.remove methods. 2011-09-05 23:16:56 +02:00
Mr.doob bfdb10a85a Updated all examples so they use the renamed geometry classes. 2011-06-13 18:33:53 +02:00
Mr.doob 76e7ea3461 Added namespace to all the objects that missed it (geometries, uniforms, etc)
WebGLRenderer antialias is off by default (considering Firefox doesn't support it...)
Formatting clean up here and there
2011-04-09 12:38:39 +01:00
alteredq 04a7ac496c Added SceneUtils.traverseHierarchy and SceneUtils.showHierarchy.
Also cleaned up examples from individual includes, only sandboxes and ubiquity now include individual files.
2011-03-17 00:22:20 +01:00
alteredq 1c466f26e7 Moved QuakeCamera and PathCamera into extras/cameras. 2011-03-15 16:49:52 +01:00
Mr.doob e438549c87 Updated builds.
Added RequestAnimationFrame system to the new examples.
2011-02-27 06:39:15 +00:00
Mr.doob 7480fb69cd Updated README examples.
Sound3D ⟶ Sound
2011-02-26 14:21:15 +00:00
Mr.doob c7aa2ab3d1 Object3D::localMatrix ⟶ Object3D::matrix
Object3D::globalMatrix ⟶ Object3D::matrixWorld

Added hierarchy examples.
2011-02-26 10:31:18 +00:00