Commit Graph
123 Commits
Author SHA1 Message Date
Mr.doob 5ff2dfcaca - Added Mesh.flipSided boolean 2010-07-19 16:13:40 +01:00
Mr.doob 2c9c52d037 - Added Earth example to README 2010-07-19 14:09:34 +01:00
Mr.doob fbbb78446d - Shadow texture for Earth demo 2010-07-19 13:34:49 +01:00
Mr.doob 2dfcf24e02 - Improved earth demo 2010-07-19 13:34:19 +01:00
Mr.doob a7bed157a3 - Added Sphere primitive
- `three_debug.js` checks for broken UVs and display these faces with pink color instead
2010-07-19 13:23:06 +01:00
Mr.doob 8820e868b9 - Missed a line change on the Blender 2.5b exporter 2010-07-17 14:58:54 +01:00
Mr.doob b381202910 * Using new object UV instead of Vector2 where it should be used 2010-07-17 14:52:39 +01:00
Mr.doob 69dc5dcb8f - Removed unneded code 2010-07-17 03:42:25 +01:00
Mr.doob 8f543db16d * Refactored CanvasRenderer (more duplicated code, but easier to handle)
* `Face4` now supports `MeshBitmapUVMappingMaterial`
* Changed order of `*StrokeMaterial` parameters. Now it's `color`, `opacity`, `lineWidth`.
* `BitmapUVMappingMaterial` > `MeshBitmapUVMappingMaterial`
* `ColorFillMaterial` > `MeshColorFillMaterial`
* `ColorStrokeMaterial` > `MeshColorStrokeMaterial`
* `FaceColorFillMaterial` > `MeshFaceColorFillMaterial`
* `FaceColorStrokeMaterial` > `MeshFaceColorStrokeMaterial`
* `ColorStrokeMaterial` > `LineColorMaterial`
* `Rectangle.instersects` returned false with rectangles with 0px witdh or height
2010-07-17 00:25:50 +01:00
Mr.doob 8e5c8debf9 - Clean up 2010-07-14 14:10:47 +01:00
philogbandMr.doob f0f3483f91 Remove useless alert. 2010-07-14 20:58:35 +08:00
philogbandMr.doob 2b0ea54a4c Core performance improvements through shared props
Old Vector and Matrix constructor functions would create all methods and
make assignments with each call. A lot of speed-ups can be made by using
shared properties through the prototype chain. Since methods and
initialized properties are shared among all instances they're only
created once.

Some tests can be seen at examples/performance-test.html

Some results:

    Chrome

    //6.4 times faster
    performance-test.html:25 Vector2 x 5000000: 213ms
    performance-test.html:30 Vector2Orig x 5000000: 1366ms

    //8.3 times faster
    performance-test.html:37 Vector3 x 5000000: 241ms
    performance-test.html:42 Vector3Orig x 5000000: 2015ms

    //3.8 times faster
    performance-test.html:49 Vector4 x 5000000: 278ms
    performance-test.html:54 Vector4Orig x 5000000: 1059ms

    //7.5 times faster
    performance-test.html:61 Matrix4 x 5000000: 937ms
    performance-test.html:66 Matrix4Orig x 5000000: 7004ms

    Firefox

    //6.8 times faster
    Vector2 x 50000: 45ms
    Vector2Orig x 50000: 307ms

    //11.5 times faster
    Vector3 x 50000: 48ms
    Vector3Orig x 50000: 550ms

    //3.8 times faster
    Vector4 x 50000: 61ms
    Vector4Orig x 50000: 234ms

    //9.4 times faster
    Matrix4 x 50000: 199ms
    Matrix4Orig x 50000: 1878ms

where "Orig" are old versions of the objects.

