Commit Graph
2398 Commits
Author SHA1 Message Date
alteredq 36338eeeef Tweaked and renamed geometry extrude examples. 2011-11-30 12:12:39 +01:00
alteredq 999964a3d4 Merge remote-tracking branch 'remotes/grorg/extruded-object-materials' into dev 2011-11-30 11:19:15 +01:00
Dean Jackson 5965061ca1 Extruded geometry was treating materials as objects rather than indices and
UV mapping of extruded geometry was miscalculated.

- ExtrudeGeometry was documented to take a Three.Material for the
  "material" and "extrudeMaterial" parameters, but the examples and
  usage in TextGeometry showed that these were in fact indices into
  the materials array. This meant that the tests such as "if (material)"
  would evaluate to false if the index passed in was 0 (a very typical
  index to choose :). Simply have the tests check against undefined and
  update the documentation.

- Also, the code that converted a shape into a set of triangles was
  miscalculating the UV offsets. It was correctly dividing the UV by
  the bounding box of the old shape, but was forgetting to offset the
  value from the minimum (which potentially led to negative UVs).
2011-11-30 08:40:27 +11:00
alteredq 370d20b407 Refactored normal map shader.
Doing normalization of normals / binormals / tangents in fragment shader instead of vertex shader. This seems to help with artefacts appearing in certain models with OpenGL rendering backend.

Also added modulating environment reflection by specular map.
2011-11-29 12:20:54 +01:00
Mr.doob d9f055c989 Eek! That wasn't supposed to go in. 2011-11-29 03:32:15 +01:00
Mr.doob 5697084e64 Moved RequestAnimationFrame.js code right into src/Three.js. 2011-11-29 03:29:13 +01:00
alteredq befc98a01e Refactored bounding box to use 2x Vector3 instead of custom object. 2011-11-25 03:01:00 +01:00
alteredq b1ef3409a6 Sorting out accidental double-merge. 2011-11-25 00:42:28 +01:00
alteredq 3aa1767844 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-11-25 00:33:32 +01:00
Mr.doob c5613ebb53 Implemented again @ekitson's improvement to GeometyUrils.center. Increased light intensity in loader_json_blender example. 2011-11-25 00:31:12 +01:00
Mr.doob 955705f73e Merge remote-tracking branch 'alteredq/dev' into dev 2011-11-25 00:18:32 +01:00
Mr.doob 5bcf179d3e Merging with @alteredq's branch. 2011-11-25 00:18:21 +01:00
Mr.doob a640e74c70 Merge remote-tracking branch 'AddictArts/dev_collada' into dev 2011-11-25 00:15:06 +01:00
alteredq 1d5a72ddc9 Resurrected UVs normalization (as GeometryUtils.normalizeUVs).
Turns out it may be useful after all, seems some GPUs may have troubles dealing with texture coordinates outside of <0,1> (need to be tested if normalization helps there).
2011-11-24 22:36:30 +01:00
Erik Kitson 298afecf80 Added progress callback to ColladaLoader. 2011-11-24 10:22:39 -08:00
Erik Kitson fe8e1b881f Added option to ColladaLoader to recenter all Geometry so that they are centered around the local origin of their containing Mesh. 2011-11-24 10:21:12 -08:00
alteredq 86fac679c3 Renamed some examples.
As per discussion here:

https://github.com/alteredq/three.js/commit/457be13975345dcd53f5a07f38ac09b5bada5f0b
2011-11-24 18:05:46 +01:00
Mr.doob a3d2d1cea8 Undefined "u" var. This code pattern is indeed risky. 2011-11-24 17:07:58 +01:00
Mr.doob e7a71da071 Merge remote-tracking branch 'paulmcpazzi/master' into dev 2011-11-24 17:03:12 +01:00
Paolo Moretti 808d62b1f6 Added support for Camera Up Direction in SceneLoader 2011-11-24 13:21:49 +01:00
Paolo Moretti 407d682932 Added support for Camera Up Direction in SceneLoader 2011-11-24 11:57:49 +01:00
Mr.doob 7911a8a81c Merge remote-tracking branch 'alteredq/dev' into dev 2011-11-24 03:27:13 +01:00
Mr.doob 2ea8cbae2a Fixed a bug in GeometryUtils.merge where it would create a material index per face. 2011-11-24 03:26:46 +01:00
alteredq 457be13975 Added example of animated textured character exported from Blender. 2011-11-23 23:25:29 +01:00
Mr.doob cd33824929 Merge remote-tracking branch 'alteredq/dev' into dev 2011-11-22 18:15:35 +01:00
Mr.doob 8749fe04db Color.getHex() de-obfuscated.
Is not used so much anymore so we can have it with a less obfuscating syntax.
2011-11-22 18:15:15 +01:00
alteredq 43036191c6 Added frustum culling also for ParticleSystems.
This is optional, for now by default it's off, like it was before. It's up to application to update geometry bounding sphere if vertex positions change (like for meshes).
2011-11-22 06:26:00 +01:00
alteredq bac513dda9 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-11-22 06:03:52 +01:00
alteredq 0fd25ba910 Added keeping stats also for point sprites. 2011-11-22 05:57:27 +01:00
Mr.doob aac4384e1c Updated builds. 2011-11-21 23:37:22 +01:00
Mr.doob 976607d346 Merge remote-tracking branch 'AddictArts/dev' into dev 2011-11-21 23:32:17 +01:00
Erik Kitson cbccd87d57 Reverted changes to Animation class and moved to new KeyFrameAnimation class. 2011-11-21 14:07:47 -08:00
Mr.doob f14e3dc72f Added .crossOrigin to Loader and ImageUtils.
Should fix #779...
2011-11-21 22:06:34 +01:00
Mr.doob 3be2cdae2c Better Rectangle.intersects() formula. 2011-11-21 20:18:37 +01:00
alteredq d906f301bd Updated builds. 2011-11-21 15:34:14 +01:00
alteredq 90097cf401 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-11-21 15:32:03 +01:00
alteredq 7168bc2435 Added more random functions to THREE.Math 2011-11-21 15:30:42 +01:00
Mr.doob 606f008bec Fixed wrapping handling in ColladaLoader. 2011-11-21 07:35:16 +01:00
Mr.doob 618a079045 Changed some more .children to .childNodes. (Fixes webgl_collada.html example) 2011-11-21 07:08:53 +01:00
Mr.doob 13e3c8f255 Updated builds. 2011-11-21 06:20:23 +01:00
Mr.doob 1e6ed88594 Merge remote-tracking branch 'AddictArts/dev' into dev 2011-11-21 06:10:56 +01:00
Erik Kitson ef56fd9b79 Fixed references to Firefox-specific "children" attribute. 2011-11-20 19:59:34 -08:00
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 db6cb6d1cf Fixed ColladaLoader issue where node id was non-existent.
Fixes issue #747
2011-11-20 19:01:09 +01:00
Mr.doob 5d5bb3db00 Added .crossOrigin = '' to Loader.load_image() (thanks @remoe). 2011-11-20 18:43:18 +01:00
Mr.doob 48b3a72538 Simplified geometries example. 2011-11-20 16:28:03 +01:00
Mr.doob 032c511220 Updated builds. 2011-11-20 16:18:27 +01:00
Mr.doob b23690f90b ColladaLoader, checking if responseXML exist before parsing it. Removed ?rnd= bit, not sure why that was there... 2011-11-20 16:10:48 +01:00