Commit Graph
32 Commits
Author SHA1 Message Date
Mr.doob 6b151b552e Merging with @alteredq's experimental branches. 2011-10-23 12:34:46 +02:00
alteredq c07919529e Made FirstPersonControls work. Fixed more examples to work with the new camera system. 2011-10-04 21:10:20 +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
alteredq e298ac6814 Renamed MeshShaderMaterial => ShaderMaterial 2011-09-12 19:17:20 +02:00
alteredq 0959969fc3 Added skin rendering example plus some postprocessing fixes to make it work. 2011-09-07 16:39:20 +02:00
Mr.doob a940f05427 Updated examples with the new .add/.remove methods. 2011-09-05 23:16:56 +02:00
alteredq 59bfd81150 Added MaskPass to postprocessing and clearTarget to WebGLRenderer.
Masking was real pain to get working with multiple render targets :/.

Unfortunately this introduced dependencies on MaskPass.js and ShaderPass.js even for use cases that do not use masking. Bah, will need to figure out some better way for deployment.
2011-09-01 17:41:56 +02:00
alteredq 20fae814e7 Refactored postprocessing to use double buffering.
Cause everywhere there are warnings about not writing to the same texture which is also being read. Curiously enough this didn't make problems so far (save for mysterious lines when doing "heat" effect in ro.me).
2011-09-01 00:19:31 +02:00
alteredq 1cbcc5beab Optimized postprocessing example.
No need to use full-screen render targets for quarter-screen images (still keeping big one for geometry pass to emulate antialiasing).

Also added check for existence of normalMatrix in shader when setting uniforms in WebGLRenderer. Null was being sent to GPU for materials that don't use normals (e.g particles).
2011-08-31 15:55:58 +02:00
alteredq 797530e4f7 Moved 2d filter shaders from ShaderUtils to ShaderExtras. 2011-08-31 13:16:49 +02:00
alteredq 10e12a8305 Added generic ShaderPass. Removed SepiaPass, ScreenPass, VignettePass. Added bleachbypass shader. Simplified multi-composer pipeline in postprocessing example. 2011-08-31 01:06:26 +02:00
alteredq 3a5d02cc39 Added vignette shader / effect. Updated postprocessing example. 2011-08-30 18:59:00 +02:00
alteredq 093bbb1cb9 Added dot screen shader / effect. Extended postprocessing demo. Fixed viewport bug for render targets. 2011-08-30 16:48:47 +02:00
alteredq 32f0f884bd Added sepia shader / effect. 2011-08-30 12:38:32 +02:00
alteredq ff09a492bb Refactored postprocessing out of examples into own set of classes.
Not sure yet about names and location of files.
2011-08-29 23:35:36 +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
Mr.doob 176d0f2884 Merging with @alteredq's branch. 2011-07-03 12:56:50 +02:00
Mr.doob bfdb10a85a Updated all examples so they use the renamed geometry classes. 2011-06-13 18:33:53 +02:00
Mr.doob 76e7ea3461 Added namespace to all the objects that missed it (geometries, uniforms, etc)
WebGLRenderer antialias is off by default (considering Firefox doesn't support it...)
Formatting clean up here and there
2011-04-09 12:38:39 +01:00
Mr.doob e8847848ad Merging with alteredq's branch. 2011-04-09 08:22:59 +01:00
Mr.doob 8af4dd49c1 WebGLRenderer now uses material.transparent to determine whether a material is transparent or not.
Moved materials/RenderTarget.js ⟶ renderer/WebGLRenderTarget.js
2011-03-31 07:22:44 +01:00
alteredq 49872b2afd Disabled antialias for examples that use full-screen postprocessing.
It doesn't have effect there anyway as scene is rendered to FBO without multisampling.

Turning antialiasing off here didn't have much effect on performance though (unlike for particles).
2011-03-27 21:19:49 +02:00
alteredq 3b6b3dc578 Made more examples working. 2011-03-21 07:10:12 +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 2294094adf Cleaned up a bit WebGLRenderer.
Clearing API for rendering to RenderTarget is now flipped: before forced clearing of render target was default, now no clearing is default.

New way of doing things saves one extra duplicitous clear call when switching render targets (like when doing postprocessing).

(doing documentation is indeed turning out to be useful)
2011-03-06 19:39:32 +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
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 9297fb975e All examples now use RequestAnimationFrame.js (pheww!) 2011-02-22 04:45:38 +00:00
Mr.doob 4912f59cc6 Compiled new build.
Renamed examples.
2011-02-20 04:11:47 +00:00