1. 20 2月, 2011 2 次提交
  2. 19 2月, 2011 2 次提交
    • A
      Added Ribbon object. · e151ff39
      alteredq 提交于
      It provides a lean way how to render TRIANGLE_STRIP primitives: needs just n+2 vertices for n triangles (one Ribbon = one strip). There are no faces, no indices, everything is rendered in one simple drawArray call.
      
      Vertex colors are supported, normals not yet.
      e151ff39
    • A
      More refactoring and optimizations. · 313ce3ed
      alteredq 提交于
      - removed unnecessary normal matrix computation in hierarchies (this is already done in renderer)
      - removed unnecessary enabling of attribute arrays in every frame (it's enough to do it when shader program is created)
      - depth test is now only set if it changed
      313ce3ed
  3. 18 2月, 2011 1 次提交
    • A
      A lot of bugfixing and refactoring. · 2ecbe2de
      alteredq 提交于
      - getters/setters are no more in Vector3
        - object hierarchies thus don't use "isDirty"
        - this was completely killing performance for anything that was touching a lot of Vector3 like creation of meshes and dynamic buffers
        - even without this, performance of hierarchies went up (a lot)
      
      - objects do not get passed renderer anymore
        - camera was almost also removed, but this is useful for LOD (though there may be some cleaner way to do this?)
      
      - material ids are now unified, this makes "geometry.sortFacesByMaterial" faster (thus scene init / GUI blocking is shorter)
      
      - all WebGL examples should work now (render-to-texture has weird lights and in some camera control feels different)
      
      - CanvasRender still broken, despite many efforts :(
         - currently only points and lines work, faces don't show up. I think this may need assistance from mrdoob.
      2ecbe2de
  4. 17 2月, 2011 4 次提交
  5. 15 2月, 2011 4 次提交
  6. 14 2月, 2011 6 次提交
  7. 13 2月, 2011 3 次提交
    • A
      Added centralized message for non-WebGL-compatible browser to majority of examples. · 29cf97ee
      alteredq 提交于
      That was painful; hopefully since now it should be easier to have it in every WebGL example.
      
      It's enough to add one line (ideally as the first thing that gets executed):
      
          if ( ! THREE.Supports.webgl ) THREE.Supports.addGetWebGLMessage();
      
      This will add message box with default styling centered near top of the window. Optional parameters "parent" and "id" can be specified for further customization and integration with the document, also message DOM element is returned for easier access.
      
          var messageElement = THREE.Supports.addGetWebGLMessage( { parent: container, id: "my_message" } );
      
      By default, message is added to document.body and has id "oldie" (can be styled with CSS).
      29cf97ee
    • A
      Fixed broken WebGL support detection. · 8e2f8c8b
      alteredq 提交于
      Created "THREE.Supports" object, which should centralize this stuff. So far it detects <canvas>, WebGL and WebWorkers; later it could detect for example GPU capabilities.
      
      Not sure about name or location, but it's pretty tiring go through all examples when something changes, so it should be somewhere in the library.
      
      Code duplication is bad: even html snippets with error message should be centralized somewhere, so that when new browsers arrive we wouldn't have to keep changing them in many places.
      8e2f8c8b
    • A
      Added glow to lines vertex color example. · 12fb60f1
      alteredq 提交于
      12fb60f1
  8. 12 2月, 2011 11 次提交
  9. 11 2月, 2011 1 次提交
  10. 10 2月, 2011 2 次提交
  11. 09 2月, 2011 1 次提交
  12. 08 2月, 2011 3 次提交