Commit Graph

  • 406063d588 Added breaking of mesh into chunks of max 64K vertices (done in materials sorting step). alteredq 2010-11-02 19:12:05 +01:00
  • 1fae823482 Quick and dirty fix for OBJ converter demo: don't do backface culling to get back floor mesh that disappeared (turning it upside down gets ugly lighting). alteredq 2010-11-02 19:07:37 +01:00
  • 7c163bb9c1 In OBJ converter made smooth/flat shading configurable via command line parameter (-s smooth|flat). alteredq 2010-11-02 18:59:23 +01:00
  • 93c2ed9474 In OBJ converter added handling of cases where there are no materials specified in OBJ file (which is different from having null materials or no MTL file). alteredq 2010-11-02 12:02:37 +01:00
  • f30216ff8e Applying alteredq's CanvasRenderer fix re Ambient Light calculation to SVGRenderer. Mr.doob 2010-11-01 18:30:05 +00:00
  • a8ff77e1d4 Fixed ambient light computation in CanvasRenderer to get correct lighting when there is no ambient light specified in the scene. alteredq 2010-11-01 13:47:10 +01:00
  • 9d2aaf4e4c Synced with mrdoob's branch. alteredq 2010-11-01 13:12:18 +01:00
  • a919753328 * Clickresolver.js: Implemented blackpawn's point in triangle algos ( http://www.blackpawn.com/texts/pointinpoly/default.html ). Now works properly with Face3 too. Mr.doob 2010-11-01 11:13:52 +00:00
  • 038adb701f Merge remote branch 'upstream/master' Julian Walker 2010-11-01 03:28:15 -07:00
  • 8eb356db40 Now we just need to make sure geometry.computeCentroids() is called at the end of creating/modifying the geometry, otherwise things break... Mr.doob 2010-10-31 02:49:14 +00:00
  • daf2700ccb * Projector.js: Rather than calculating the screen space centrium of each face per render, seemed smarter to just project the precomputed centrium. Side effect: Polygon shaking is gone \o/ Mr.doob 2010-10-31 02:31:14 +00:00
  • 8e31bbb165 Synced with mrdoob's branch. alteredq 2010-10-31 03:07:31 +01:00
  • 7f0a42cce8 Merge remote branch 'alteredq/master' Mr.doob 2010-10-31 02:05:05 +00:00
  • 8ea9f2d107 Merge remote branch 'remotes/upstream/master' alteredq 2010-10-31 03:04:31 +01:00
  • b22bd9da2e Added face culling to WebGLRenderer (default is now backface culling on, front face is counter-clockwise). alteredq 2010-10-31 02:32:36 +01:00
  • f32fc45541 Added WebGL version of pointlights example (including Walt's head mesh with vertex normals). alteredq 2010-10-31 01:46:20 +02:00
  • cf58088c23 Merge remote branch 'alteredq/master' Mr.doob 2010-10-31 00:44:47 +01:00
  • b150a74755 Synced with mrdoob's branch. alteredq 2010-10-31 01:40:25 +02:00
  • 705a0ab687 updated examples to call scene.add instead of scene.addObject Mark DiMarco 2010-10-30 18:18:37 -05:00
  • 1c35d90fd7 Added handling of multiple lights to WebGLRenderer. alteredq 2010-10-31 00:45:04 +02:00
  • 05ba1a2b1c * Nicer looking orthographic projection example. Mr.doob 2010-10-30 19:18:01 +01:00
  • 8ee8c9baf9 * three.js: Fixed terrain example (was still using Scene.add()) Mr.doob 2010-10-30 05:19:44 +01:00
  • 69287b8d10 Merge remote branch 'upstream/master' Julian Walker 2010-10-29 21:18:59 -07:00
  • 5b1a64e747 * Matrix4.makeOrtho() fixed Mr.doob 2010-10-30 05:05:02 +01:00
  • 7eacf2ae0e * Fixed Matrix4.makeOrtho(). bottom - top -> top - bottom * Added camera_orthographic example. Mr.doob 2010-10-30 05:00:42 +01:00
  • c0d14df4a8 * Fixed examples that were still using scene.add() Mr.doob 2010-10-30 04:11:41 +01:00
  • 6f51ce7e8d * Trying to make the interaction stuff work... Mr.doob 2010-10-30 01:39:08 +01:00
  • d764c7980e Merge remote branch 'alteredq/master' Mr.doob 2010-10-29 16:40:43 +01:00
  • 129a128ec1 Cleaned up WebGLRenderer. Made Blinn-Phong shader work also in Firefox 4. alteredq 2010-10-29 13:35:31 +02:00
  • 45f7464793 Synced with mrdoob's branch. alteredq 2010-10-29 09:43:18 +02:00
  • 17641fed96 * Typo on point lights example link Mr.doob 2010-10-29 04:20:48 +01:00
  • 3e5fed7104 * .blend wasn't supposed to get in.... Mr.doob 2010-10-29 04:16:40 +01:00
  • 98693605e8 * Added point lights example Mr.doob 2010-10-29 04:15:00 +01:00
  • 4f1cb8f48f * Added point lights example Mr.doob 2010-10-29 03:57:11 +01:00
  • a0e9935a0f * Minor change to SVGRenderer Mr.doob 2010-10-28 21:48:32 +01:00
  • 1b1fb7affe * Code clean up (yuicompressor doesn't throw a single warning :D) and some reformating * Minor fixes (Geometry normal calculation) * Isolated Matrix3 code into Matrix3.js * README and TODO updated Mr.doob 2010-10-28 21:27:58 +01:00
  • 79ab4bf2e6 Merged with mrdoob's branch. Got WebGLRenderer working again :) alteredq 2010-10-28 19:35:13 +02:00
  • b6904f3d72 Added Blinn-Phong material for WebGLRenderer. alteredq 2010-10-27 21:16:11 +02:00
  • 71f96a5f1b Merge remote branch 'alteredq/master' Mr.doob 2010-10-27 17:50:40 +01:00
  • 5d7e32a3af Changed camera matrix update in WebGLRenderer to happen just once per frame, no need to do it with every object. alteredq 2010-10-27 10:27:59 +02:00
  • 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 Mr.doob 2010-10-27 08:49:00 +01:00
  • 87e0d754bd Premultiplied alpha in WebGLRenderer for MeshColorFillMaterial and MeshColorStrokeMaterial (to get closer to CanvasRenderer look). alteredq 2010-10-26 15:22:31 +02:00
  • 277d117b3d Refactored multimaterials to also work with non-textured models composed from multiple material groups. alteredq 2010-10-26 12:18:30 +02:00
  • 3db0c8777d Fixed broken normals in Blender 2.54 exporter. alteredq 2010-10-26 01:19:08 +02:00
  • 9bf3db34d3 Updated WebGLRenderer to use light intensity. alteredq 2010-10-25 14:00:49 +02:00
  • a0e3f4068f Changed exported JS class name in OBJ converter to use the same convention as Blender exporter (use exact case of JS filename, no capitalization). alteredq 2010-10-24 21:13:33 +02:00
  • 4a7082165a Synced with mrdoob's branch. alteredq 2010-10-24 19:53:36 +02:00
  • 1de8e6fd2a Disabled point light, now that it works also in WebGL, not to have red people :). alteredq 2010-10-24 19:34:03 +02:00
  • 2f1bf335c6 Forgot to build single file libraries and bump up version number. alteredq 2010-10-24 18:55:31 +02:00
  • ca261ddca5 Added point light / fixed directional light in WebGLRenderer / added light test example. alteredq 2010-10-24 18:52:42 +02:00
  • fdb1ee5ff2 Added inversion of 3x3 rotation submatrix. alteredq 2010-10-24 16:44:19 +02:00
  • 369a8661dc * WebGLRenderer: update camera and object matrices if autoUpdateMatrix == true Mr.doob 2010-10-23 16:57:10 +02:00
  • 836f1b878f * CanvasRenderer light per particle and lines Mr.doob 2010-10-23 02:22:52 +02:00
  • 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). Mr.doob 2010-10-22 14:16:26 +02:00
  • 8a8dd0d9cb Changed mesh JS class name generator in Blender exporter to use cross-platform path parsing. alteredq 2010-10-22 03:39:37 +02:00
  • 31644e179b Added link to OBJ converter script at GitHub to JS template. alteredq 2010-10-22 03:19:20 +02:00
  • 47a4c91ebc Merge remote branch 'remotes/upstream/master' alteredq 2010-10-22 03:14:27 +02:00
  • 69d93317c8 Forgot to build single file libraries. alteredq 2010-10-22 02:49:58 +02:00
  • ecae266e8a Added mesh stroke materials (wireframe) to WebGLRenderer. alteredq 2010-10-22 02:46:56 +02:00
  • 4da30fb353 * Blender 2.54 exporter: Added computeNormal and computeCentroids logic. Mr.doob 2010-10-22 00:02:19 +02:00
  • b61e4a453f * Added AUTHORS file * Updated TODO Mr.doob 2010-10-21 17:05:15 +02:00
  • cb76523b31 * Added Blender 2.54 exporter. (Crossing fingers so they don't change the scripting system again...) Mr.doob 2010-10-21 14:11:11 +02:00
  • ce000d482f Merged remote branch 'upstream/master' (original mrdoob's version) alteredq 2010-10-21 02:00:52 +02:00
  • dde831bf6f Extended CanvasRenderer to be able to handle decals (MeshBitmapUVMappingMaterials as secondary materials). alteredq 2010-10-21 01:38:29 +02:00
  • 36dc7212f8 Made Sphere mesh smoothing optional. alteredq 2010-10-21 01:17:58 +02:00
  • db7003e88a * CanvasRenderer and SVGRenderer calculating light only when needed. Mr.doob 2010-10-20 05:14:45 +01:00
  • 0f69c71924 Experiment to get backwards compatibility with the original meaning of materials array in Mesh (= extra materials are drawn for whole mesh). alteredq 2010-10-20 01:23:56 +02:00
  • 29be1febb0 Added handling of null materials (coming from Blender exporter when mesh has no assigned material). alteredq 2010-10-19 13:15:27 +02:00
  • 32133b352b Fixed crash bug when parsing quad faces. alteredq 2010-10-19 12:06:36 +02:00
  • 396d8d1cec Added male model to OBJ converter example. alteredq 2010-10-18 14:19:39 +02:00
  • 60c2354424 Added OBJ -> Three.js converter. unknown 2010-10-18 11:33:32 +02:00
  • 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 Mr.doob 2010-10-06 03:36:21 +01:00
  • a89865bda8 3d onclick, see examples/hci_clickcube.html mindlapseandMr.doob 2010-09-29 13:23:49 +08:00
  • 7c94809ed2 Using projection * view * obj matrix to transform vertices in Renderer instead of transforming twice (once by view * obj and once by projection). Julian WalkerandMr.doob 2010-09-29 06:43:07 +08:00
  • 930faff1ef Matrix4.lookAt now initializes W row (omitted previously). Julian WalkerandMr.doob 2010-09-29 06:24:14 +08:00
  • 286402351b Spaces -> tabs in WebGLRenderer.js Julian WalkerandMr.doob 2010-09-29 06:14:31 +08:00
  • 9ba951a14b Using projection * view * obj matrix to transform vertices in Renderer instead of transforming twice (once by view * obj and once by projection). Julian Walker 2010-09-28 15:43:07 -07:00
  • 40e1f7d20e Merge remote branch 'upstream/master' Julian Walker 2010-09-28 15:28:44 -07:00
  • 101ba4487b Matrix4.lookAt now initializes W row (omitted previously). Julian Walker 2010-09-28 15:24:14 -07:00
  • d82885c3c5 Spaces -> tabs in WebGLRenderer.js Julian Walker 2010-09-28 15:14:31 -07:00
  • 0c6219b43f * Made vector methods chainable * Added getCenter to Face4 Ben Nolan 2010-09-27 13:04:52 +13:00
  • 5ce7a10bbb - Added TODO - Minor tweaks Mr.doob 2010-09-21 06:59:06 +01:00
  • c88fa50a4c Add Matrix4.rotationAxisAngleMatrix philogbandMr.doob 2010-09-18 01:07:15 +08:00
  • c8aacd8cdc Add Color methods to prototype object. philogbandMr.doob 2010-09-18 00:52:12 +08:00
  • 4074b8097f Ignore .project extensions philogbandMr.doob 2010-09-18 00:43:22 +08:00
  • 14b5a3ebb5 - README tweaks Mr.doob 2010-09-17 03:06:25 +01:00
  • e68109fdb2 - Clean up Mr.doob 2010-09-17 02:52:29 +01:00
  • 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 Nicolas Garcia BelmonteandMr.doob 2010-09-09 17:41:48 +08:00
  • ad73c981ee * Enable Scene light object management * Add lighting code in the scene rendering loop Nicolas Garcia BelmonteandMr.doob 2010-09-09 17:20:44 +08:00
  • d342239c4a Added light objects Nicolas Garcia BelmonteandMr.doob 2010-09-09 17:01:20 +08:00
  • 24005fc1e1 Added basic lighting shader code Nicolas Garcia BelmonteandMr.doob 2010-09-09 16:47:01 +08:00
  • a53ad5a79a Added normals to WebGLRenderer Nicolas Garcia BelmonteandMr.doob 2010-09-09 16:42:52 +08:00
  • 78561a35e6 Fixed the computeNormals method. Nicolas Garcia BelmonteandMr.doob 2010-09-09 16:30:41 +08:00
  • 20be01f159 Added transpose method to Matrix4 Nicolas Garcia BelmonteandMr.doob 2010-09-09 16:27:54 +08:00
  • a319fe3c7b Added a clone of the geometry_cube example working with the WebGL renderer. Nicolas Garcia BelmonteandMr.doob 2010-09-03 17:52:04 +08:00
  • 636d108e4b WebGLRenderer fixes: Nicolas Garcia BelmonteandMr.doob 2010-09-03 17:49:18 +08:00
  • ab1d219eda Added flatten method to Matrix4 to be used in the WebGLRenderer. Nicolas Garcia BelmonteandMr.doob 2010-09-03 17:48:24 +08:00
  • d8c093c030 No files changed here. Nicolas Garcia BelmonteandMr.doob 2010-09-03 17:44:07 +08:00
  • 216b4eeee2 * Workaround for Opera bug (clearRect not working with context with negative scale) * Additional Matrix4 and Vector3 methods Mr.doob 2010-08-21 02:58:07 +01:00
  • 010f5829e6 - Added Matrix4.multiplyScalar, Matrix4.determinant and Matrix4.makeInvert Mr.doob 2010-08-02 05:50:59 +01:00