2431 Commits
Author SHA1 Message Date
alteredq 1e7e75e29c Fixed cubemapped sphere shadow in shading testbed. 2011-10-18 01:14:55 +02:00
alteredq 841865d422 Tweaked cars materials. 2011-10-18 00:47:56 +02:00
alteredq 9968b7dc07 Changed ambient handling for Phong and Lambert materials.
Removed diffuse color influence on ambient term in Phong. This was causing texture disappearance when diffuse color was black.

Made Lambert more similar to Phong: now it also has ambient color parameter. Before ambient light was affecting Lambert as if ambient color was always 0xffffff.
2011-10-18 00:05:09 +02:00
Mr.doob 330ab77836 WIP WebGLRenderer refactoring 2011-10-16 11:36:09 +02:00
alteredq a8869f9e5b Quick and dirty hack to get WebGLRenderer working with new scene graph.
This is not supposed to be "proper" solution (for example this doesn't solve removing of objects), but at least some WebGL examples are working now.
2011-10-15 20:13:36 +02:00
alteredq 093fbbe334 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev
WebGL part of this branch is completely broken. Do not use. This is for further merging.
2011-10-15 18:37:59 +02:00
Mr.doob 6742f8e4a4 Merge remote-tracking branch 'sirlantis/patch-1' into dev 2011-10-15 09:01:58 +02:00
Mr.doob d2b8a07822 Changed ColladaLoader so it doesn't create extra Object3Ds for each mesh.
Updated Stats.
2011-10-15 09:00:41 +02:00
alteredq 937d200899 Updated help in OBJ converter to reflect new loaders API. 2011-10-15 03:35:59 +02:00
alteredq 0fee925afe Refactored UTF8Loader to follow JSONLoader / BinaryLoader APIs. 2011-10-15 02:52:59 +02:00
alteredq 0284cb950a Refactored BinaryLoader to follow new JSONLoader style simpler API.
Also updated corresponding examples.
2011-10-15 02:25:25 +02:00
alteredq 942a6c89c9 Updated Clock to be more compatible with Timer (now uses seconds and getDelta API).
Lots of code got cleaner with seconds, seems we used them before all around.

Also changed examples that didn't need deltas to simple Date.now() plus some more examples cleaning, trying to get rid of obsolescence warnings.
2011-10-15 00:57:50 +02:00
alteredq 41eb500677 Refactored custom attributes handling to use lists to remove massive bottleneck.
Apparently iterating over object properties is dangerous even if that code path is not executed.

Stress-testing particles buffers setting showed 60% performance increase (in Chrome) even when there were no custom attributes (and thus custom attributes handling code behind "if ( customAttributes )" was never executed).

I suspect this may be caused by some V8 optimization heuristics.
2011-10-14 18:53:07 +02:00
Marcel Jackwerth b6e6624a1d Added missing minus sign. 2011-10-14 19:46:29 +03:00
Marcel Jackwerth d49f2d3281 Always use shortest path for Quaternion.slerp (also see: http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/slerp/ Other Issues, Inverting Quaternions) 2011-10-14 18:54:44 +03:00
alteredq f74782b61f Refactored RollControls, FlyControls and PathControls to use externally supplied time delta. 2011-10-14 05:44:12 +02:00
alteredq 093f17f38c Refactored FirstPersonControls to use externally supplied time delta.
Changed few examples to use this.
2011-10-13 22:09:25 +02:00
alteredq f1f744f0ba First attempt at Clock object.
Got tired of redoing deltas all the time. Not sure about API or implementation details, but so far seems to be useful.

In future, we could for example have clocks that are slower / faster than realtime, or fixed step based.
2011-10-13 21:46:08 +02:00
alteredq 9902cbbf2d Experimenting with Date.now(). Updated builds. 2011-10-13 20:17:21 +02:00
zz85 4e97d195b0 Added ScaleGeometry and added Monkey Head + more geometries to examples 2011-10-14 01:37:14 +08:00
zz85 0c3f1a336e Merge remote-tracking branch 'upstream/master' 2011-10-14 01:04:47 +08:00
alteredq 42544a0f29 Moved GeometryUtils.random16 => Math.random16 2011-10-13 18:03:05 +02:00
alteredq 89bddf3827 Moved "extras/MathUtils" to "core/Math" (thanks to @mrdoob). 2011-10-13 17:50:16 +02:00
Mr.doob 61dca43a51 Merge branch 'master' into dev 2011-10-13 05:12:17 +02:00
Mr.doob 3433b49cba Beautified usage example. r45 2011-10-13 05:12:01 +02:00
alteredq 59f0e645a4 Refactored shadowmap example to use MorphAnimMesh. 2011-10-13 05:02:16 +02:00
Mr.doob 8a92374fd0 Merge branch 'master' into dev 2011-10-13 04:34:12 +02:00
Mr.doob 77d7a999af Somehow the trails example got deleted... ? 2011-10-13 04:34:00 +02:00
alteredq 912b697530 Added forgotten sittingBox.js animated model. 2011-10-12 23:16:09 +02:00
alteredq 8d417f595e Replaced extra clamp and map_linear functions with MathUtils versions. 2011-10-12 16:00:53 +02:00
alteredq 15c899b46f Added renderer.shadowMapAutoUpdate parameter.
This is for being able to render shadowmap just once per frame - all dynamic cubemap faces and full scene can share the same shadowmap (at least until we don't have camera-specific fine-tuned shadowmaps).
2011-10-12 14:05:30 +02:00
alteredq ae22b78c2c Added MorphAnimMesh. Added MathUtils.
Added morph to rendering testbed.
Simplified shadowmap shader snippet gamma handling.
2011-10-12 13:41:36 +02:00
alteredq 55e2337404 Added day/night toggle to rendering testbed. 2011-10-12 11:42:00 +02:00
zz85 1638bfdbee Merge remote-tracking branch 'upstream/dev' 2011-10-12 17:41:48 +08:00
Mr.doob 0cc9b95e1e Merge branch 'master' into dev 2011-10-12 05:50:09 +02:00
Mr.doob 44730f9324 Adding "Lights" to featured projects list. 2011-10-12 05:49:38 +02:00
Mr.doob 698c15fdce Tab fix. 2011-10-12 05:47:00 +02:00
alteredq 4f7fe37a70 Added forgotten texture. Disabled browser-based antialiasing. 2011-10-12 03:40:41 +02:00
alteredq 3ce8fbb3b6 Started to explore physically based shading / linear color space.
Do not merge, this is very experimental, not sure about correctness, also tons of unsolved things.
2011-10-12 03:31:37 +02:00
Mr.doob e81b2361d7 Merge remote-tracking branch 'cscott/master' into dev 2011-10-11 20:46:34 +02:00
alteredq a529e4c783 Fixed dynamic cube map cars demo.
Finally, the trouble was at the application level: renderer.clear clears the current framebuffer, which, if you juggle multiple render targets, doesn't have to be necessarily the screen. Here it was the last face of cube render target.
2011-10-11 02:31:55 +02:00
Mr.doob fb4f5f8467 Merge remote-tracking branch 'Knectar/dev' into dev 2011-10-11 02:21:16 +02:00
alteredq d2c6487b41 Fixed random clipping of objects in WebGLRenderTargetCube / CubeCamera.
Turns out before all cube texture faces shared a single depth buffer.

Last cube face still missing.
2011-10-11 00:38:28 +02:00
C. Scott Ananian ed38b18fd9 Fix scene loader when there is nothing asynchronous to be loaded. 2011-10-10 18:06:58 -04:00
alteredq addb3a12a9 Refactored CubeCamera / cube map handling.
Before lighting was messed up in dynamically generated cube maps.

Dynamic cube maps need to have flip uniforms (flipEnvMap / tFlip) set to 1, static cube maps to -1 (default).

For standard materials this is handled automatically, it's just something to be aware of when using cube maps in custom ShaderMaterials (dynamic and static cube maps have different cube face orientations, dynamic ones are correct, static ones need flipped x-axis in lookup vector).

There is still mystery of disappearing last cube face (negative-Z) and weirdly clipped objects in cars demo (works ok in simpler test).
2011-10-10 23:39:22 +02:00
Daniel c783410a1a Octahedron subdivisions to default to 0. 2011-10-10 18:54:56 +01:00
zz85 01d8572207 fix subdivision example 2011-10-11 00:12:59 +08:00
zz85 e3039ae0f7 Merge branch 'gui' 2011-10-11 00:09:51 +08:00
zz85 36089d0251 Fixed sharp corners for Subdivision Modifier 2011-10-11 00:09:24 +08:00
zz85 ed3cb6613c Update Subdivision model loading 2011-10-10 22:52:57 +08:00