Commit Graph
653 Commits
Author SHA1 Message Date
alteredq bb332e5fcd Extended Loader base class to handle normal map materials.
Plus some more Loader changes:

- fixed diffuse color and opacity being skipped when diffuse texture is present in JSON
- more proper handling of Phong materials (now use ambient / diffuse / specular / shininess from JSON)
- added handling of wrap / offset / repeat parameters for all textures

Fixed broken multiple lights indices in new normal map shader and changed displacement scale and bias to saner values.

Fixed broken postprocessing and Earth examples (were not yet translated to use new normal map shader).
2011-07-02 04:35:45 +02:00
alteredq e604036b21 Changed normal map examples to use new normal map shader with standard lights.
Removed old normal map shader with custom lights.
2011-07-01 16:20:03 +02:00
alteredq 213a2d9d2b Merged, refactored and extended sweetfish/pxf pull request with scene material override and Blender exporter updates.
Fixed double rendering of scene when using override material.

Updated depth-of-field example to use scene material.

Blender exporter / scene loader now support mirrored repeat, wrap is now separate per-x and per-y.

Image copying is now optional and works also for individual models.

Scene loader now supports texture offset.

Blender exporter / loaders not fully tested yet, renderer seems fine, all examples work.
2011-06-17 03:21:38 +02:00
alteredq 5739f754a8 Made "needsUpdate" working for custom attributes. Added example for custom attributes.
Not perfect solution but better than nothing.
2011-06-16 16:46:28 +02:00
alteredq 9596667876 Merged zz85's text bezel, extended text parameters API for bezel, added bezel to webgl text example. 2011-06-14 18:48:25 +02:00
Mr.doob bfdb10a85a Updated all examples so they use the renamed geometry classes. 2011-06-13 18:33:53 +02:00
alteredq ec3ea826ab Added Droid fonts. 2011-06-09 18:25:53 +02:00
alteredq 9acdcbb63b Merged with zz85 Text fixes. 2011-06-07 16:42:18 +02:00
zz85 02cd88bd91 patched fixes with alteredq and added support for gentilis 2011-06-06 21:29:13 -07:00
zz85 afe9d3b593 committing text fix changes not pushed :( 2011-06-06 20:45:49 -07:00
alteredq 44c0f34e2a Removed font from examples/js, now that fonts are in examples/fonts. 2011-06-07 00:48:10 +02:00
alteredq cbd31ddf89 Added webgl text example. 2011-06-07 00:40:14 +02:00
zz85 4983327011 Fixes for holes first characters 2011-06-06 05:50:00 -07:00
zz85 5c2e6ee5d7 saving before merge 2011-06-05 18:57:49 -07:00
zz85 f319a7214f WIP webgl text 2011-06-05 15:29:38 -07:00
alteredq e4b75f1c8d Merged greggman's offset camera pull request. 2011-06-03 23:57:38 +02:00
alteredq d2cbf83dd3 Merged zz85's 3d text pull request, cleaned up THREE.Text code. 2011-06-03 20:31:35 +02:00
Gregg Tavares 0d66e46e5b 2 Examples for using setViewOffet.
I think setViewOffset is mostly useful for multiple monitors
synced across multiple machines but that's a hard demo to setup
so these demos show doing it locally with muliple canvases
2011-06-02 11:30:19 -07:00
zz85 2860731edb Updated 3D Text Geometry and example 2011-06-02 01:21:37 -07:00
alteredq d8c3c92fc9 Added dynamic particles demo. 2011-06-02 02:41:47 +02:00
alteredq 7c68d1734f Simplified CrosseyedWebGLRenderer: using viewports instead of FBOs.
Now it's possible to have antialiased stereo.
2011-06-01 19:48:55 +02:00
alteredq 71de557220 Fixed cross-eyed examples lib links. 2011-06-01 19:07:47 +02:00
alteredq dcbcf72f55 Added CrosseyedWebGLRenderer. 2011-06-01 18:51:07 +02:00
Mr.doob c8dee063f6 Fixed cars anaglyph example. 2011-06-01 08:47:22 +01:00
Mr.doob 11e9b06344 Cleaned anaglyph examples code. Unfortunately it doesn't work nicely with multipass... 2011-06-01 08:23:50 +01:00
Mr.doob 6bee6c3972 Added AnaglyphWebGLRenderer. 2011-06-01 08:09:32 +01:00
alteredq f104182458 Added handling of texture repeat and offset to WebGLRenderer. 2011-05-31 00:51:14 +02:00
alteredq eecf9d0bc6 Made canvas interactive particles rendering in Firefox more consistent with Chrome.
It seems lineWidth defaults are different in Chrome and Firefox.

Still there are some clearing artefacts in Firefox :/
2011-05-30 17:25:17 +02:00
alteredq 272d23c7a5 Disabled ambient light in trackball Earth example (to get rid of clouds in unlit part of the globe). 2011-05-30 16:58:54 +02:00
Mr.doob 38ac2817a0 Added morphtargets animation example. 2011-05-30 06:11:59 +01:00
Eberhard Gräther 74ab78a6e2 build including TrackballCamera 2011-05-30 00:02:13 +02:00
Eberhard Gräther 3981e4d712 Merge remote branch 'upstream/master' 2011-05-29 23:47:23 +02:00
Eberhard Gräther 359407b722 added new TrackballCamera-example and changed keys 2011-05-29 23:45:15 +02:00
Eberhard Gräther 61ca6974b7 added modified earth example for TrackballCamera 2011-05-29 15:49:26 +02:00
Mr.doob 087066524a Added boundingSphere check for Meshes in Ray ( improving performance considerably). 2011-05-29 10:02:20 +01:00
Mr.doob 18f7859974 Ray now intersects with particles too. (thx @jaycrossler) 2011-05-28 23:34:59 +01:00
zz85 1286e5171b inital import for THREE.Text and example 2011-05-27 05:09:20 -07:00
Mr.doob 967696257d WebGLRenderer: Testing gl.finish() and gl.texImage2D instead of gl.texSubImage2D. 2011-05-18 02:12:28 +01:00
alteredq dc0880ee12 Updated PathCamera to use easing for look (thanks to mrdoob).
Also added silly path camera example.
2011-05-11 00:35:36 +02:00
alteredq 023024f520 Updated Blender scene exporter to output proper JSON. Changed OBJ converter to dump less digits for floats. 2011-05-07 21:31:16 +02:00
Mr.doob e87caabbf8 Removed __styleString and updateStyleString out of THREE.Color.
Using * ( 1 / scale ) instead of / scale in JSONLoader.
2011-05-04 17:34:49 +09:00
alteredq 65293ea5e2 Updated terrain model used in mesh collider example. 2011-04-26 23:24:42 +02:00
alteredq 7ee6cc33eb OBJ converter: add option for scaling and truncating vertex coordinates (flag "-x scale").
To be used like this:

python convert_obj_three.py -i lucy100k.obj -o Lucy100k_slim.js -a center -s flat -x 100

It should work also for morph vertices.
2011-04-21 14:36:53 +02:00
alteredq 614925336d Added support for empty objects and meshes without geometries to Blender scene exporter and SceneLoader. 2011-04-21 13:28:04 +02:00
Mr.doob c1ce040781 Updated Projector's Particle handling (it wasn't using hierarchy). 2011-04-21 10:42:30 +02:00
alteredq d7ec2be764 Added embedded ascii JSON meshes to SceneLoader. 2011-04-19 20:47:35 +02:00
Mr.doob b18b6f9fbe Added Trident to Geometry example. Found out that handling scene.objects from API wise is a bit confusing (childs are there too). 2011-04-18 16:29:00 +02:00
alteredq bd56143eb4 Updated a bit message and links in Detector. 2011-04-16 18:36:03 +02:00
alteredq 526bd322ba Fixed typo in example. 2011-04-16 01:29:42 +02:00
alteredq aac5b6117b Refactored SceneLoader.
Just a single callback is now passed  to loader.load( "scene.js", callbackFinal ) - callback which is called when everything from the scene was already loaded.

If you want to use also callbacks for initialization of procedural synchronously created elements, you can set property of loader:

loader.callbackSync = function( result ) { ... }

If you want to get callback for load progress, set:

loader.callbackProgress = function( progress, result ) { ... }

Also added per scene creation of collision systems (it used to be singleton).
2011-04-16 00:40:07 +02:00