28 Commits
Author SHA1 Message Date
alteredq 408c82d306 Got WebGLRenderer working again.
I had to resurrect parts of old code (keeping track of scene graph changes).

Good news: performance is great, new scene graph gains compound with buffers optimizations and non-array materials refactoring. Together we gained about 15% for rotating cubes performance test (pushing max to 2650 cubes at 60 fps).

Still broken with new scene graph: lod, skinning, collisions, AnaglyphWebGLRenderer, ParallaxBarrierWebGLRenderer, multi-canvas circle example.
2011-10-24 12:30:04 +02:00
Mr.doob 6b151b552e Merging with @alteredq's experimental branches. 2011-10-23 12:34:46 +02:00
alteredq 064138d826 Updated more examples. Got AnaglyphWebGLRenderer and CrosseyedWebGLRenderer working.
CrosseyedRenderer is a hack, camera must have target :S.
2011-10-05 03:25:02 +02:00
Mr.doob ad31ff1214 Fixed the rest of the examples.
Found out that CrosseyedWebGLRenderer probably wouldn't work for target-less cameras.
Something weird going on with `webgl_scene_test.html` and `webgl_scene_test_blender.html`. For some reason cubes dissapear.
2011-10-02 06:33:32 +02:00
alteredq db78ffe003 Some more Math.PI instead of magic numbers. 2011-09-25 20:19:08 +02:00
Mr.doob bbb65a768c Updated HTML of the rest of the examples. 2011-09-20 19:27:01 -07:00
Mr.doob 19d8261174 More examples clean up. 2011-09-20 18:31:13 -07:00
Mr.doob a940f05427 Updated examples with the new .add/.remove methods. 2011-09-05 23:16:56 +02:00
alteredq ca05c86fc5 Removed surprising bottleneck in WebGLRenderer.
I knew for loops iterating over properties were slower than numerical for loops but I didn't realize how bad it was.

Gained about 10 fps in performance test, and that was for for loop iterating over single property.

Also fixed broken examples with postprocessing.
2011-09-03 00:11:29 +02:00
alteredq 797530e4f7 Moved 2d filter shaders from ShaderUtils to ShaderExtras. 2011-08-31 13:16:49 +02:00
alteredq beeac6bc08 Updated text example to use new postprocessing system. 2011-08-30 21:44:32 +02:00
alteredq 495de75ff2 Added OrthoCamera.
Modified examples to use it, hacking projection matrix started to feel a bit dirty.
2011-08-29 10:34:18 +02:00
alteredq f45a70896b Added heuristics to text example for long side faces to use flat shading.
Also enabled antialiasing and disabled default postprocessing.
2011-08-24 05:46:16 +02:00
alteredq 76b8032e1a Updated text example with normals hack to be able to use smooth shading also for unbeveled geometry. 2011-08-24 04:37:34 +02:00
alteredq d60dc516a0 Updated TextGeometry example to have smooth shading for beveled text. 2011-08-22 17:25:05 +02:00
alteredq e95ca433b2 Merged latest zz85's shapes / curves / extruded geometry updates.
The only notable change I did was to rename ExtrudeGeometry's parameter "path" to "extrudePath" (as now there is also "bendPath").
2011-08-13 01:05:01 +02:00
zz85 3ddb5686ed Refactored extractAllPointsWithBend() to addWrapPath() with getAllProcessedPoints() 2011-08-11 15:37:37 +08:00
Mr.doob 0b910d7c31 * Simplified THREE.Color.
* Realised that canvas.context has a createPattern method which allows CanvasRenderer to support tiled textures \o/ (Examples where there is a CanvasRenderer and a WebGLRenderer at the same time may get errors because CanvasRenderer now uses texture.needsUpdate too).
2011-08-11 03:57:23 +02:00
zz85 6d6924a621 Add bend to webgl text example 2011-08-11 02:07:54 +08:00
alteredq c0d371be7c Merged with zz85's shape / path / extrude / bevel / text updates.
- moved 3d-only text parameters from TextPath into TextGeometry
- added safeguard for bevelSize and bevelThickness not affecting shape size if bevel is disabled
- updated text examples as now TextGeometry is not anymore centered
2011-07-28 19:19:52 +02:00
alteredq f962eb2ea6 bezel => bevel in TextGeometry and its example 2011-07-21 17:53:51 +02:00
alteredq 9596667876 Merged zz85's text bezel, extended text parameters API for bezel, added bezel to webgl text example. 2011-06-14 18:48:25 +02:00
Mr.doob bfdb10a85a Updated all examples so they use the renamed geometry classes. 2011-06-13 18:33:53 +02:00
zz85 02cd88bd91 patched fixes with alteredq and added support for gentilis 2011-06-06 21:29:13 -07:00
zz85 afe9d3b593 committing text fix changes not pushed :( 2011-06-06 20:45:49 -07:00
alteredq 44c0f34e2a Removed font from examples/js, now that fonts are in examples/fonts. 2011-06-07 00:48:10 +02:00
zz85 5c2e6ee5d7 saving before merge 2011-06-05 18:57:49 -07:00
zz85 f319a7214f WIP webgl text 2011-06-05 15:29:38 -07:00