232 Commits
Author SHA1 Message Date
Mr.doob a030086cf5 texture.loaded = truetexture.image.loaded = true 2010-12-06 10:09:50 +00:00
Mr.doob f0cb056812 Cleaning up unused files. 2010-12-06 06:40:55 +00:00
Mr.doob fecd2f3a39 python build.py --includes generate a includes.js for easy copy/pasting
TODO: Would be nice if `buildIncludes()` would reuse `buildCommon()` array.
2010-12-06 06:29:05 +00:00
Mr.doob 201a4d7b5b Fixed ubiquity test example. 2010-12-05 04:08:48 +00:00
alteredq a395e120c3 Updated WebGLRenderer and corresponding examples to work with new Texture API. 2010-12-04 19:53:30 +01:00
Mr.doob 00795b3a83 Updated CanvasRenderer and some examples to handle the Texture( image, mapping) approach. 2010-12-04 16:33:16 +00:00
Mr.doob 69f3072e05 Added canvas spherical reflection demo.
Need to test this on IE9... :)_
2010-12-03 16:37:43 +00:00
alteredq 9b80eab891 Merge remote branch 'remotes/upstream/master' 2010-12-03 13:32:37 +01:00
alteredq a1d68ddba3 Fixed bug(s) causing broken Fresnel demo.
As suspected, this was caused by incorrect shader state management when switching between multiple shaders (thanks Firefox for verbose warnings).

Also, testing WebGL performance is very tricky. You can get different performance depending on the state of browsers / system (messed up state can be 10-66% slower):

1. freshly started Chrome can be much faster than Chrome that already ran few WebGL demos (which are now closed)
2. demo opened in new Chrome tab can be faster than demo reloaded in the same tab
3. even demos opened and closed in Firefox can slow down Chrome demos

