2431 Commits
Author SHA1 Message Date
alteredq fdb1ee5ff2 Added inversion of 3x3 rotation submatrix.
Added rudimentary 3x3 matrix class (just transpose, as this is needed for normal matrix).
2010-10-24 16:44:19 +02:00
Mr.doob 369a8661dc * WebGLRenderer: update camera and object matrices if autoUpdateMatrix == true 2010-10-23 16:57:10 +02:00
Mr.doob 836f1b878f * CanvasRenderer light per particle and lines 2010-10-23 02:22:52 +02:00
Mr.doob bd2dc37e50 (alteredq fix)
Changed mesh JS class name generator in Blender exporter to use cross-platform path parsing.
Old version was generating broken class names on Windows (full path was included).
2010-10-22 14:16:26 +02:00
alteredq 8a8dd0d9cb Changed mesh JS class name generator in Blender exporter to use cross-platform path parsing.
Old version was generating broken class names on Windows (full path was included).
2010-10-22 03:39:37 +02:00
alteredq 31644e179b Added link to OBJ converter script at GitHub to JS template. 2010-10-22 03:19:20 +02:00
alteredq 47a4c91ebc Merge remote branch 'remotes/upstream/master' 2010-10-22 03:14:27 +02:00
alteredq 69d93317c8 Forgot to build single file libraries. 2010-10-22 02:49:58 +02:00
alteredq ecae266e8a Added mesh stroke materials (wireframe) to WebGLRenderer.
Added multipass multimaterials to WebGLRenderer.

Refactored WebGLRenderer shader to become proto-mini-ubershader (untershader :).

Line width is currently not set properly on Chrome in Windows:

http://code.google.com/p/chromium/issues/detail?id=60124
2010-10-22 02:46:56 +02:00
Mr.doob 4da30fb353 * Blender 2.54 exporter: Added computeNormal and computeCentroids logic. 2010-10-22 00:02:19 +02:00
Mr.doob b61e4a453f * Added AUTHORS file
* Updated TODO
2010-10-21 17:05:15 +02:00
Mr.doob cb76523b31 * Added Blender 2.54 exporter. (Crossing fingers so they don't change the scripting system again...) 2010-10-21 14:11:11 +02:00
alteredq ce000d482f Merged remote branch 'upstream/master' (original mrdoob's version) 2010-10-21 02:00:52 +02:00
alteredq dde831bf6f Extended CanvasRenderer to be able to handle decals (MeshBitmapUVMappingMaterials as secondary materials).
For decals you need to set "decalIndex" property of the material (corresponding to materials index of the original mesh UV material).

Added multimaterials example.

Fixed forgotten sphere smoothing in OBJ converter example.
2010-10-21 01:38:29 +02:00
alteredq 36dc7212f8 Made Sphere mesh smoothing optional. 2010-10-21 01:17:58 +02:00
Mr.doob db7003e88a * CanvasRenderer and SVGRenderer calculating light only when needed. 2010-10-20 05:14:45 +01:00
alteredq 0f69c71924 Experiment to get backwards compatibility with the original meaning of materials array in Mesh (= extra materials are drawn for whole mesh).
Limitations:
 - works just in CanvasRenderer
 - doesn't work for MeshBitmapUVMappingMaterial as secondary material
2010-10-20 01:23:56 +02:00
alteredq 29be1febb0 Added handling of null materials (coming from Blender exporter when mesh has no assigned material). 2010-10-19 13:15:27 +02:00
alteredq 32133b352b Fixed crash bug when parsing quad faces. 2010-10-19 12:06:36 +02:00
alteredq 396d8d1cec Added male model to OBJ converter example. 2010-10-18 14:19:39 +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
Julian WalkerandMr.doob 7c94809ed2 Using projection * view * obj matrix to transform vertices in Renderer instead of transforming twice (once by view * obj and once by projection). 2010-09-29 07:19:32 +08:00
Julian WalkerandMr.doob 930faff1ef Matrix4.lookAt now initializes W row (omitted previously). 2010-09-29 07:19:32 +08:00
Julian WalkerandMr.doob 286402351b Spaces -> tabs in WebGLRenderer.js 2010-09-29 07:19:32 +08:00
Julian Walker 9ba951a14b Using projection * view * obj matrix to transform vertices in Renderer instead of transforming twice (once by view * obj and once by projection). 2010-09-28 15:43:07 -07:00
Julian Walker 40e1f7d20e Merge remote branch 'upstream/master' 2010-09-28 15:28:44 -07:00
Julian Walker 101ba4487b Matrix4.lookAt now initializes W row (omitted previously). 2010-09-28 15:24:14 -07:00
Julian Walker d82885c3c5 Spaces -> tabs in WebGLRenderer.js 2010-09-28 15:14:31 -07:00
Ben Nolan 0c6219b43f * Made vector methods chainable
* Added getCenter to Face4
2010-09-27 13:04:52 +13:00
Mr.doob 5ce7a10bbb - Added TODO
- Minor tweaks
2010-09-21 06:59:06 +01:00
philogbandMr.doob c88fa50a4c Add Matrix4.rotationAxisAngleMatrix 2010-09-18 23:08:08 +08:00
philogbandMr.doob c8aacd8cdc Add Color methods to prototype object. 2010-09-18 23:08:08 +08:00
philogbandMr.doob 4074b8097f Ignore .project extensions 2010-09-18 23:08:08 +08:00
Mr.doob 14b5a3ebb5 - README tweaks 2010-09-17 03:06:25 +01:00
Mr.doob e68109fdb2 - Clean up 2010-09-17 02:52:29 +01:00
Nicolas Garcia BelmonteandMr.doob 10681d6684 * Bug Fix: Matrix4.makeInvert was calling a non existent scale method. Replaced with multiplyScalar.
* Bug Fix: DirectionalLight wasn't normalizing the direction vector.
 * Added lights to the scene for test.html
2010-09-09 18:47:39 +08:00
Nicolas Garcia BelmonteandMr.doob ad73c981ee * Enable Scene light object management
* Add lighting code in the scene rendering loop
2010-09-09 18:47:39 +08:00
Nicolas Garcia BelmonteandMr.doob d342239c4a Added light objects 2010-09-09 18:47:39 +08:00
Nicolas Garcia BelmonteandMr.doob 24005fc1e1 Added basic lighting shader code 2010-09-09 18:47:38 +08:00
Nicolas Garcia BelmonteandMr.doob a53ad5a79a Added normals to WebGLRenderer 2010-09-09 18:47:38 +08:00
Nicolas Garcia BelmonteandMr.doob 78561a35e6 Fixed the computeNormals method. 2010-09-09 18:47:38 +08:00
Nicolas Garcia BelmonteandMr.doob 20be01f159 Added transpose method to Matrix4 2010-09-09 18:47:37 +08:00
Nicolas Garcia BelmonteandMr.doob a319fe3c7b Added a clone of the geometry_cube example working with the WebGL renderer. 2010-09-03 20:54:55 +08:00
Nicolas Garcia BelmonteandMr.doob 636d108e4b WebGLRenderer fixes:
* Added float precision in shader code to shaders compile now.
 * Changed occurrences of WebGL typed Arrays and UnsignedShort typed arrays to new array types
2010-09-03 20:54:54 +08:00
Nicolas Garcia BelmonteandMr.doob ab1d219eda Added flatten method to Matrix4 to be used in the WebGLRenderer. 2010-09-03 20:54:54 +08:00
Nicolas Garcia BelmonteandMr.doob d8c093c030 No files changed here. 2010-09-03 20:54:34 +08:00
Mr.doob 216b4eeee2 * Workaround for Opera bug (clearRect not working with context with negative scale)
* Additional `Matrix4` and `Vector3` methods
2010-08-21 02:58:07 +01:00
Mr.doob 010f5829e6 - Added Matrix4.multiplyScalar, Matrix4.determinant and Matrix4.makeInvert 2010-08-02 05:50:59 +01:00