946 Commits
Author SHA1 Message Date
Mr.doob 482fe243a4 Removed Matrix4.multiplyVector3OnlyZ as it's not being used... ? r35 2011-03-06 11:05:30 +00:00
Mr.doob 952631c923 REVISION++
Added some examples to README.
2011-03-06 09:41:15 +00:00
Mr.doob 2a6be883f2 Merge remote branch 'alteredq/master' 2011-03-06 09:16:18 +00:00
Mr.doob c89b4008f3 Added translate( distance, axis ), translateX( distance ), translateY( distance ) and translateZ( distance ) methods to Object3D.
Camera3D translate method overrides Object3D's one. NoFly parameter removed (this should be handled from outside I think).
2011-03-06 09:16:03 +00:00
alteredq 34d3aaf0ba Synced with mrdoob's branch. 2011-03-06 08:51:52 +01:00
alteredq cacdf02166 Added API for setting viewport and scissor testing. Made texture filtering example more fancy. 2011-03-06 08:48:13 +01:00
Mr.doob 7aa0bf9726 Added lookAt() example. 2011-03-06 06:28:35 +00:00
alteredq 2c996815be Refactored texture updating, added texture filtering example and fixed scene loader and example. 2011-03-06 06:01:40 +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
Mr.doob cf732e694b WebGLRenderer::sortObjects = true by detault.
WebGLRenderer checks if texture is power of 2. Throws an error if it's not.
2011-03-05 14:52:54 +00:00
Mr.doob 63154044d9 Merge remote branch 'alteredq/master' 2011-03-05 13:58:37 +00:00
Mr.doob f2af3864cc Matrix4 public and static methods clean up. 2011-03-05 13:56:22 +00:00
alteredq a8b5c55d1c First very rough version of 3ds max exporter.
Very much work-in-progress. So far it exports only single selected object, if there are more in selection, it'll just break apart.
2011-03-05 08:47:34 +01:00
Mr.doob 58701d586e I don't think creating functions in global space is a good idea ;) 2011-03-04 13:39:12 +00:00
alteredq bbe7e87df6 Changed OBJ converter to use just texture file names instead of full absolute file paths. 2011-03-03 23:26:44 +01:00
Mr.doob 664646e8b4 WebGLRenderer minor fixes. 2011-03-03 14:51:26 +00:00
Mr.doob 4ba3695dbc Merge remote branch 'empaempa/master' 2011-03-03 14:24:24 +00:00
Mikael Emtinger 4f23b1e107 Mergable:
Animation: Support for Catmull-rom interpolation on position. Please see index.html for example.
AnimationHandler: ...same.
WebGLRenderer: Removed THREE.AnimationHandler.update( deltaTimeMS ) as this is supposed to be called by user.
2011-03-03 14:46:53 +01:00
Mr.doob 6e16d3b297 Removed WebGLRenderer2.
Minor tweaks.
2011-03-03 13:43:16 +00:00
Mr.doob 795abb58a9 Uops! Forgot to increase REVISION's number :S 2011-03-03 08:46:12 +00:00
Mr.doob 66cd1198e3 Updated examples and utils that used Cube(). 2011-03-03 08:31:00 +00:00
staunsholm eea0ee67ff added segmentsDepth to Cube.js 2011-03-02 15:12:43 -08:00
alteredq ea3961d6a6 Made dynamic objects work. 2011-03-02 21:34:44 +01:00
Mr.doob 4590683d4b WebGLRenderer stops rendering objects when removed from the scene. 2011-03-02 19:09:21 +00:00
Mr.doob 88c2d7c77b Moved Object::sortObjectByMaterials to WebGLRenderer (so it's done automagically).
WebGLRenderer: renamed geometryChunks to geometryGroups :P
2011-03-02 15:51:09 +00:00
Mr.doob 42bbe96729 Copy/Paste fail.
It's now r34 btw.
r34
2011-03-02 06:02:19 +00:00
Mr.doob 568beba848 Fixed LOD example.
Commented Camera frustrum code. It's not being used, right?
2011-03-02 05:58:54 +00:00
alteredq ccdff87382 Changed also JSON model files and exporters/converters to use CamelCase property names.
Only Blender 2.56 exporter and OBJ converter were tested. If somebody is using other ones, please reexport some files to be sure they work.
2011-03-02 05:55:29 +01:00
alteredq 5767dae483 More tweaks to QuakeCamera. 2011-03-02 02:59:22 +01:00
alteredq d006967b13 Added autospeed based on height to QuakeCamera. 2011-03-01 23:45:20 +01:00
alteredq fab828e8e4 Added autoForward parameter to QuakeCamera. 2011-03-01 21:37:08 +01:00
alteredq 78df6337d6 Forgotted Spline.js 2011-03-01 17:32:00 +01:00
alteredq 0e450db259 Tweaks to lod example. 2011-03-01 16:22:33 +01:00
alteredq 7ad44b434c Added level-of-details example (and LOD object to compiled lib).
Thanks to empaempa for implementing this feature ;)
2011-03-01 15:50:14 +01:00
alteredq 0984c4145b Synced with mrdoob's branch. 2011-03-01 14:52:47 +01:00
Mr.doob 30161dab04 Updated README. r33 2011-03-01 11:47:28 +00:00
Mr.doob 33610b4a11 Adapted Projector and CanvasRended to use camera.matrixWorldInverse. 2011-03-01 11:38:35 +00:00
Mr.doob f325cdee85 Merge remote branch 'empaempa/master' into test 2011-03-01 09:32:15 +00:00
Mr.doob 431b14f98e Merging with empaempa's branch 2011-03-01 09:32:08 +00:00
Mikael Emtinger 88a9ad2da7 Mergable: WebGLRenderer.js: changed so camera.matrixWorldInverse is used instead of camera.matrixWorld. 2011-03-01 08:31:37 +01:00
alteredq 03b9dfe80d Extracted Spline from example into core lib. 2011-03-01 03:51:43 +01:00
alteredq b467378bc3 Added Catmull-Rom spline example.
Work-in-progress.
2011-03-01 03:29:04 +01:00
Mikael Emtinger 93dbda08b1 Fixed LOD. 2011-02-28 15:53:12 +01:00
alteredq cf2e8c1bbf Refactored everything to use CamelCase naming for properties. Plus some smaller fixes here and there.
Went through all examples, all should work.

