1. 29 10月, 2010 2 次提交
    • M
      * Code clean up (yuicompressor doesn't throw a single warning :D) and some reformating · 1b1fb7af
      Mr.doob 提交于
      * Minor fixes (Geometry normal calculation)
      * Isolated Matrix3 code into `Matrix3.js`
      * README and TODO updated
      1b1fb7af
    • A
      Merged with mrdoob's branch. Got WebGLRenderer working again :) · 79ab4bf2
      alteredq 提交于
      Changed OBJ -> Three.js converter to use new materials system (eventual old models need to be reconverted).
      
      Limitations:
      
        - one use case is now much slower
          - when a mesh has each face with different color (e.g. polyfield in examples/test.html)
          - before this used FaceColorFill material and in WebGLRenderer it was rendered fast with color attribute array
          - now when FaceColorFill material is gone, each face gets own VBO :(
      
        - material sorting uses Materials "toString" methods for hashing, so it's very important to keep these in a good shape
      79ab4bf2
  2. 28 10月, 2010 2 次提交
  3. 27 10月, 2010 2 次提交
  4. 26 10月, 2010 3 次提交
    • A
      Premultiplied alpha in WebGLRenderer for MeshColorFillMaterial and... · 87e0d754
      alteredq 提交于
      Premultiplied alpha in WebGLRenderer for MeshColorFillMaterial and MeshColorStrokeMaterial (to get closer to CanvasRenderer look).
      87e0d754
    • 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
    • A
      Fixed broken normals in Blender 2.54 exporter. · 3db0c877
      alteredq 提交于
      There were two problems:
      
      - vertices were in a different coordinate system than normals
      - generated JS code was not properly handling normals with 0-sized components
      3db0c877
  5. 25 10月, 2010 6 次提交
  6. 24 10月, 2010 1 次提交
  7. 23 10月, 2010 2 次提交
  8. 22 10月, 2010 7 次提交
  9. 21 10月, 2010 5 次提交
  10. 20 10月, 2010 2 次提交
  11. 19 10月, 2010 2 次提交
  12. 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
  13. 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
  14. 30 9月, 2010 1 次提交
  15. 29 9月, 2010 2 次提交