703 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.
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
Mr.doob 1f660d5df0 Fixed typo. 2011-08-12 19:29:13 +02:00
zz85 3ddb5686ed Refactored extractAllPointsWithBend() to addWrapPath() with getAllProcessedPoints() 2011-08-11 15:37:37 +08:00
Mr.doob 2883ff82e6 Fixed ubiquity test. 2011-08-11 06:03:50 +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
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 3641ff2c73 Fixed missing include in ubiquity example. 2011-08-03 15:42:13 +02:00
alteredq 3e321b4a17 Added passing of curveSegments for ExtrudeGeometry / TextGeometry down to Shape. 2011-08-01 22:10:49 +02:00
zz85 3db68227d5 Fixed the fish, added a smiley to shapes demo 2011-07-31 03:58:16 +08:00
alteredq c0d371be7c Merged with zz85's shape / path / extrude / bevel / text updates.
- moved 3d-only text parameters from TextPath into TextGeometry
- added safeguard for bevelSize and bevelThickness not affecting shape size if bevel is disabled
- updated text examples as now TextGeometry is not anymore centered
2011-07-28 19:19:52 +02:00
alteredq 6376d99005 Added shadow map example.
Note: shadow maps as currently implemented are very fussy, they need tons of tweaking to look halfway decent. Also current implementation doesn't do proper depth normalization. For some reason this gives better results than the "right way".
2011-07-28 15:43:50 +02:00
alteredq f72cec853f Fixed FlyCamera Earth example.
As normal map material now handles fog, it has to be enabled explicitly.
2011-07-25 11:54:04 +02:00
alteredq fc6b13d9ba Added path.createSpacedPointsGeometry() and extended shapes example to show such equidistantly sampled paths.
Spaced points are magic that will eventually make objects follow paths with constant speed.
2011-07-21 23:06:14 +02:00
alteredq 87cc607c4f Added createPointsGeometry for Path.
This is a more proper way how to generate visual lines / vertices (all elements use single geometry).

Also extended shapes example to show how to use this with Line and ParticleSystem.
2011-07-21 22:00:57 +02:00
alteredq f962eb2ea6 bezel => bevel in TextGeometry and its example 2011-07-21 17:53:51 +02:00
alteredq c35cca9ecf Changed canvas_geometry_shape => webgl_geometry_shapes.
Also cleaned up ExtrudeGeometry.
2011-07-21 17:34:28 +02:00
alteredq 0cefeed567 Merged zz85's Shape / Path / Curve / ExtrudeGeometry updates.
Renamed StraightCurve => LineCurve.
Some white space and comments cleanup.
2011-07-21 14:38:31 +02:00
zz85 e37a02805a Updated Extrude Shape Examples 2011-07-21 14:23:45 +08:00
alteredq bc73d01762 Added alpha-test particle billboards example. 2011-07-15 02:19:06 +02:00
alteredq 5859ac66a6 Updated stale individual JS file includes in examples that don't use build libs. 2011-07-14 15:47:03 +02:00
alteredq d31398b28d Added THREE namespace to GeometryUtils.
Somehow this one escaped.
2011-07-14 15:28:44 +02:00
alteredq ee98b4ce6e Added forgotten detector to custom attributes particle billboards example. 2011-07-14 14:28:07 +02:00
alteredq 41b7eb7047 Added custom attributes example for billboard particles.
A test case for sorting of custom attributes.
2011-07-14 14:17:10 +02:00
alteredq 55efc95b58 Added WebGL detector to custom attributes examples. 2011-07-14 02:02:57 +02:00
alteredq 2014fb8b7f Added handling of custom attributes for ParticleSystems. 2011-07-14 01:45:30 +02:00
alteredq f1559f0186 Merged zz85's stepping + spline path extrusions.
Changed default extrusion stepping to 1 segment, smaller default tessellation is usually preferable (for flat surfaces).
2011-07-13 00:04:57 +02:00
zz85 802b5376be Added ExtrudeGeometry Steps and Extrusion by Path. Updated example with Spline Shapes. 2011-07-13 01:57:35 +08:00
alteredq 256f9a671a Fix for specular component of Phong and normal map materials. Hope so.
Thanks to @fazeaction for spotting this.
2011-07-12 02:57:05 +02:00
alteredq 23e315cb33 Merged zz85's Path / Shape / Extrude geometry. Cleaned up and refactored it a bit.
All three classes are now in separate files.
Updated build script.
Fixed runaway globals.
Optimized loops ("in" should be used just for iterating over object properties, for arrays it's slow and also traversal order is not guaranteed).
Cleaned whitespace.
Bit more polished example.
Fixed inverted side faces for fish shape.
2011-07-12 00:46:57 +02:00
alteredq 3ba8cc4d1e Merge remote-tracking branch 'remotes/zz85/master' into dev 2011-07-11 18:39:04 +02:00
zz85 762f58a490 Shape Extrusion 2011-07-11 20:00:02 +08:00
alteredq 2202f0a66c Fixed broken custom attributes demo.
Attributes were not in fact updated before.
2011-07-06 23:36:36 +02:00
Mr.doob ce39f2aa41 Detector.js message now pointing to get.webgl.org. 2011-07-03 18:15:27 +02:00
Mr.doob a5b7ea85a9 Removed Sound object and SoundRenderer.
Updated misc_sound example with same functionality.
2011-07-03 15:10:28 +02:00
Mr.doob 176d0f2884 Merging with @alteredq's branch. 2011-07-03 12:56:50 +02:00
Mr.doob 77eed2ea8c Removed most of SeceneUtils methods for simplicity reasons.
Fixed examples that were using them.
2011-07-03 12:53:58 +02:00
alteredq d7a82b348a Merge remote-tracking branch 'remotes/chriskillpack/rename-fpcamera' into dev 2011-07-03 02:53:27 +02:00
alteredq 280a28dfdc Merged with mrdoob's branch.
All examples work. Now just need to port Blender exporter changes to 2.58 version.
2011-07-03 02:33:16 +02:00
Chris Killpack 07d54a4d0f Rename FPCamera to FirstPersonCamera. 2011-07-02 16:04:55 -07:00
Mr.doob 78fb8ac6f8 Applied @alteredq's sprite removal bugfix. 2011-07-02 12:37:45 +02:00
alteredq bb332e5fcd Extended Loader base class to handle normal map materials.
Plus some more Loader changes:

- fixed diffuse color and opacity being skipped when diffuse texture is present in JSON
- more proper handling of Phong materials (now use ambient / diffuse / specular / shininess from JSON)
- added handling of wrap / offset / repeat parameters for all textures

Fixed broken multiple lights indices in new normal map shader and changed displacement scale and bias to saner values.

Fixed broken postprocessing and Earth examples (were not yet translated to use new normal map shader).
2011-07-02 04:35:45 +02:00
Mr.doob 1c26dd25ac Fixed collisions examples. 2011-07-01 18:56:41 +02:00