Commit Graph
1716 Commits
Author SHA1 Message Date
Mr.doob 714e9ec302 REVISION++
* Added support to texture.offset in CanvasRenderer
* Removed ShadowVolume, ShadowVolumeDynamicMaterial and LensFlare classes.
* Removed Stencil Shadows and LensFlare code out of WebGLRenderer
* Added 2.59 folder to Blender, and removed old ones.
r43
2011-08-14 02:54:23 +02:00
Mr.doob d65aec1874 Moved object.dynamic to geometry.dynamic. 2011-08-13 23:22:30 +02:00
Mr.doob 5bbb1327e9 Fixed CanvasRenderer clearColor with opacity. Now follows WebGL behaviour. (thx @sebleedelisle) 2011-08-13 23:12:24 +02:00
alteredq 42b8b3faa9 Commented out debug dump in UTF8Loader, also capitalized UV.jpg in UTF8Loader example. 2011-08-13 02:13:06 +02:00
alteredq d5a54e0a4e Added UTF8 format loader and example.
Included corresponding compressor in "utils/exporters/utf8" (prebuilt exe for Windows plus slightly modified C++ source code).

Use UTF8 format with caution, it is very neat but has quite a few limitations:

 - number of vertices < 65536 (this is after optimizations in compressor, input OBJ may have even less)
 - models must have normals and texture coordinates
 - texture coordinates must be only from <0,1>
 - no materials support yet
 - models are scaled and offset (copy numbers from compressor and use them as parameters in UTF8Loader.load() )
2011-08-13 02:00:25 +02:00
alteredq e95ca433b2 Merged latest zz85's shapes / curves / extruded geometry updates.
The only notable change I did was to rename ExtrudeGeometry's parameter "path" to "extrudePath" (as now there is also "bendPath").
2011-08-13 01:05:01 +02:00
alteredq 822b52e07b Rebuild libs. 2011-08-12 23:48:15 +02:00
Mr.doob f313ff5457 Merge remote-tracking branch 'jeromeetienne/master' into dev 2011-08-12 19:31:08 +02:00
Mr.doob 1f660d5df0 Fixed typo. 2011-08-12 19:29:13 +02:00
Jerome Etienne 1cb14c463b added preserveDrawingBuffer options in WebGLRenderer. required for toDataURL support 2011-08-12 14:38:38 +02:00
zz85 0824c15a51 Curves refactored - addition of curve path, tangent finding, along with other bend changes and enhancements i may not remember 2011-08-12 13:35:09 +08:00
zz85 3ddb5686ed Refactored extractAllPointsWithBend() to addWrapPath() with getAllProcessedPoints() 2011-08-11 15:37:37 +08:00
Mr.doob 7486cbb71a Merge remote-tracking branch 'alteredq/dev' into dev 2011-08-11 06:04:22 +02:00
Mr.doob 2883ff82e6 Fixed ubiquity test. 2011-08-11 06:03:50 +02:00
alteredq 5ff33eb3c3 Updated Blender exporter to export morph animations.
Again, not to be used yet, very little tested plus code is horrible.
2011-08-11 04:55:13 +02:00
Mr.doob 0b910d7c31 * Simplified THREE.Color.
* Realised that canvas.context has a createPattern method which allows CanvasRenderer to support tiled textures \o/ (Examples where there is a CanvasRenderer and a WebGLRenderer at the same time may get errors because CanvasRenderer now uses texture.needsUpdate too).
2011-08-11 03:57:23 +02:00
zz85 6d6924a621 Add bend to webgl text example 2011-08-11 02:07:54 +08:00
alteredq 4aaacae6ee Extended Blender exporter to support mesh merging and export of all / selected meshes as single JSON model.
Do not use yet, work-in-progress, very little tested.
2011-08-10 04:33:03 +02:00
zz85 091126b233 Prototype text warping to curves/splines 2011-08-10 04:14:52 +08:00
alteredq f9c24ff31a Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-08-08 16:55:20 +02:00
alteredq 9ade9bbdc5 Changed opaque pass to use front-to-back order.
Impact on performance is not very big, you need a lot of triangles with complex fragment shaders to see the difference.
2011-08-08 16:34:26 +02:00
Mr.doob 8ba6396db6 Merge branch 'master' into dev 2011-08-08 12:02:24 +02:00
Mr.doob 000dbd0b54 Added @inear's Infinite beanstalk to featured projects. 2011-08-08 12:01:44 +02:00
Mr.doob cb4d4a4fe8 Missing semicolons. 2011-08-08 11:30:51 +02:00
alteredq 5a82fb1d18 Added option for skipping morph frames in OBJ converter. 2011-08-07 07:09:03 +02:00
alteredq fd27811b7c Added better random in GeometryUtils. Added possibility of using custom depth material for shadow maps. 2011-08-06 02:50:31 +02:00
alteredq a4665c770e Small refactoring in morph attributes initialization plus some whitespace cleaning. 2011-08-04 18:09:50 +02:00
alteredq 59e5d7ada4 Small optimizations in attributes setting and some whitespace cleanup. 2011-08-04 16:51:02 +02:00
alteredq 6447455ed2 Put back proper Texture clone lost in merge. 2011-08-04 14:41:38 +02:00
alteredq 710fb962d6 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-08-04 14:35:59 +02:00
alteredq 175064b071 Removed some leftover code in shadowmap example. 2011-08-04 14:28:21 +02:00
Mr.doob 1578a27d33 Updated constructor position and buils. 2011-08-03 16:20:58 +02:00
Mr.doob 1e152e5b61 Merge remote-tracking branch 'pushmatrix/master' into dev 2011-08-03 16:03:46 +02:00
Mr.doob 77a10f78ce Merging merging 2011-08-03 16:03:37 +02:00
Mr.doob 55b753ed09 Merging with @pushmatrix's mater. 2011-08-03 15:58:57 +02:00
Mr.doob 3641ff2c73 Fixed missing include in ubiquity example. 2011-08-03 15:42:13 +02:00
Mr.doob 0113a407a0 Merge remote-tracking branch 'alteredq/dev' into dev 2011-08-03 15:02:33 +02:00
alteredq 01bebe5c40 Added DataTexture, for creating textures out of raw data.
DataTexture can be used in the same places like image / video based Texture (WebGLRenderer-only).

To be used like this:

var width = 64, height = 64, bytes = 3;
var data = new Uint8Array( width * height * bytes );

// fill data array with values 0 .. 255

var texture = DataTexture( data, width, height, THREE.RGBFormat );
texture.needsUpdate = true;

For the moment only UNSIGNED_BYTE type is supported.
2011-08-03 00:50:43 +02:00
alteredq dc0425824a Added alphaTest parameter to base Material plus corresponding shader chunk in standard materials implementation.
This is for having on/off transparency without sorting using threshold value in alpha channel of diffuse texture.

By default it's switched off (alphaTest = 0).

AlphaTest is not yet handled in shadow maps. This would require passing of diffuse texture to depth material in shadow map render step (and more permutations of depth material).
2011-08-02 21:20:35 +02:00
alteredq 35b9c8dd69 Merge remote-tracking branch 'remotes/zz85/experimental' into experimental 2011-08-01 23:41:00 +02:00
zz85 a7b7377c03 Added curve segments parameter passing. defaults to 6 2011-08-02 04:17:58 +08:00
alteredq 3e321b4a17 Added passing of curveSegments for ExtrudeGeometry / TextGeometry down to Shape. 2011-08-01 22:10:49 +02:00
alteredq 15c6845a3b Added shadow receiving to ParticleBasicMaterial. 2011-08-01 18:42:50 +02:00
alteredq 3d94fc6bcf Refactored Shape.Utils.triangulateShape to use hashmaps instead of O( m * n ) loops.
This cut TextGeometry creation time almost by half.
2011-08-01 15:45:48 +02:00
alteredq 92465c4e4c Refactored ExtrudeGeometry.bevel to use less temporary vectors.
Didn't help much, there is still a lot of garbage collection showing up in profiler (~18 %).

Also, real hotspot are loops in Shape.Utils.triangulateShape (with ~27% of total time spend on Vector2.equal). This maybe could be refactored with hashmaps.
2011-07-31 23:53:17 +02:00
alteredq ce8b942ebe Merge remote-tracking branch 'remotes/zz85/experimental' into experimental 2011-07-31 21:40:51 +02:00
alteredq 56df7724ed Extended GeometryUtils with methods for getting random points. 2011-07-31 21:21:25 +02:00
zz85 3db68227d5 Fixed the fish, added a smiley to shapes demo 2011-07-31 03:58:16 +08:00
zz85 bbdea5f4fd Fixed ugly sharp corners with new bevel algorithm 2011-07-31 02:59:17 +08:00
alteredq bafa6ec100 Added worker closing to JSON template in 3ds max exporter. 2011-07-29 16:29:36 +02:00