Commit Graph
963 Commits
Author SHA1 Message Date
alteredq 655b1efbde Merge remote-tracking branch 'remotes/mrdoob/dev' into dev
Animation / skinning / path controller are now broken :/
2011-11-20 22:16:54 +01:00
alteredq e207f5e852 Changed lights to use global positions.
This should allow attaching of lights to objects. As a side effect, directional lights positions don't need to be normalized explicitly anymore.

Also changed viewport dimensions passed to render plugins to work with render targets with different dimensions than the screen framebuffer.

And fixed new dependencies in build script.
2011-11-20 20:18:16 +01:00
Mr.doob e16e443394 Better use of generated texture. 2011-11-20 19:19:14 +01:00
Mr.doob 48b3a72538 Simplified geometries example. 2011-11-20 16:28:03 +01:00
Erik Kitson 01ac1e3d17 Added proper up-axis conversion for COLLADA models. Added support for key-framed animation. 2011-11-18 16:47:39 -08:00
alteredq 0c78ae95e9 Rest of the commit.
Because TortoiseGit suddenly refuses to make single commit with added and changed files :/
2011-11-18 23:56:45 +01:00
alteredq 4be5880b0f Made SpritePlugin and LensFlare plugins default.
Also some refactoring in plugins.

Still not really satisfied with a solution, will need to handle somehow ordering of plugins (both among them and with respect to rest of rendering, this would be needed for example to be able to redo shadow maps as a plugin).
2011-11-18 17:19:10 +01:00
alteredq 1dcf5fc79b Moved sprite handling into plugin.
Work in progress. Still just experimenting. Probably will make some auto-adding of plugins.
2011-11-18 05:08:40 +01:00
alteredq 0eaeaad4f4 Added lens flares example. 2011-11-18 04:24:12 +01:00
alteredq ebf93289f8 Resurrected lens flares as custom plugin.
Still a bit dirty but less than it was before. Maybe also sprites could be pluginized.
2011-11-18 01:26:20 +01:00
Mr.doob 6ad7cbb47b Removed Collisions code.
No time right now to re-create the examples using Ray. Will do for r47...
2011-11-13 21:39:49 +01:00
Mr.doob 525527e03d Merge remote-tracking branch 'alteredq/dev' into dev 2011-11-13 21:25:42 +01:00
Mr.doob a0bc0e0661 Removed unneeded code in canvas_materials_depth example. 2011-11-13 21:24:56 +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
alteredq 1d5baf11aa Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-11-11 12:48:58 +01:00
alteredq 0ce26e4c52 Moved normal map shader into ShaderExtras.js 2011-11-11 12:39:12 +01:00
Mr.doob f3e18523f1 Fixed canvas_geometry_terrain on Firefox (thx @sylarpowa!) 2011-11-11 03:20:22 +01:00
alteredq 89dc5b1b53 Added luminosity shader.
Dynamic terrain example now creates a specular texture from the color texture. That saves 2.17 MB download.

Just I had to drop materials pre-initialization, for some reason this doesn't play nice with having extra scene / render target :S.

In theory also detail normal texture could be computed from the color texture, just we need some nicer normal map filter (Gimp plugin has 9 different ones).
2011-11-09 23:53:32 +01:00
alteredq 5253c6490e Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-11-08 21:12:26 +01:00
alteredq 852738580e Added dynamic terrain example. 2011-11-08 20:54:57 +01:00
Mr.doob 1d82924efa Made SphereGeometry a bit more sturdy. 2011-11-07 02:47:19 +01:00
Mr.doob 81346eab80 Better UV texture 2011-11-05 14:59:17 +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 036caa64ee CanvasRenderer now (properly) handles textured triangles with determinant to 0
Proper IcosahedronGeometry next...
2011-11-03 17:33:30 +01:00
Mr.doob 5d49ec9fae Workaround for CanvasRenderer 0x0 pixel case
It makes the whole thing imprecise, but cubes are now properly reflective.
2011-11-03 11:32:58 +01:00
Mr.doob 349e565de3 Fixed some examples. 2011-10-31 17:40:13 +01:00
Mr.doob aea1ef59a3 Merge remote-tracking branch 'alteredq/dev' into dev 2011-10-31 17:17:32 +01:00
alteredq 1658d7f083 Removed workers from Blender exporter.
Fixed Blender importer to work with Blender 2.60, add option for importing workers or non-worker models.

Fixed more examples to use worker-less format. All examples should work now.

Only Max exporter should be left to change.
2011-10-31 16:51:50 +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
Mr.doob 1717c62d15 Improved Kinect example
Hooked more values to DAT.GUI
2011-10-31 07:57:09 +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
Mr.doob 2f90d73d13 Added Kinect example. Updated DAT.GUI. 2011-10-30 17:35:09 +01:00
Mr.doob dad6911bb0 Optimised Ray a bit more
Removed some clone() calls while still keeping the code somewhat pretty.
2011-10-29 10:30:08 +02:00
Mr.doob be5d5858ad Merge remote-tracking branch 'origin/dev' into dev 2011-10-29 06:30:17 +02:00
alteredq 7473315212 Refactored common code for render passes out of render loop.
Also fixed RTT example, it was affected by unlit Lambert change.
2011-10-28 21:57:19 +02:00
zz85 4fbb905606 Update subdivision example 2011-10-28 23:46:36 +08:00
alteredq 15db34ad9a Refactored custom attributes for particles.
More moving ifs out of inner loops.
2011-10-26 19:44:28 +02:00
alteredq 11e1290080 Got WebGL sandbox working again.
Finally I realized how useful it is and why we kept it around ;).
2011-10-26 11:02:51 +02:00
alteredq 9a2a535fe0 Removed forgotten code in lines example. 2011-10-25 18:36:43 +02:00
alteredq 046f4bfeb6 Added custom attributes for lines. 2011-10-25 18:26:28 +02:00
Mr.doob 1f7838a9c2 Fixed bug in Ray's pointInFace3. 2011-10-25 10:10:41 +02:00
Mr.doob 1914458738 Simplified and clarified hierarchy2 example. 2011-10-25 07:34:49 +02:00
Mr.doob ed67da2783 Merge remote-tracking branch 'zz85/master' into dev 2011-10-25 06:39:53 +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 212506bce4 Merge remote-tracking branch 'alteredq/dev' into dev 2011-10-25 01:18:47 +02:00
alteredq cbef41e251 Fixed multi-canvas circle example. 2011-10-24 18:47:45 +02:00
alteredq 9433bd1446 Got ParallaxBarrierWebGLRenderer working. 2011-10-24 18:34:40 +02:00
alteredq eda6d2adde Got AnaglyphWebGLRenderer working.
Hope so ... looks kinda ok, don't have red-blue glasses.
2011-10-24 18:25:02 +02:00
alteredq 609c8c7212 More correct LOD handling (thanks to @mrdoob for insight). 2011-10-24 15:41:11 +02:00