JSON files exported from Blender / converted from OBJ files still use underscored property names internally. I don't know, should these also be changed?
2011-02-28 14:52:04 +01:00
Mikael Emtinger df36675640 Matrix4:
- Wrong in last commit, now the inversion of position is removed
2011-02-28 13:13:20 +01:00
Mikael Emtinger 5c4131d366 Matrix4.lookAt:
- Changed so it sets an ordinary matrix. Also removed inversion of position, which broke A LOT of the examples.

WebGLRenderer:
- Using camera.matrixWorldInverse instead of camera.matrixWorld
- Changed frustum check to camera.frustumContains( object );
- Moved cameraInverse * matrixWorld to vertex shader (needs testing!) (note: normals not fixed yet!)

Object3D.addChild:
- Recurses up through hierarchy until reaches scene and adds itself to scene.objects/sounds/lights

Camera:
- Changed inverseMatrix -> matrixWorldInverse
2011-02-28 13:12:35 +01:00
Mr.doob 1cb0a964f3 (More) Tweaks to README 2011-02-28 06:02:38 +00:00
Mr.doob 00680555f2 (More) Tweaks to README 2011-02-28 06:01:37 +00:00
Mr.doob d43f3ff96b Tweaks to README. 2011-02-28 06:00:45 +00:00
Mr.doob 023d8e946b More tweaks to README 2011-02-28 05:59:47 +00:00