This suggests that browsers do not clean GPU state properly :(
2010-12-03 13:25:59 +01:00
Mr.doob ed5a9b91a5 Synced materials examples with live version.
Added irc channel info in README.
2010-12-02 19:14:01 +00:00
Mr.doob d0138282ba Now that WebGLRenderer does VBO per geometry I guess we don't need that GeometryUtils.merge there. Makes loading much faster too.
Fresnel demo has a weird artifact now... As if the cubemap was smaller than the far of the camera?
2010-12-02 17:38:41 +00:00
Mr.doob 584a8440fd Merging with alteredq's branch. 2010-12-02 17:24:56 +00:00
Mr.doob 59304d8a6e Matrix4.transformVector3 ⟶ Matrix4.multiplyVector3
Matrix4.transformVector4 ⟶ Matrix4.multiplyVector4
2010-12-02 17:19:23 +00:00
Mr.doob 2929d5a345 GeometryUtils::merge were not copying centroid/normal/material. 2010-12-02 13:40:04 +00:00
Mr.doob d29e94ca97 Updated materials (canvas) example. 2010-12-01 17:55:20 +00:00
Mr.doob 1d7a14733b ReflectionMapping working with MeshBasicMaterial/CanvasRenderer \:D/
TODO: Add computeVertexNormals on geometry so any object can use it.
2010-12-01 17:49:02 +00:00
Mr.doob 93c9bb3486 Because CanvasRenderer now checks if map.loaded == true (following WebGLRenderer behaviour) some examples got broken. 2010-12-01 16:11:28 +00:00
Mr.doob 7441b1de59 Implemented gero3's Matrix4.transformVector3 optimisation ( http://jsperf.com/diff-in-speed-for-three-js ). 2010-12-01 16:00:13 +00:00
Mr.doob 84c262d6c6 Adding support for ReflectionMapping (Spherical) to CanvasRenderer. Not done yet... 2010-12-01 14:10:51 +00:00
Mr.doob 0f52ae5a9b Added ImageUtils::loadTexture. 2010-12-01 08:51:50 +00:00
Mr.doob d5a8479fc0 Hmm, I found confusing having exporter tests as examples... ? 2010-12-01 07:15:47 +00:00
alteredq da9094710f Made refraction examples working again.
Somehow they got forgotten in the merge when "THREE.RefractionMap" got renamed to "THREE.RefractionMapping".
2010-11-30 19:51:22 +01:00
Mr.doob 75c4276df9 examples folder clean up. 2010-11-30 17:43:52 +00:00
Mr.doob 870102c68d You gotta love MacOS and its .DS_Store files... 2010-11-30 17:34:18 +00:00
Mr.doob e72b82cda2 Merging with orgicus' branch. 2010-11-30 17:30:45 +00:00
Mr.doob 47d6116179 Merging with alteredq's branch. 2010-11-30 16:48:33 +00:00
Mr.doob 0f2badfdd1 Previous commit: Matrix4.transformMatrix4.transformVector3 and Matrix4.tranformVector4
This commit fixes what that change broke.
Removed chromatic distortion from WebGL reflection/refraction.
2010-11-30 16:15:16 +00:00
Mr.doob 195d9a3820 Merge remote branch 'alteredq/master' 2010-11-30 15:48:52 +00:00
alteredq e0c6dcb0cc Switched one more Walt to binary loader with progress reporting. 2010-11-30 15:23:24 +01:00
alteredq 5e3c1fbab8 Forgot to finish transition of car demo to new loading progress handling. 2010-11-30 13:32:53 +01:00
Mr.doob 67250c69d9 Merging with alteredq's branch. 2010-11-30 05:06:46 +00:00
Mr.doob dde35ca06e Minor changes.
Trying to catch a bug with SmoothShading material objects with no vertexNormals.
2010-11-30 04:56:50 +00:00
alteredq d502ccef1d Moved binary files load progress reporting to Loader.js. Added load progress reporting to demos with larger meshes.
To be used like this:

    var loader = new THREE.Loader( true );
    container.appendChild( loader.statusDomElement );

    loader.loadBinary( url, function( geometry ) { createScene( geometry ) }, path );

    function createScene( geometry ) {
        ...

        loader.statusDomElement.style.display = "none";

    }
2010-11-30 02:21:22 +01:00
alteredq 14bccd81ea Synced with mrdoob's branch. 2010-11-30 00:01:42 +01:00
alteredq 45b3ceb7df Added MeshShaderMaterial (and Fresnel shader as its first example).
MeshShaderMaterial is still work in progress, expect changes.

Nice side effect of WebGLRenderer refactoring: optimized one significant bottleneck (with noticeable effect on framerate in some demos), typed arrays corresponding to matrix uniforms are now set (instead of being created anew in each frame).

Also created fully full build, with all extras included. This helps with deployment, especially when multiple versions of Three have to coexist in the same folder structure (got burned on this few times already).
2010-11-29 23:44:33 +01:00
Mr.doob 34f802e392 Code clean up.
Removed old Blender exporters.
Slim exporter is now Normal exporter (needs some testing).
2010-11-28 06:52:59 +00:00
Mr.doob a2acf0b390 CanvasRenderer/SVGRenderer: RenderableFace4 is now gone. Unfortunately it created more problems than it solved.
CanvasRenderer now with ShadingSmooth, or something along the lines...
2010-11-27 11:30:01 +00:00
Mr.doob 724870d5f1 Crappy/Temporal WebGLRenderer Reflection/Refraction Chromatic Dispersion hack. (Just for kicks) 2010-11-26 21:06:59 +00:00
Mr.doob b913baa6f0 Code clean up and minor optimisations. 2010-11-26 07:58:44 +00:00
Mr.doob 2c50ad366b Merge remote branch 'alteredq/master' 2010-11-26 02:12:00 +00:00
Mr.doob f5f9becaf1 Minor tweaks. 2010-11-26 02:11:31 +00:00
alteredq 739dc0a135 Made mouse wheel in panorama fisheye demo work in Firefox 4, Opera and Explorer 9. 2010-11-25 20:43:34 +01:00
Mr.doob 4fe5e8d292 Renamed vr demo to panorama demo, duplicated to panorama fisheye demo (to avoid confusions). 2010-11-25 08:04:34 +00:00
alteredq a20d9102ce Few small tweaks to cars demo.
Changed materials a bit to look better with lighter environment map.

Added space to buttons HTML so that Firefox don't draw them sticked together.

Also re-added htaccess for BIN files.
2010-11-25 02:10:54 +01:00
Mr.doob 8e8dfe2d01 Tweaked cars demo a bit. 2010-11-24 23:55:34 +00:00
alteredq 696c70152d Added cars demo.
Not sure about adding car models, they are quite big (even binary ones). To be removed if it makes troubles with git / GitHub.
2010-11-24 23:06:23 +01:00
Mr.doob 6441992a17 Removed unused Walt Disney head. 2010-11-24 07:37:50 +00:00
Mr.doob 14eb44a279 ParticleBasicMaterial with a map attached are back on CanvasRenderer.
Added a simple example for that.
2010-11-24 07:22:06 +00:00
alteredq d3cd0887d2 Added handling of object removal to WebGLRender. Added visibility parameter to Object3D. 2010-11-24 03:43:44 +01:00
alteredq e546ae3c48 Refactored panorama creation helpers into SceneUtils.js
This cleaned up cube mapping examples quite a bit ;)
2010-11-22 17:33:41 +01:00