Commit Graph
22 Commits
Author SHA1 Message Date
Mr.doob 754aebf84a Reverted Detector.js as Chrome's issue seems to be fixed now. 2011-03-26 12:42:16 +00:00
alteredq 633276ddd8 Quick fix for Detector that got broken with latest Chrome canary.
For some reason Chrome canary 12.0.713.0 doesn't have "window.WebGLRenderingContext".
2011-03-25 17:40:56 +01:00
Mr.doob ae80b2b894 REVISION ++
Updated builds and README.
2011-03-22 18:58:06 +00:00
alteredq 4c59647907 Added FileAPI to Detector.
Also for the moment reverted autoupdate of canvas based textures. This breaks things and proper fix seems to require more efforts :(
2011-03-09 02:45:52 +01:00
alteredq c61f89ba14 Brought back bloom.
Also updated GUI-DAT (didn't help with recent Chrome compositing bugs, though this is Chrome Windows issue), added FileAPI to Detector and fixed aspect ratio bug in WebGLRenderer.
2011-03-08 17:33:34 +01:00
alteredq cf2e8c1bbf Refactored everything to use CamelCase naming for properties. Plus some smaller fixes here and there.
Went through all examples, all should work.

JSON files exported from Blender / converted from OBJ files still use underscored property names internally. I don't know, should these also be changed?
2011-02-28 14:52:04 +01:00
Mr.doob 339384f209 Tweaked RequestAnimationFrame.js and Detector.js. 2011-02-27 05:05:41 +00:00
alteredq 7415759392 Added 3d sound support plus example.
Thanks to @mikaelemtinger ;)
2011-02-25 09:08:15 +01:00
alteredq 3e2f4f7cc5 Merged with mrdoob's branch.
Also got uqbiquity working and fixed ugly globals bug in WebGLRenderer. Again we missed it because of consistent naming ;)
2011-02-24 01:31:33 +01:00
alteredq cff95a119c Textures are now updateable.
That was much tougher than expected. No wonder other WebGL video demos around the web are broken.

Firefox OpenGL / ANGLE and Chrome OpenGL were ok, getting it to work in Chrome ANGLE was rather tricky.

Please report if something got broken. I tried to go through all textured examples but I may have missed something.

If you want to refresh texture on WebGL side, you just set "texture.needsUpdate" flag (if you use Loader or ImageUtils.loadTexture / loadTextureCube everything is taken care of).

Flag has to be set also for canvas-based textures, sorry no escaping this :(. I tried and it lead to ugly problems (e.g. AO minecraft demo mixes several asynchronously loaded and generated images into one texture, with autodetect always something was broken).

"needsUpdate" should work also on cube textures, though it's not tested yet (also there I didn't put hack for Chrome ANGLE).
2011-02-23 23:43:32 +01:00
Mr.doob fef3c084b1 Changed build setup:
build/Three.js - Includes all renderers + extras
	build/custom/ThreeCanvas.js - Canvas renderer only
	build/custom/ThreeDOM.js - DOM renderer only
	build/custom/ThreeSVG.js - SVG renderer only
	build/custom/ThreeWebGL.js - WebGL renderer only
	build/custom/ThreeExtras.js - Extras only

Moved `THREE.Detector.js` to `examples/js/Detector.js`.

Updated examples to reflect these changes.
2011-02-23 12:35:31 +00:00
Mr.doob a4a8f184c6 src/objects/Object3D.jssrc/core/Objects3D.js 2011-02-22 23:26:19 +00:00
Mr.doob 405b72c200 Simpler RequestAnimationFrame.js 2011-02-22 18:16:31 +00:00
alteredq 408fad1905 Added depth-of-field example. 2011-02-22 06:25:07 +01:00
Mr.doob a4ee822b10 Easier to understand RequestAnimationFrame setup. 2011-02-21 20:39:11 +00:00
Mr.doob 041054283a Messing with a new terrain generator demo. 2010-12-29 03:22:30 +00:00
Mr.doob 2a8abb5531 Implemented gero3 Rectangle optimisations. 2010-12-10 11:04:51 +00:00
alteredq 1053ab2444 Made WebGL terrain demo work in Firefox 4.
Firefox doesn't like Typed Array constructors without explicit sizes.

Also in Firefox there were some weird artefacts in Perlin noise when using Int8Array (patterns were repeated across diagonal lines).
2010-12-07 19:50:40 +01:00
Mr.doob 4290307b48 Optimised WebGL terrain demo. 2010-12-07 13:33:20 +00:00
Mr.doob b449fdf5a8 Added a variation of the interactive example (using Tween.js) 2010-11-16 13:35:47 +00:00
Mr.doob 6f51ce7e8d * Trying to make the interaction stuff work... 2010-10-30 01:39:08 +01:00
Mr.doob 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
2010-10-06 03:36:21 +01:00