32 Commits
Author SHA1 Message Date
Mr.doob a35b35fde9 * examples/geometry/primitivessrc/extras/primitives
* THREE.Rectangle: `_x1`, ` _x2`, `_y1`, `_y2` ⟶ `_left`, `_right`, `_top`, `_bottom`
2010-11-12 04:02:30 +00:00
sole bf6db5a714 merging? 2010-11-05 00:41:20 +00:00
Mr.doobandsole 0ca8efd916 Fixed stats 2010-11-05 08:26:17 +08:00
Mr.doob 9a62d1173a Refactored ClickResolver to Ray and Projector.unprojectVector` working.
Unimpressive example added `interactive_spheres.html`
2010-11-04 03:35:08 +00:00
Mr.doob 6f51ce7e8d * Trying to make the interaction stuff work... 2010-10-30 01:39:08 +01:00
Mr.doob 3e5fed7104 * .blend wasn't supposed to get in.... 2010-10-29 04:16:40 +01:00
Mr.doob 4f1cb8f48f * Added point lights example 2010-10-29 04:00:11 +01:00
Mr.doob 7464f5ff97 * MeshBitmapUVMappingMaterial -> MeshBitmapMaterial. Second param is mode, which is THREE.MeshBitmapMaterialMode.UVMAPPING by default.
* Removed MeshFaceColorFillMaterial and MeshFaceColorStrokeMaterial
* Added MeshFaceMaterial ( it uses the face.material for that pass )
* CanvasRenderer and SVGRenderer per face material logic changed.
* SVGRenderer supports particles again.
* WebGLRenderer currently broken :/
* Code clean up
2010-10-27 08:49:00 +01:00
alteredq 36dc7212f8 Made Sphere mesh smoothing optional. 2010-10-21 01:17:58 +02:00
unknown 60c2354424 Added OBJ -> Three.js converter.
Added OBJ converter test example.

Modified Three.js to handle converted models:

 - extended WebGL renderer to use texturing
   - broke down model into multiple VBOs according to materials
   - textures are lazy created when images get loaded
     (converter takes care of resizing images to nearest power of 2
      dimensions using 2d canvas)

 - changed material array semantics in Mesh object
    - before: multiple materials were applied to all faces (broken in WebGL, needs multitexturing shader)
    - now: there is only single material per face, but one mesh can have faces with different materials

 - added per vertex normals (to get smooth shading in WebGL)
2010-10-18 11:33:32 +02:00
Mr.doob 647b4a57b8 * Added PointLight
* `CanvasRenderer` and `SVGRenderer` basic lighting support (`*ColorStroke`/`*ColorFill` only)
* `Renderer` > `Projector`. `CanvasRenderer`, `SVGRenderer` and `DOMRenderer` do not extend anymore
* Interactivity base code (hdi folder). To be refactored... ([mindlapse](http://github.com/mindlapse))
* Added `computeCentroids` method to `Geometry`
* Included `Stats.js` directly in the `/examples` folder to avoid the need of internet for playing around
2010-10-06 03:36:21 +01:00
mindlapseandMr.doob a89865bda8 3d onclick, see examples/hci_clickcube.html 2010-09-30 23:11:29 +08:00
Mr.doob e68109fdb2 - Clean up 2010-09-17 02:52:29 +01:00
Mr.doob 4af8f5406b - Fixed opacity being set to zero when null
- Added (mandatory) video example
- Restructured examples folder
2010-06-11 03:14:56 +01:00
Mr.doob ff72c6b766 - Color alpha is now 0-1 instead of 0-255 (following html's rgba() format) 2010-06-10 05:12:17 +01:00
Mr.doob 9a823c2f6b - Fixed opacity being ignored when setted to 0
- Added wireframe view on VR demo
2010-06-10 05:04:12 +01:00
Mr.doob 55e4bde5cd + TextureUVMappingMaterial > BitmapUVMappingMaterial
+ Expand UVs (this should fix the glitches)
2010-06-07 19:43:34 +01:00
Mr.doob c2916dbd07 - Added VR example 2010-06-07 05:03:24 +01:00
Mr.doob 90f54e2507 - CanvasRenderer expands screen space points (workaround for antialias gaps).
- CanvasRenderer supports TextureUVMappingMaterial.
- Moved UVs to Geometry.
- Minor clean up
2010-06-07 03:36:10 +01:00
Mr.doob 06c7ec335f - Added Camera3D.autoUpdateMatrix
- Added Object3D.autoUpdateMatrix
2010-06-05 21:16:16 +01:00
Mr.doob e98397cb5a + Added Line Object
+ Workaround for WebKit not supporting rgba() in SVG yet
+ Aesthetic changes on the readme file
2010-06-05 20:07:04 +01:00
Mr.doob 2a334e0862 Credit where credit is due. 2010-05-16 16:38:54 +01:00
Mr.doob a6e98d7e9a Removed Class.js dependency
Added THREE namespace
Camera.x -> Camera.position.x
Camera.target.x -> Camera.target.position.x
ColorMaterial -> ColorFillMaterial
FaceColorMaterial -> FaceColorFillMaterial
Materials are now multipass (use array)
Added ColorStrokeMaterial and FaceColorStrokeMaterial
geometry.faces.a are now indexes instead of links
2010-05-16 05:32:43 +01:00
Mr.doob 42a19ef7c7 Fixed stats 2010-05-12 10:16:59 -07:00
Mr.doob 106c77b9d0 Reverting 2010-05-01 15:36:37 +01:00
Paul BruntandMr.doob daf53d854d Now using projection matrix and particles are culled 2010-05-01 19:42:01 +08:00
Mr.doob 8d80942e27 SVGRenderer Particle support. CanvasRenderer context.setTransform(). Minor tweaks 2010-04-26 02:48:16 +01:00
Mr.doob c26bcab83d New cube screenshot 2010-04-25 11:43:52 +01:00
Mr.doob 64ec88fc92 Color tweaks 2010-04-24 23:03:34 +01:00
Mr.doob d7c890eab8 Matrix4 clean up. Workaround for Android's browser touch event bug. 2010-04-24 22:54:23 +01:00
Mr.doob 115f291aa6 Added instructions 2010-04-24 21:37:16 +01:00
Mr.doob 4f22f423b5 Fixed incorrect rotation matrix calculation. Particles examples clean up. Added Cube and Plane primitives. Added Cube geometry example. 2010-04-24 21:25:21 +01:00