103 Commits
Author SHA1 Message Date
Mr.doob 44a8652c37 REVISION ++ 2011-04-24 12:57:28 +01:00
alteredq 8062c3bf31 Added HSV -> RGB color conversion to Color. 2011-04-23 10:57:34 +02:00
Mr.doob e457b4f8ae Added drawCalls property to WebGLRenderer::data object. 2011-04-22 00:35:43 +02:00
alteredq 4637b69d58 Synced with mrdoob's branch. 2011-04-21 12:19:44 +02:00
Mr.doob c1ce040781 Updated Projector's Particle handling (it wasn't using hierarchy). 2011-04-21 10:42:30 +02:00
Mr.doob 0a11daf348 Updated builds. Fixed Trident. 2011-04-21 01:59:33 +02:00
alteredq c0e232d019 Updated builds. 2011-04-19 07:44:16 +02:00
Mr.doob 61553c5710 Commented console.log. 2011-04-17 17:50:24 +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
alteredq 67147df926 Fixed bug in RollCamera and FlyCamera.
Only the first update should set the last updated timestamp, not constructor.
2011-04-15 02:15:37 +02:00
Mr.doob 86c8dbf92b Updating builds. 2011-04-14 22:16:06 +01:00
alteredq cb3f2fff7d Fleshed out RollCamera: refactored code out of example, add more keyboard controls, API and made it framerate independent. 2011-04-14 00:31:40 +02:00
Mr.doob ce2d6603cb Updated builds. You know, just in case... 2011-04-13 16:59:17 +01:00
alteredq 691a5ea3ed Added handling of shadow geometry to scene loader. Made default light and camera option to Blender scene exporter. Made shadow geometry invisible in exported scene. 2011-04-13 12:26:49 +02:00
Mr.doob c146a02610 Updated builds. 2011-04-12 14:40:01 +01:00
alteredq 35344be4ec Changed QuakeCamera to have framerate independent movement and look speed. 2011-04-12 14:33:45 +02:00
Mr.doob 92d702d95d Added data object ( vertices, faces ) to Canvas/SVG/WebGLRenderer to get some render counts from the last render call. 2011-04-12 09:25:22 +01:00
alteredq af3582c9d1 Merge branch 'master' of http://github.com/mrdoob/three.js 2011-04-11 21:03:20 +02:00
alteredq 99ac869b24 Added forgotten return to Quaternion.multiply 2011-04-11 21:01:54 +02:00
Mr.doob e0e05f2962 Fixed Objec3D::lookAt 2011-04-11 16:35:46 +01:00
Mr.doob df54e729c9 Updated builds. 2011-04-11 16:17:30 +01:00
alteredq b72177929e Fixes in handling of camera updates. Added few methods to Quaternion API. 2011-04-11 16:33:17 +02:00
Mr.doob 7361be39df WebGLRenderer: Sprites can now be removed from the Scene (thx jetienne)
Some white space clean up.
2011-04-11 09:53:32 +01:00
alteredq bdbf1f78c5 Synced with mrdoob's branch. 2011-04-10 23:47:43 +02:00
alteredq 22bd108ab1 Added FlyCamera (thanks to James Baicoianu). Added specular map to normal map shader. Added WebGL Earth FlyCamera demo.
Changed normal map shader to multiply specular component with diffuse weighting as specular highlights were appearing in the dark parts.

Changed camera look speed in minecraft and terrain demos, they were too fast - I guess as everything got faster with antialiasing off.

Reenabled antialiasing in few demos where it was too ugly without (basically anything with lines and without postprocessing).

