1. 29 10月, 2010 3 次提交
  2. 28 10月, 2010 1 次提交
    • A
      Added Blinn-Phong material for WebGLRenderer. · b6904f3d
      alteredq 提交于
      In Chrome it looks more or less ok, but it has some problem in Firefox 4 (with some camera angles there are black areas around edges).
      
      Also updated Python builder scripts and examples to include this new material.
      b6904f3d
  3. 27 10月, 2010 1 次提交
    • M
      * MeshBitmapUVMappingMaterial -> MeshBitmapMaterial. Second param is mode,... · 7464f5ff
      Mr.doob 提交于
      * 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
      7464f5ff
  4. 26 10月, 2010 1 次提交
    • A
      Refactored multimaterials to also work with non-textured models composed from... · 277d117b
      alteredq 提交于
      Refactored multimaterials to also work with non-textured models composed from multiple material groups.
      
      Old version was doing massive overdraw (whole mesh was drawn for each material).
      
      Even current solution is still quite messy: there is a different behavior for stroke and fill materials (when used as secondary materials).
      
      Stroke materials are applied to the complete mesh (as most common use case seems to be wireframe) while fill materials now apply only to faces within single material group (when "decalIndex" property of secondary fill material is set).
      277d117b
  5. 25 10月, 2010 1 次提交
  6. 23 10月, 2010 2 次提交
  7. 22 10月, 2010 1 次提交
  8. 21 10月, 2010 1 次提交
    • A
      Extended CanvasRenderer to be able to handle decals... · dde831bf
      alteredq 提交于
      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.
      dde831bf
  9. 20 10月, 2010 1 次提交
  10. 18 10月, 2010 2 次提交
    • A
      Added male model to OBJ converter example. · 396d8d1c
      alteredq 提交于
      396d8d1c
    • U
      Added OBJ -> Three.js converter. · 60c23544
      unknown 提交于
      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)
      60c23544
  11. 06 10月, 2010 1 次提交
    • M
      * Added `PointLight` · 647b4a57
      Mr.doob 提交于
      * `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
      647b4a57
  12. 21 9月, 2010 1 次提交
  13. 17 9月, 2010 1 次提交
  14. 21 8月, 2010 1 次提交
  15. 02 8月, 2010 1 次提交
  16. 25 7月, 2010 1 次提交
  17. 24 7月, 2010 2 次提交
  18. 22 7月, 2010 1 次提交
  19. 21 7月, 2010 1 次提交
  20. 19 7月, 2010 2 次提交
  21. 17 7月, 2010 3 次提交
  22. 14 7月, 2010 4 次提交
    • M
      - Clean up · 8e5c8deb
      Mr.doob 提交于
      8e5c8deb
    • P
      Core performance improvements through shared props · 2b0ea54a
      philogb 提交于
      Old Vector and Matrix constructor functions would create all methods and
      make assignments with each call. A lot of speed-ups can be made by using
      shared properties through the prototype chain. Since methods and
      initialized properties are shared among all instances they're only
      created once.
      
      Some tests can be seen at examples/performance-test.html
      
      Some results:
      
          Chrome
      
          //6.4 times faster
          performance-test.html:25 Vector2 x 5000000: 213ms
          performance-test.html:30 Vector2Orig x 5000000: 1366ms
      
          //8.3 times faster
          performance-test.html:37 Vector3 x 5000000: 241ms
          performance-test.html:42 Vector3Orig x 5000000: 2015ms
      
          //3.8 times faster
          performance-test.html:49 Vector4 x 5000000: 278ms
          performance-test.html:54 Vector4Orig x 5000000: 1059ms
      
          //7.5 times faster
          performance-test.html:61 Matrix4 x 5000000: 937ms
          performance-test.html:66 Matrix4Orig x 5000000: 7004ms
      
          Firefox
      
          //6.8 times faster
          Vector2 x 50000: 45ms
          Vector2Orig x 50000: 307ms
      
          //11.5 times faster
          Vector3 x 50000: 48ms
          Vector3Orig x 50000: 550ms
      
          //3.8 times faster
          Vector4 x 50000: 61ms
          Vector4Orig x 50000: 234ms
      
          //9.4 times faster
          Matrix4 x 50000: 199ms
          Matrix4Orig x 50000: 1878ms
      
      where "Orig" are old versions of the objects.
      
      Running these tests multiple times can yeild different results due to
      browser cache. However the results are always kind of similar in terms
      of speedup.
      2b0ea54a
    • M
      - Added three_debug.js (Renders some debug data) · f62b6e98
      Mr.doob 提交于
      f62b6e98
    • M
  23. 12 7月, 2010 3 次提交
  24. 07 7月, 2010 1 次提交
  25. 04 7月, 2010 1 次提交
  26. 23 6月, 2010 2 次提交