Commit Graph
94 Commits
Author SHA1 Message Date
alteredq 9f7f8fd015 Half-baked LOD attempt.
This doesn't handle properly order of updates of LOD vs camera.
2011-10-24 15:19:59 +02:00
alteredq b2b7282fcd Got skinning working again.
Code is a horrible mess but at least it works. Anyways, some day we should revisit GPU accelerated skinning with a proper pipeline.
2011-10-24 14:33:34 +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 d4b2e4a8e0 Added color parameter to Sprite.
Also removed unused material Sprite parameter.
2011-09-17 00:36:44 +02:00
Mr.doob f105cbb7e2 LOD.add > LOD.addLevel 2011-09-04 21:58:16 +02:00
Mr.doob 714e9ec302 REVISION++
* Added support to texture.offset in CanvasRenderer
* Removed ShadowVolume, ShadowVolumeDynamicMaterial and LensFlare classes.
* Removed Stencil Shadows and LensFlare code out of WebGLRenderer
* Added 2.59 folder to Blender, and removed old ones.
2011-08-14 02:54:23 +02:00
alteredq a4665c770e Small refactoring in morph attributes initialization plus some whitespace cleaning. 2011-08-04 18:09:50 +02:00
alteredq 59e5d7ada4 Small optimizations in attributes setting and some whitespace cleanup. 2011-08-04 16:51:02 +02:00
Mr.doob a5b7ea85a9 Removed Sound object and SoundRenderer.
Updated misc_sound example with same functionality.
2011-07-03 15:10:28 +02:00
Mr.doob 176d0f2884 Merging with @alteredq's branch. 2011-07-03 12:56:50 +02:00
jsermeno 1e19c2814b Add optional scaleByViewport parameter to Sprite.js 2011-06-19 20:28:54 -07:00
alteredq 7991af215a Added forgotten namespace to Sprite. 2011-06-12 18:26:05 +02:00
alteredq adca3ad139 Small optimization: moved doubleSided and flipSided properties from Mesh up to Object3D.
Having these "undefined" for non-mesh objects was causing unnecessary GL state setting when having scenes with mixed content (and coercing "undefined" to boolean turned out to be similarly costly as state setting).
2011-06-01 23:50:11 +02:00
Mr.doob c1ce040781 Updated Projector's Particle handling (it wasn't using hierarchy). 2011-04-21 10:42:30 +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 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
Mikael Emtinger d8e5678ece Optimized initalization of ShadowVolumes by using supplied edge information (if available) 2011-04-08 13:34:05 +02:00
Mikael Emtinger 36bc61e5e9 Fixed several small sprite bugs and updated example. 2011-04-08 10:37:31 +02:00
alteredq f7d97caf1d Merged with empaempa's branch. 2011-04-07 21:29:21 +02:00
Mikael Emtinger 08127af611 Fixed blending bug with sprites. Added example. 2011-04-07 17:10:54 +02:00
Mikael Emtinger 615f872023 Added sprite support. See Sprite.js for details. No support for custom shader at this point. 2011-04-07 15:52:57 +02:00
alteredq f221b853b7 Refactoring and optimizations in collision system and examples.
Mainly trying to avoid creation of new object per frame and also some variable names clarifications and whitespace cleanups.

Not finished yet.
2011-04-06 00:07:13 +02: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 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
Mikael Emtinger 95e92d9026 Stencil shadows added 2011-03-24 09:09:25 +01:00
Mr.doob bf730ab966 Added base for new Loader. 2011-03-19 23:49:44 +00:00
Mr.doob c580473ff8 Removed visible check on Object3D.update (children transforms didn't get updated otherwise). 2011-03-16 20:49:09 +00:00
Mikael Emtinger f03f67da1c Commit befor merge 2011-03-15 08:19:51 +01:00
Mikael Emtinger b4b730c07d Morph targets added 2011-03-11 17:09:23 +01:00
Mikael Emtinger b2fa718d8d Unmergable: commited to be able to merge with alterq. 2011-03-11 08:07:44 +01:00
Mikael Emtinger 29d45e6da5 Mergable: Added VertexAnimatedMesh. 2011-03-10 12:19:56 +01:00
Mikael Emtinger 549f9b03a5 Merged with alteredq. 2011-03-07 08:50:51 +01:00
Mikael Emtinger 0ee15104cb Fixed bug: bone.useQuaternions wasn't set, it is now. 2011-03-07 08:32:39 +01:00
Mr.doob 1a115ae86f Object3D::matrixNeedsUpdate ⟶ Object3D::matrixWorldNeedsUpdate
Object3D::lookAt works! (and Vector3.setRotationFromMatrix too!)

Next: Object3D::translate...
2011-03-05 20:46:25 +00:00
Mikael Emtinger 2ab6fb41ad Mergable:
Animation.js - fixed scale bugs and removed flattenToArrayOffset
AnimationHandler.js - fixed so keyframes at same time is removed
Matrix4.lookAt - fixed so it handles situations where z === up and where eye === target
SkinnedMesh.update - added flattenToArrayOffset in end of update
2011-03-04 16:08:54 +01:00
Mr.doob 431b14f98e Merging with empaempa's branch 2011-03-01 09:32:08 +00:00
Mr.doob 7480fb69cd Updated README examples.
Sound3D ⟶ Sound
2011-02-26 14:21:15 +00:00
Mr.doob d1e3a9d872 Object3D::screenPosition ⟶ Object3D::positionScreen
Yet more reformating.
2011-02-26 10:52:35 +00:00
Mr.doob c7aa2ab3d1 Object3D::localMatrix ⟶ Object3D::matrix
Object3D::globalMatrix ⟶ Object3D::matrixWorld

Added hierarchy examples.
2011-02-26 10:31:18 +00:00
Mr.doob 27dc056af4 Minor refactoring and clean up. 2011-02-26 06:51:23 +00:00
alteredq 7415759392 Added 3d sound support plus example.
Thanks to @mikaelemtinger ;)
2011-02-25 09:08:15 +01:00
Mr.doob a4a8f184c6 src/objects/Object3D.jssrc/core/Objects3D.js 2011-02-22 23:26:19 +00:00
alteredq b36cf734bd Removed dirty flag from Quaternion.
There don't seem to be any effects on performance (though I'm not sure this was actually used in any example/test code path - so far quaternions are used just for animation interpolation and even there they were always dirty, and also just updated during JIT baking).

Also some more code cleanup - no need for Mesh to have own "update" as now it was exactly the same as its parent Object3D.
2011-02-21 03:06:17 +01:00
Mr.doob 30a3d14c2d Object3D::rotationMatrix ⟶ Object3D::matrixRotation
I need to look at this objectMatrix::extractRotationMatrix() thing. I don't think this works like that... isn't the scale applied to the rotation in the matrix?
2011-02-20 06:09:14 +00:00
Mr.doob 106db4c3f8 Object3D::autoUpdateMatrix ⟶ Object3D::matrixAutoUpdate
Object3D::matrixNeedsToUpdate ⟶ Object3D::matrixNeedsUpdate
2011-02-20 05:35:13 +00:00
Mr.doob 642cfbfe1d Merge remote branch 'alteredq/skinning' into skinning 2011-02-20 03:51:36 +00:00
alteredq eae36edf1e Added Ribbon.js 2011-02-20 04:50:35 +01:00
Mr.doob 251a7d53b8 Figured out why Canvas/SVG wasn't rendering... someone changed camera.near/far to camera.zNear/zFar :P 2011-02-20 03:09:23 +00:00