Commit Graph
531 Commits
Author SHA1 Message Date
alteredq 4dfadc00d5 Merge remote branch 'remotes/upstream/master' 2010-12-06 14:21:31 +01:00
alteredq 3410028458 Made Minecraft demo working in Firefox. 2010-12-06 14:16:37 +01:00
Mr.doob 6f898f9fba Updated texture pack for Minecraft demo. 2010-12-06 13:14:22 +00:00
alteredq 7bc909bc04 Merge remote branch 'remotes/upstream/master' 2010-12-06 14:01:19 +01:00
Mr.doob 12ce3e945b Added minecraft demo. 2010-12-06 12:21:34 +00:00
alteredq a31a8aaacf Refactored build system so that it's possible to generate includes for each configuration.
Also made code slightly faster (and more Pythonic).
2010-12-06 12:59:30 +01:00
alteredq 508d22f296 Synced with mrdoob's branch. 2010-12-06 11:48:40 +01:00
Mr.doob a9e185aa70 Updated README includes.
Pushed revision number to 31.
r31
2010-12-06 10:32:38 +00:00
Mr.doob a030086cf5 texture.loaded = truetexture.image.loaded = true 2010-12-06 10:09:50 +00:00
Mr.doob e7f5f3865a Fixed WebGL Wrappings.
Added WebGL Texture Filters.
2010-12-06 08:50:28 +00:00
Mr.doob 49a78ba6a6 README: Moved canvas example to the right group. 2010-12-06 07:33:47 +00:00
Mr.doob ab5e01c557 These categories aren't needed... 2010-12-06 07:29:45 +00:00
Mr.doob 24c679878f Fixed Fresnel shader image link and link. 2010-12-06 07:26:51 +00:00
Mr.doob 78814e8a96 Updated README examples. Hopefuly links still work. 2010-12-06 07:23:08 +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 aa50e7eec3 Created Mapping classes 2010-12-04 10:32:55 +00:00
alteredq c91aac5d5c Synced with mrdoob's branch. 2010-12-03 20:29:43 +01:00
Mr.doob 69f3072e05 Added canvas spherical reflection demo.
Need to test this on IE9... :)_
2010-12-03 16:37:43 +00:00
Mr.doob 315bc5ad3e Updated build. 2010-12-03 16:13:04 +00:00
Mr.doob ef2243bdb3 Merge remote branch 'alteredq/master' 2010-12-03 16:10:53 +00:00
Mr.doob 5573f95417 Added Geometry::computeVertexNormals.
Maybe `Geometry::computeNormals` should be renamed to `Geometry::computeFaceNormals`?
2010-12-03 16:10:37 +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 fa183834b2 Merge remote branch 'alteredq/master' 2010-12-02 17:25:04 +00:00
Mr.doob 584a8440fd Merging with alteredq's branch. 2010-12-02 17:24:56 +00:00
Mr.doob cee17e1043 Merge remote branch 'orgicus/master' 2010-12-02 17:19:33 +00:00
Mr.doob 59304d8a6e Matrix4.transformVector3 ⟶ Matrix4.multiplyVector3
Matrix4.transformVector4 ⟶ Matrix4.multiplyVector4
2010-12-02 17:19:23 +00:00
alteredq e10d8c6680 Synced with mrdoob's branch. 2010-12-02 15:19:57 +01:00
alteredq c0e30b2c39 Made VBOs reusable.
The most tangible practical effect is that demos with multiple Lucys / Walts are now initialized much faster ;).

Reuse is achieved mostly by moving mesh chunks / VBOs (formerly called materialFaceGroups) from Mesh into Geometry.

This means sorting of geometry by face materials + breaking large geometries into chunks now has to be done after construction of geometry.

It becomes a step in the usual sequence:

    geometry.computeNormals();
    geometry.computeCentroids();
    geometry.sortFacesByMaterial();

If geometry is constructed programmatically (e.g. with GeometryUtils.merge), this has to be called afterwards.

Also of note: single geometry cannot be reused both for flat and smooth shading, as only one stream of normals is baked into VBO.
2010-12-02 14:43:39 +01:00
Mr.doob 2929d5a345 GeometryUtils::merge were not copying centroid/normal/material. 2010-12-02 13:40:04 +00:00
alteredq d7ba66ea26 Synced with mrdoob's branch. 2010-12-02 09:07:23 +01: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
George Profenza e90f60ec3b added slim conversion 2010-12-01 15:46:34 +00:00
Mr.doob 6a257e8141 Merge remote branch 'alteredq/master' 2010-12-01 14:11:11 +00:00
Mr.doob 84c262d6c6 Adding support for ReflectionMapping (Spherical) to CanvasRenderer. Not done yet... 2010-12-01 14:10:51 +00:00
alteredq e57b0c5ba6 Synced with mrdoob's branch. 2010-12-01 12:52:09 +01:00
alteredq b25a003ded Merge remote branch 'remotes/upstream/master' 2010-12-01 12:48:49 +01:00
Mr.doob 0f52ae5a9b Added ImageUtils::loadTexture. 2010-12-01 08:51:50 +00:00
alteredq c1cb8e9067 Added handling of 2d textures in MeshShaderMaterial. 2010-12-01 09:38:52 +01:00
alteredq 0f9184888a Refactored common code for cube texture setting into separate setCubeTexture function. 2010-12-01 09:24:25 +01:00
Mr.doob 2463d48d26 build.py: full ⟶ common 2010-12-01 07:41:35 +00:00