From 7935bc8ab9e6fd4d25da58b9fa7b124da5559464 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Tue, 22 Jun 2010 22:31:48 +0100 Subject: [PATCH] - Changed Camera system. (Thx [Paul Brunt](http://github.com/supereggbert)) - Object3D.overdraw = true to enable CanvasRenderer screen space point expansion hack. --- README.md | 28 +-- build/three.js | 4 +- examples/geometry_cube.html | 5 +- examples/geometry_terrain.html | 5 +- examples/geometry_vr.html | 63 ++++- examples/materials_video.html | 6 +- examples/particles_floor.html | 4 +- examples/particles_random.html | 6 +- examples/particles_waves.html | 4 +- examples/primitives/Plane.js | 2 +- src/cameras/Camera.js | 17 +- src/core/Color.js | 4 +- src/core/Face3.js | 2 +- src/core/Face4.js | 2 +- src/core/Matrix4.js | 33 +-- src/core/Vector3.js | 10 +- src/core/Vector4.js | 6 - src/objects/Object3D.js | 1 + src/renderers/CanvasRenderer.js | 191 ++++++++------- src/renderers/Renderer.js | 223 +++++++++--------- src/renderers/SVGRenderer.js | 76 +++--- src/renderers/renderables/RenderableFace3.js | 2 +- src/renderers/renderables/RenderableFace4.js | 2 +- src/renderers/renderables/RenderableLine.js | 2 +- .../renderables/RenderableParticle.js | 3 +- utils/deployer.py | 2 +- 26 files changed, 380 insertions(+), 323 deletions(-) diff --git a/README.md b/README.md index cf5e0219dd..2d262988a4 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,11 @@ three.js [![Flattr this](http://api.flattr.com/button/button-compact-static-100x17.png)](http://flattr.com/thing/287/three-js) -Currently the engine only supports particles and triangles/quads with flat colors. The aim is to keep the code as simple and modular as possible. - -At the moment the engine can render using <canvas> and <svg>. WebGL rendering would come at a later stage but feel free to fork the project and have a go. - -Although this allows 3D for iPhoneOS and Android platforms the performance on these devices is not too good. +This project is work in progress. Before using it in a project be aware that the syntax may change from revision to revision without being backwards compatible. Currently there is no documentation, feel free to use the demos as a reference and/or read the source code. The engine can render using <canvas> and <svg> so far. WebGL renderer coming soon. [More info...](http://mrdoob.com/blog/post/693) -Similar projects: [pre3d](http://deanm.github.com/pre3d/), [pvjs](http://code.google.com/p/pvjswebgl/), [jsjl](http://tulrich.com/geekstuff/canvas/perspective.html), [k3d](http://www.kevs3d.co.uk/dev/canvask3d/k3d_test.html), ... +Other similar projects: [pre3d](http://deanm.github.com/pre3d/), [pvjs](http://code.google.com/p/pvjswebgl/), [jsgl](http://tulrich.com/geekstuff/canvas/perspective.html), [k3d](http://www.kevs3d.co.uk/dev/canvask3d/k3d_test.html), ... ### Examples ### @@ -37,9 +33,7 @@ The library needs to be included first thing. -Now we have access to the engine classes and methods. - -This code creates a camera, then creates a scene object, adds a bunch of random particles to the scene, creates a <canvas> renderer and adds its viewport the document.body element. +This code creates a camera, then creates a scene object, adds a bunch of random particles to the scene, creates a <canvas> renderer and adds its viewport in the document.body element. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +