337 Commits
Author SHA1 Message Date
Mr.doob bd2f75b48a Updated r46 with some bugfixes found post release. 2011-11-17 01:14:01 +01:00
alteredq 0de617e758 Added SceneUtils.cloneObject()
This creates shallow copy of object and its children (geometry and materials are shared, transforms are unique).
2011-11-16 22:59:33 +01:00
alteredq f61edd14c2 Fixed shadowmap update bug.
Hope so. There is now just a single scene graph update per frame render (plus some extra one-shot updates if light cameras are auto-added to scene graph).
2011-11-15 19:13:12 +01:00
Mr.doob 579ba1f7ab r46 2011-11-13 22:25:01 +01:00
alteredq dd7e1e84ee Removed redundant GL call in render target setup.
Also fixed RTT example - seems UV mapping for SphereGeometry is now rotated 180 degrees.
2011-11-13 20:10:31 +01:00
Mr.doob 3c61c0c702 Updated builds. 2011-11-11 19:01:23 +01:00
alteredq 9a375c4f39 Fixed bug where you couldn't change attribute types when updating buffers.
Too much caching can break things.
2011-11-11 18:38:52 +01:00
Mr.doob 1d82924efa Made SphereGeometry a bit more sturdy. 2011-11-07 02:47:19 +01:00
Mr.doob b406568dce Refactored SphereGeometry
Now uses Face4 where posible.
Adde phiStart, phiLenght, thetaStart and thetaLength as extra parameters (useful for doing google-earth-like stuff).
2011-11-07 02:34:38 +01:00
alteredq bad3639c26 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-11-03 20:40:30 +01:00
alteredq e08434c183 Reworked binary format / BinaryLoader / OBJ converter to use binary ajax fetch.
It was quite a pain - ArrayBuffers / Typed Arrays are fussy about byte alignment - but seems to be worth it.

Parsing times are down (modest gains for small objects / Firefox, bigger gains for large objects / Chrome, performance gains from 10% - 200%).

Also as a positive side effect, changing interleaved face arrays into uniform arrays seems to have helped a bit with gzip compression (about 6% smaller size for gzipped 526K Lucy).
2011-11-03 20:30:10 +01:00
Mr.doob 1b525e38c5 Improved CubeGeometryand PlaneGeometry 2011-11-03 10:39:57 +01:00
alteredq 81a8eec8ee Removed workers from SceneLoader.
Also manually fixed buffalo model and test scene to be valid JSONs.
2011-10-31 14:12:44 +01:00
alteredq d2cad69664 Started to remove workers from the asset pipeline.
Work-in-progress => do not merge yet.

OBJ converter, JSONLoader, BinaryLoader and some examples are done. Still need to do Blender exporter, SceneLoader and more examples.

Advantages:

- faster parse times
- bypass array initializer size limit in Firefox
- no more crashes in Chrome 15 (caused by too many concurrently active workers)

Disadvantages:

- more browser UI freezing
- multiple models tend to appear all at once with the last one (instead of popping up progressively)
2011-10-30 22:09:55 +01:00
alteredq 2ba6aabdc7 Added missing semicolon. 2011-10-30 15:28:20 +01:00
Mr.doob f4063649a0 And yet some more Ray optimisations :P
And still readable code...
2011-10-30 14:23:24 +01:00
alteredq b6e7ad88af Optimized Ray a bit more.
It's enough to clone just for hits, no need to do it for every face.
2011-10-30 14:04:53 +01:00
Mr.doob ca38a3ff1c Added precision parameter to WebGLRenderer
So we can set it to lowp for mobile devices if needed.
2011-10-29 06:52:43 +02:00
alteredq 0b55092d61 Updated builds. 2011-10-28 12:33:02 +02:00
alteredq a8f8411e9a Updated builds. 2011-10-28 11:59:37 +02:00
alteredq 6e84e89d16 Some more fixes thanks to verbose Closure compiler errors. 2011-10-28 11:55:12 +02:00
alteredq a9cc8bceb5 Applied manually fixes from @broady to 'dev' branch.
https://github.com/mrdoob/three.js/pull/689
2011-10-28 11:26:01 +02:00
alteredq 046f4bfeb6 Added custom attributes for lines. 2011-10-25 18:26:28 +02:00
Mr.doob a7c804b817 Updated builds. 2011-10-25 06:50:15 +02:00
Mr.doob d902ca3bf0 Updated builds and tweaked examples
Removed LOD text example. I think LOD example is good enough.
Ubiquity test working again.
Tweaked README to show the new pattern (Scene first thing created).
2011-10-25 01:50:17 +02:00
Mr.doob 747b813bcb Merging with @alteredq's branch 2011-10-25 01:18:31 +02:00
Mr.doob e54f2e32e7 Updated builds. 2011-10-24 14:43:33 +02:00
alteredq 408c82d306 Got WebGLRenderer working again.
I had to resurrect parts of old code (keeping track of scene graph changes).

Good news: performance is great, new scene graph gains compound with buffers optimizations and non-array materials refactoring. Together we gained about 15% for rotating cubes performance test (pushing max to 2650 cubes at 60 fps).

Still broken with new scene graph: lod, skinning, collisions, AnaglyphWebGLRenderer, ParallaxBarrierWebGLRenderer, multi-canvas circle example.
2011-10-24 12:30:04 +02:00
Mr.doob ec00f298be CanvasRenderer and SVGRenderer using single-material system.
Also moved `.overdraw` to Material.
Code is much simpler now :)
2011-10-23 13:50:55 +02:00
Mr.doob 6b151b552e Merging with @alteredq's experimental branches. 2011-10-23 12:34:46 +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
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
Mr.doob 8db9d6fd61 GUI: Snap to axis (press x,y or z when moving). Added TrackballControls
Added this.enabled property to TrackballControls.
Simplified TrackballControls code.
2011-10-08 19:43:11 +02:00
Mr.doob d4704fe8db Updated builds. 2011-10-08 00:30:20 +02:00
alteredq 89c578332e Fixed shading glitches on OpenGL (thanks to @mrdoob for spotting this). 2011-10-07 20:56:24 +02:00
alteredq 7355c2b68b Changed ambient term to influence also texture in Phong / normal map materials.
This feels more intuitive, otherwise ambiently lit textured surfaces look weird.
2011-10-07 19:06:55 +02:00
alteredq 7d2805dd83 Fixed specular term in Phong / normal map materials.
Turns out I had it right before after all: to get rid of artefacts it should be multiplied by diffuse term (instead of being patched by conditional).
2011-10-07 18:43:00 +02:00
Mr.doob 4e5dff61c8 Added basic Collada file drop support to the GUI.
Unfortunately "File" doesn't have path information, so textures won't load :/
Tried to also drop .js files, but the Workers part ruined the party too :/ :/
2011-10-07 08:55:05 +02:00
Mr.doob 1258e8a771 Ray now also checks object's children. 2011-10-07 07:07:34 +02:00
Mr.doob 81d338e915 ColladaLoader fixes.
* Fixed `ColladaLoader` and `Loader` url base extraction code.
* `ColladaLoader` now ignores non-joint nodes when constructing the skeleton. (Hopefuly, in a  year time, I'll find this fix stupid)
2011-10-07 02:30:10 +02:00
Mr.doob fdf6fab7e6 Including @alteredq's post-release normal map improvements into r45. 2011-10-06 23:58:20 +02:00
alteredq 88d54b0cfa Updated builds. 2011-10-06 23:46:51 +02:00
alteredq b18a38eee5 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-10-06 23:44:10 +02:00
alteredq 84ed1835ca Added reflection to normal map shader. 2011-10-06 23:33:01 +02:00
Mr.doob f357225c2d Merging dev branch. 2011-10-06 06:15:03 +02:00
alteredq 801fe52d75 Removed unused code from normal map shader. 2011-10-06 05:02:10 +02:00
alteredq 8afaef4597 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-10-06 04:18:27 +02:00
alteredq 1042528b39 Added texture coordinates offset and repeat to normal map shader. 2011-10-06 04:11:11 +02:00
alteredq 8153982ffb Added shadow maps handling to normal map shader. 2011-10-06 03:46:42 +02:00
Mr.doob 40d1ea1083 Updated builds. 2011-10-06 03:42:40 +02:00