Fixed again spurious invisible characters in empaempa's code (which are breaking everything and are hard to hunt as they look like spaces).
2011-04-10 23:13:05 +02:00
Mr.doob 3bc9f48c2f src/animation ⟶ src/extras/animation
Improved lod and grass examples.
2011-04-10 09:36:28 +01:00
alteredq a318d87522 Added forgotten THREE namespace to SceneUtils.traverseHierarchy 2011-04-09 20:11:10 +02:00
Mr.doob 6a857400bc REVISION ++ 2011-04-09 12:53:17 +01:00
Mr.doob 76e7ea3461 Added namespace to all the objects that missed it (geometries, uniforms, etc)
WebGLRenderer antialias is off by default (considering Firefox doesn't support it...)
Formatting clean up here and there
2011-04-09 12:38:39 +01:00
Mr.doob d1ae3fb45b Updated builds. All seems to be good again. 2011-04-09 08:37:28 +01:00
Mr.doob e8847848ad Merging with alteredq's branch. 2011-04-09 08:22:59 +01:00
Mr.doob b2d39cf832 WebGLRenderer now logs some GL information (I think it may be handy).
Stencil and Sprite examples now using RequestAnimationFrame.
2011-04-08 10:16:10 +01:00
alteredq 7915999bdd Added edges to Blender exporter, JSONLoader and Geometry.
There is a new class Edge which stores vertices and faces for edge (I wasn't sure if indices or references would be better, so at least for the moment it contains both).

Geometry now contains a list of such edges, created in JSONLoader, based on edge data exported from Blender.

From Blender we get a list of vertex index pairs, from which in Geometry.computeEdgeFaces() we compute faces which share this particular edge and store them in the Edge object.

Not sure if edges work properly till we don't have something using them. For now I just checked cube data exported from Blender and it seems fine.

Also did some whitespace cleanup here and there.
2011-04-05 00:18:36 +02:00
Mr.doob 5742cceefd Ray: Added support for object.flipSided and object.doubleSided properties. 2011-04-04 13:10:25 +01:00
Mr.doob b899391008 Updated buillds. 2011-04-04 05:13:04 +01:00
alteredq 27b0ee0be7 Updated Loader to handle more material parameters (blending, transparent, depthTest). 2011-04-01 15:53:39 +02:00
Mr.doob 29da25e746 WebGLRenderer: Added internal cache for compiled shaders. Already compiled shaders get reused. 2011-04-01 07:38:22 +01:00
alteredq d12252421e Synced with mrdoob's branch. 2011-03-31 23:48:38 +02:00
Mr.doob 816d19a8d6 REVISION ++ 2011-03-31 22:29:53 +01:00
alteredq 36cd380725 Synced with mrdoob's branch. 2011-03-31 09:12:57 +02:00
Mr.doob 8af4dd49c1 WebGLRenderer now uses material.transparent to determine whether a material is transparent or not.
Moved materials/RenderTarget.js ⟶ renderer/WebGLRenderTarget.js
2011-03-31 07:22:44 +01:00
alteredq ccc566463e Replaced QuakeCamera's dragToLook parameter with activeLook parameter.
DragToLook was weird, instead activeLook can be now used for simple switching on/off of mouse look around.
2011-03-30 06:38:24 +02:00
Mr.doob 01d60217cc Updated builds. 2011-03-29 20:30:06 +01:00
Mr.doob 3960e5c8ef Camera was hitting infinite loop when useTarget = true. Hopefully this fixes it.(Thx bai) 2011-03-29 10:11:01 +01:00
Mr.doob 532929d510 WebGLRenderer: Added distance (falloff) to PointLight. 2011-03-29 06:13:21 +01:00
alteredq dc8c98db5f Put some shader attributes behind #ifdef in buildProgram.
This is to see if it helps with shader validation complains that recently started to pop up in Chrome ANGLE (but curiously not in Firefox ANGLE).
2011-03-28 16:24:22 +02:00
Mr.doob 5c684f93d8 Updated builds. 2011-03-27 08:04:26 +01:00
alteredq 33e5a9bfe0 Added very basic Three.js Blender importer.
Very much work in progress, for the moment it creates just pure geometry (no normals, uvs, colors or materials).

Also fixed bug in JSONLoader in handling of face uvs.
2011-03-27 08:47:11 +02:00
Mr.doob 59443e5725 WebGLRenderer: Some clean up of blending modes.
NormalBlending is a bit better. But it's now producing some premultiplied-alpha-looking issues still :/

Created a couple of tools for making this process less painful:

http://mrdoob.com/lab/javascript/webgl/blending/blendfunc.html
http://mrdoob.com/lab/javascript/webgl/blending/blendfuncseparate.html
2011-03-26 10:41:58 +00:00
alteredq 0496571235 Updated model loader, scene loader and scene format.
- model loader now handles "wireframe" parameter

- scene light colors are now specified via hex numbers

- scene format now includes additional parameter "urlBaseType" specifying where loader will look for included files:
    - options are "relativeToHTML" (look for files under HTML url http://example.com/mydemo/index.html)
      and "relativeToScene" (look for files under url from where scene was loaded http://example.com/assets/myscene/scene.js)
2011-03-25 03:22:32 +01:00