philogb and Mr.doob
c8aacd8cdc
Add Color methods to prototype object.
2010-09-18 23:08:08 +08:00
philogb and Mr.doob
4074b8097f
Ignore .project extensions
2010-09-18 23:08:08 +08:00
Mr.doob
14b5a3ebb5
- README tweaks
2010-09-17 03:06:25 +01:00
Mr.doob
e68109fdb2
- Clean up
2010-09-17 02:52:29 +01:00
Nicolas Garcia Belmonte and Mr.doob
10681d6684
* Bug Fix: Matrix4.makeInvert was calling a non existent scale method. Replaced with multiplyScalar.
...
* Bug Fix: DirectionalLight wasn't normalizing the direction vector.
* Added lights to the scene for test.html
2010-09-09 18:47:39 +08:00
Nicolas Garcia Belmonte and Mr.doob
ad73c981ee
* Enable Scene light object management
...
* Add lighting code in the scene rendering loop
2010-09-09 18:47:39 +08:00
Nicolas Garcia Belmonte and Mr.doob
d342239c4a
Added light objects
2010-09-09 18:47:39 +08:00
Nicolas Garcia Belmonte and Mr.doob
24005fc1e1
Added basic lighting shader code
2010-09-09 18:47:38 +08:00
Nicolas Garcia Belmonte and Mr.doob
a53ad5a79a
Added normals to WebGLRenderer
2010-09-09 18:47:38 +08:00
Nicolas Garcia Belmonte and Mr.doob
78561a35e6
Fixed the computeNormals method.
2010-09-09 18:47:38 +08:00
Nicolas Garcia Belmonte and Mr.doob
20be01f159
Added transpose method to Matrix4
2010-09-09 18:47:37 +08:00
Nicolas Garcia Belmonte and Mr.doob
a319fe3c7b
Added a clone of the geometry_cube example working with the WebGL renderer.
2010-09-03 20:54:55 +08:00
Nicolas Garcia Belmonte and Mr.doob
636d108e4b
WebGLRenderer fixes:
...
* Added float precision in shader code to shaders compile now.
* Changed occurrences of WebGL typed Arrays and UnsignedShort typed arrays to new array types
2010-09-03 20:54:54 +08:00
Nicolas Garcia Belmonte and Mr.doob
ab1d219eda
Added flatten method to Matrix4 to be used in the WebGLRenderer.
2010-09-03 20:54:54 +08:00
Nicolas Garcia Belmonte and Mr.doob
d8c093c030
No files changed here.
2010-09-03 20:54:34 +08:00
Mr.doob
216b4eeee2
* Workaround for Opera bug (clearRect not working with context with negative scale)
...
* Additional `Matrix4` and `Vector3` methods
2010-08-21 02:58:07 +01:00
Mr.doob
010f5829e6
- Added Matrix4.multiplyScalar, Matrix4.determinant and Matrix4.makeInvert
2010-08-02 05:50:59 +01:00
Mr.doob
680000c289
- Forgot the stats.js > Stats.js change in some examples...
2010-07-25 18:44:47 +01:00
Mr.doob
9c796ce6ae
- Of course, all examples had to point to the renamed file...
2010-07-25 03:51:23 +01:00
Mr.doob
8b18eafc78
- Added "Or so they say..." demo to featured projects.
...
- Camelcased the minified files (it feels weird both ways anyway...)
2010-07-25 03:34:29 +01:00
Mr.doob
ada5ff2536
- Show ParticleBitmapMaterial center when using three_debug.js
2010-07-23 21:27:02 +01:00
Mr.doob
5fe1f2a6d1
- ParticleBitmapMaterial.offset clearRect fixed
...
- Face4 with MeshBitmapMaterial gap fixed
2010-07-23 20:19:16 +01:00
Mr.doob
217b1505a3
- Added ParticleBitmapMaterial.offset (Vector2)
2010-07-22 08:10:04 +01:00
Mr.doob
c4d39ba6ae
- UV 1,1 trying to access unexisting pixels on the texture
2010-07-21 00:33:28 +01:00
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
philogb and Mr.doob
f0f3483f91
Remove useless alert.
2010-07-14 20:58:35 +08:00
philogb and Mr.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