Commit Graph
2146 Commits
Author SHA1 Message Date
Mr.doob 6b151b552e Merging with @alteredq's experimental branches. 2011-10-23 12:34:46 +02:00
Mr.doob 20c96f52e9 Reverted changes, starting again. 2011-10-23 10:04:28 +02:00
Mr.doob 330ab77836 WIP WebGLRenderer refactoring 2011-10-16 11:36:09 +02:00
alteredq a8869f9e5b Quick and dirty hack to get WebGLRenderer working with new scene graph.
This is not supposed to be "proper" solution (for example this doesn't solve removing of objects), but at least some WebGL examples are working now.
2011-10-15 20:13:36 +02:00
alteredq 093fbbe334 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev
WebGL part of this branch is completely broken. Do not use. This is for further merging.
2011-10-15 18:37:59 +02:00
Mr.doob 6742f8e4a4 Merge remote-tracking branch 'sirlantis/patch-1' into dev 2011-10-15 09:01:58 +02:00
Mr.doob d2b8a07822 Changed ColladaLoader so it doesn't create extra Object3Ds for each mesh.
Updated Stats.
2011-10-15 09:00:41 +02:00
Marcel Jackwerth b6e6624a1d Added missing minus sign. 2011-10-14 19:46:29 +03:00
Marcel Jackwerth d49f2d3281 Always use shortest path for Quaternion.slerp (also see: http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/slerp/ Other Issues, Inverting Quaternions) 2011-10-14 18:54:44 +03:00
Mr.doob 61dca43a51 Merge branch 'master' into dev 2011-10-13 05:12:17 +02:00
Mr.doob 3433b49cba Beautified usage example. r45 2011-10-13 05:12:01 +02:00
Mr.doob 8a92374fd0 Merge branch 'master' into dev 2011-10-13 04:34:12 +02:00
Mr.doob 77d7a999af Somehow the trails example got deleted... ? 2011-10-13 04:34:00 +02:00
Mr.doob 0cc9b95e1e Merge branch 'master' into dev 2011-10-12 05:50:09 +02:00
Mr.doob 44730f9324 Adding "Lights" to featured projects list. 2011-10-12 05:49:38 +02:00
Mr.doob 698c15fdce Tab fix. 2011-10-12 05:47:00 +02:00
Mr.doob e81b2361d7 Merge remote-tracking branch 'cscott/master' into dev 2011-10-11 20:46:34 +02:00
alteredq a529e4c783 Fixed dynamic cube map cars demo.
Finally, the trouble was at the application level: renderer.clear clears the current framebuffer, which, if you juggle multiple render targets, doesn't have to be necessarily the screen. Here it was the last face of cube render target.
2011-10-11 02:31:55 +02:00
Mr.doob fb4f5f8467 Merge remote-tracking branch 'Knectar/dev' into dev 2011-10-11 02:21:16 +02:00
alteredq d2c6487b41 Fixed random clipping of objects in WebGLRenderTargetCube / CubeCamera.
Turns out before all cube texture faces shared a single depth buffer.

Last cube face still missing.
2011-10-11 00:38:28 +02:00
C. Scott Ananian ed38b18fd9 Fix scene loader when there is nothing asynchronous to be loaded. 2011-10-10 18:06:58 -04:00
alteredq addb3a12a9 Refactored CubeCamera / cube map handling.
Before lighting was messed up in dynamically generated cube maps.

Dynamic cube maps need to have flip uniforms (flipEnvMap / tFlip) set to 1, static cube maps to -1 (default).

For standard materials this is handled automatically, it's just something to be aware of when using cube maps in custom ShaderMaterials (dynamic and static cube maps have different cube face orientations, dynamic ones are correct, static ones need flipped x-axis in lookup vector).

There is still mystery of disappearing last cube face (negative-Z) and weirdly clipped objects in cars demo (works ok in simpler test).
2011-10-10 23:39:22 +02:00
Daniel c783410a1a Octahedron subdivisions to default to 0. 2011-10-10 18:54:56 +01:00
Mr.doob 8edb3f18b2 Removing (now unused) stuff from Projector. 2011-10-09 07:11:19 +02:00
Mr.doob 378c3fdfed Removing some deprecated warnings.
Maybe a bit too early, but just want to see that code clean and simple...
2011-10-09 07:01:18 +02:00
Mr.doob 0971db286f I wonder if this still affects performance nowadays. 2011-10-09 06:49:07 +02:00
Mr.doob 6419bd37d9 Got CanvasRenderer and SVGRenderer using the new Scene Graph.
* The new system allow us to add lights and cameras as children of any object without hacks.
* The Camera needs to be added to a Scene. If the Camera has no parent it's added to the Scene being renderer automatically.
* I'll work on implementing this into the WebGLRenderrer tomorrow (gonna be a looong day... ).
2011-10-09 06:46:03 +02:00
Mr.doob 1e5fc98582 Reworking Scene Graph setup. 2011-10-09 01:13:46 +02:00
Mr.doob 9a6a20b57b GUI: Small tweaks to loaders code. 2011-10-09 01:11:29 +02:00
Mr.doob 330b64b080 Removed some (now gone) WaltHead.js includes. 2011-10-08 21:10:17 +02:00
Mr.doob 2c8967b124 Fixed CanvasRenderrer incorrectly SphericalReflectionMapping Face4 rendering.
Also replaced WaltHead.js (old format) with WaltHeadLo.js (new format)
2011-10-08 21:04:26 +02:00
Mr.doob 8db9d6fd61 GUI: Snap to axis (press x,y or z when moving). Added TrackballControls
Added this.enabled property to TrackballControls.
Simplified TrackballControls code.
2011-10-08 19:43:11 +02:00
Mr.doob 71ebe4e544 GUI: Replaced the 4 views with just a single perspective view. 2011-10-08 05:37:11 +02:00
zz85 9498ebc3b2 Gui code change 2011-10-08 10:23:15 +08:00
zz85 13c08981db Merge branch 'master' into gui 2011-10-08 10:19:12 +08:00
zz85 07442382f6 Testing viewports 2011-10-08 10:08:18 +08:00
Mr.doob df94d2af57 Moved matrixWorldInverse logic to renderers as per @greggman suggestion.
Now `Camera` can use inherited `update()`
2011-10-08 03:38:49 +02:00
Mr.doob 3a2c28488b Merge remote-tracking branch 'alteredq/dev' into dev 2011-10-08 02:37:16 +02:00
Mr.doob ed8df3acab Corrected README typo 2011-10-08 02:36:54 +02:00
alteredq 456fe3ccff Rewritten URL and BlobBuilder shims. 2011-10-08 02:13:33 +02:00
alteredq ae8c84a7fe Made GUI drag-n-drop work also in Firefox. 2011-10-08 01:31:13 +02:00
Mr.doob d4704fe8db Updated builds. 2011-10-08 00:30:20 +02:00
Mr.doob 7d3e482555 Merge remote-tracking branch 'alteredq/dev' into dev 2011-10-08 00:28:07 +02:00
Mr.doob b66c1e5744 GUI: Added support for dropping .js files
Remembered that @alteredq managed to get this working on a viewer for ro.me. So I just copied the code :)
2011-10-08 00:22:26 +02:00
Mr.doob 7891f2b33b JSONLoader.load( parameters ) to JSONLoader( url, callback, texturePath ) 2011-10-08 00:21:13 +02:00
alteredq 51b6db1c54 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-10-07 22:54:56 +02:00
alteredq 8ab93926ce Fixed bug causing disappearing wireframe objects in mixed scenes. 2011-10-07 22:53:57 +02:00
Mr.doob 319d423262 Forgot marklundin's credit. 2011-10-07 21:54:47 +02:00
Mr.doob 2928cce2d9 Parallax Barrier WebGL Renderer
Pretty useless, no way I can try it and it's probably done in hardware anyway. But looks cool :P
http://en.wikipedia.org/wiki/Parallax_barrier
2011-10-07 21:22:48 +02:00
Mr.doob fbbfb3b683 Merge remote-tracking branch 'alteredq/dev' into dev 2011-10-07 21:02:44 +02:00