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
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
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
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
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
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
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
4d0fdbb1c6
- Scene.add > Scene.addObject
...
- Enabled Scene.removeObject
- Removed computeNormals() from Geometry
2010-07-03 17:49:24 +01: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
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
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
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
90f54e2507
- CanvasRenderer expands screen space points (workaround for antialias gaps).
...
- CanvasRenderer supports TextureUVMappingMaterial.
- Moved UVs to Geometry.
- Minor clean up
2010-06-07 03:36:10 +01:00
Mr.doob
06c7ec335f
- Added Camera3D.autoUpdateMatrix
...
- Added Object3D.autoUpdateMatrix
2010-06-05 21:16:16 +01:00
Mr.doob
e98397cb5a
+ Added Line Object
...
+ Workaround for WebKit not supporting rgba() in SVG yet
+ Aesthetic changes on the readme file
2010-06-05 20:07:04 +01:00
Mr.doob
493d6769d9
CanvasRenderer: Initialise ClearRect
...
CanvasRenderer: Min of ClearRect with ClipRect
2010-05-17 12:02:52 +01:00
Mr.doob
530f87070f
2d clipping on CanvasRenderer and SVGRenderer
...
clearRect optimisations on CanvasRenderer
2010-05-17 11:36:27 +01:00
Mr.doob
3b334a3f40
VectorX.set()
2010-05-16 17:30:46 +01:00
Mr.doob
47ba30790a
Vector3.multiply -> multiplyScalar
...
Vector3.cross -> crossSelf
added Vector3.multiplySelf and others (kile)
2010-05-16 17:26:54 +01:00
Mr.doob
2a334e0862
Credit where credit is due.
2010-05-16 16:38:54 +01:00
Mr.doob
a6e98d7e9a
Removed Class.js dependency
...
Added THREE namespace
Camera.x -> Camera.position.x
Camera.target.x -> Camera.target.position.x
ColorMaterial -> ColorFillMaterial
FaceColorMaterial -> FaceColorFillMaterial
Materials are now multipass (use array)
Added ColorStrokeMaterial and FaceColorStrokeMaterial
geometry.faces.a are now indexes instead of links
2010-05-16 05:32:43 +01:00
Mr.doob
106c77b9d0
Reverting
2010-05-01 15:36:37 +01:00
Paul Brunt and Mr.doob
91023d3f8a
webgl finally rendering
2010-05-01 21:45:32 +08:00
Paul Brunt and Mr.doob
aac043805c
first attempt at webGL renderer - not working yet
2010-05-01 19:42:16 +08:00
Paul Brunt and Mr.doob
1186a312f3
correct minor error in particle sizes
2010-05-01 19:42:10 +08:00
Paul Brunt and Mr.doob
daf53d854d
Now using projection matrix and particles are culled
2010-05-01 19:42:01 +08:00
Mr.doob
8d80942e27
SVGRenderer Particle support. CanvasRenderer context.setTransform(). Minor tweaks
2010-04-26 02:48:16 +01:00
Mr.doob
d7c890eab8
Matrix4 clean up. Workaround for Android's browser touch event bug.
2010-04-24 22:54:23 +01:00
Mr.doob
4f22f423b5
Fixed incorrect rotation matrix calculation. Particles examples clean up. Added Cube and Plane primitives. Added Cube geometry example.
2010-04-24 21:25:21 +01:00
Mr.doob
271ad498c6
Better handling of Color
2010-04-24 17:18:02 +01:00
Mr.doob
a90c4e107f
First public version. Still a lot to do
2010-04-24 04:01:19 +01:00