Running these tests multiple times can yeild different results due to
browser cache. However the results are always kind of similar in terms
of speedup.
2010-07-14 20:58:22 +08:00
Mr.doob f62b6e988d - Added three_debug.js (Renders some debug data) 2010-07-14 00:11:53 +01:00
Mr.doob 1c729ec8a0 - strip() is not the right way to remove substrings, replace() is the right one 2010-07-13 22:49:52 +01:00
Mr.doob 5268aeb0c9 - Blender Exporter: Using filename instead of object name for classname (easier to use that way) 2010-07-13 19:57:44 +01:00
Mr.doob 794e26a94f - My keboard pastes stuff randomly sometimes :/ 2010-07-12 15:34:03 +01:00
Mr.doob 7d43f5394c - While we're at it, let's add particle rotations too. 2010-07-12 15:21:01 +01:00
Mr.doob f4335c5409 - Updated README 2010-07-12 14:44:46 +01:00
Mr.doob 418a1bc287 * Added ParticleCircleMaterial and ParticleBitmapMaterial
* `Particle` now use `ParticleCircleMaterial` instead of `ColorFillMaterial`
* `Particle.size` > `Particle.scale.x` and `Particle.scale.y`
* `SVGRenderer` currently out of sync
2010-07-12 14:40:54 +01:00
Mr.doob c58843f23e - Seems like new dev version of Blender has some Python API changes. (Can't wait until Blender 2.5 gets released :D) 2010-07-10 11:33:12 +01:00
Mr.doob 7b385cf7a8 - First version of the WebGLRenderer (ColorFillMaterial and FaceColorFillMaterial by now)
- Matrix4.lookAt fix (CanvasRenderer and SVGRenderer now handle the -Y)
- Color class now using 0-1 floats instead of 0-255 integers
2010-07-07 02:35:27 +01:00
Mr.doob dfc82f46ba - Added more example projects 2010-07-03 17:49:50 +01:00
Mr.doob 4d0fdbb1c6 - Scene.add > Scene.addObject
- Enabled Scene.removeObject
- Removed computeNormals() from Geometry
2010-07-03 17:49:24 +01:00
Mr.doob fbad38c7e3 - Added "Contributors" section to README 2010-07-03 15:29:17 +01:00
kikko eaea61c306 added UVs and Normals to exported mesh and set mesh name as Classname instead of full path 2010-07-03 15:31:34 +02:00
Mr.doob 9a04c244f3 - Fixed mistake on the README example 2010-06-23 07:53:52 +01:00
Mr.doob 74e70f1358 - Removed unneded updateMatrix in Camera
- Simplified lookAt in Matrix4
- Added cross() in Vector3
2010-06-23 06:24:10 +01:00
Mr.doob 368e6a19c2 - Added WIP Blender 2.5 exporter 2010-06-23 00:27:55 +01:00
Mr.doob b0b3d9644a - Small camera tweaks 2010-06-22 23:20:48 +01:00
Mr.doob 7935bc8ab9 - Changed Camera system. (Thx [Paul Brunt](http://github.com/supereggbert))
- Object3D.overdraw = true to enable CanvasRenderer screen space point expansion hack.
2010-06-22 22:31:48 +01:00
Mr.doob a889bc2cef - Fixed matrix bug (transformed objects outside the x axis would get infinitely tall :S)
- Fixed overdraw when using stroke materials
2010-06-21 04:53:59 +01:00
Mr.doob 2a3d1e35cb * autoClear property for renderers.
* Removed SVG rgba() workaround for WebKit. (WebKit now supports it);
2010-06-20 19:59:36 +01:00
Mr.doob 0aac038d58 - JSLinted 2010-06-19 18:13:00 +01:00
Mr.doob bdd2d95269 - Tweaks on Terrain demo 2010-06-14 01:58:39 +01:00
Mr.doob 26412389ae - Improved Terrain Generator demo. 2010-06-13 21:30:20 +01:00
Mr.doob 2cd123401a - Added codecs metadata on video demo.
- Added terrain demo.
2010-06-13 07:29:51 +01:00
Mr.doob 3755d003f0 - Using .ogv instead of .ogg for clarity. Although it gives mime-type issues... 2010-06-12 00:32:12 +01:00
Mr.doob ecdf342361 - Added support to Theora only browsers on the materials_video example. 2010-06-11 18:57:10 +01:00
Mr.doob ff32637a7d - Wrong title on video demo. 2010-06-11 03:41:59 +01:00
Mr.doob a1eee92ef8 - Added info panel on video demo. 2010-06-11 03:37:55 +01:00
Mr.doob deb5d3ecc3 - Change example links
- Added video example link
2010-06-11 03:29:38 +01:00
Mr.doob 4af8f5406b - Fixed opacity being set to zero when null
- Added (mandatory) video example
- Restructured examples folder
2010-06-11 03:14:56 +01:00
Mr.doob ff72c6b766 - Color alpha is now 0-1 instead of 0-255 (following html's rgba() format) 2010-06-10 05:12:17 +01:00
Mr.doob 9a823c2f6b - Fixed opacity being ignored when setted to 0
- Added wireframe view on VR demo
2010-06-10 05:04:12 +01:00
Mr.doob 225947aaf9 - Minor clean up 2010-06-09 23:36:32 +01:00
Mr.doob 9ccd20f6ad - Added another project 2010-06-08 05:58:40 +01:00
Mr.doob 669072dd90 Linked some similar projects. 2010-06-07 16:15:18 -07:00
Mr.doob 9b14208d3a - Fixed CanvasRenderer UV tweaks 2010-06-07 20:14:19 +01:00
Mr.doob 55e4bde5cd + TextureUVMappingMaterial > BitmapUVMappingMaterial
+ Expand UVs (this should fix the glitches)
2010-06-07 19:43:34 +01:00
Mr.doob c2916dbd07 - Added VR example 2010-06-07 05:03:24 +01:00