340 Commits
Author SHA1 Message Date
Mr.doob 18ff7e8068 Removed Collisions from build.py too 2011-11-13 21:41:04 +01:00
alteredq e08434c183 Reworked binary format / BinaryLoader / OBJ converter to use binary ajax fetch.
It was quite a pain - ArrayBuffers / Typed Arrays are fussy about byte alignment - but seems to be worth it.

Parsing times are down (modest gains for small objects / Firefox, bigger gains for large objects / Chrome, performance gains from 10% - 200%).

Also as a positive side effect, changing interleaved face arrays into uniform arrays seems to have helped a bit with gzip compression (about 6% smaller size for gzipped 526K Lucy).
2011-11-03 20:30:10 +01:00
alteredq e30107c8fe Removed workers from Max exporter. 2011-10-31 17:52:06 +01:00
alteredq 1658d7f083 Removed workers from Blender exporter.
Fixed Blender importer to work with Blender 2.60, add option for importing workers or non-worker models.

Fixed more examples to use worker-less format. All examples should work now.

Only Max exporter should be left to change.
2011-10-31 16:51:50 +01:00
alteredq d2cad69664 Started to remove workers from the asset pipeline.
Work-in-progress => do not merge yet.

OBJ converter, JSONLoader, BinaryLoader and some examples are done. Still need to do Blender exporter, SceneLoader and more examples.

Advantages:

- faster parse times
- bypass array initializer size limit in Firefox
- no more crashes in Chrome 15 (caused by too many concurrently active workers)

Disadvantages:

- more browser UI freezing
- multiple models tend to appear all at once with the last one (instead of popping up progressively)
2011-10-30 22:09:55 +01:00
Mr.doob af2919bc17 Adding RenderableObject once again.
It's going to be handy for the WebGLRenderer (__webglObjects)
2011-10-24 14:23:12 +02:00
Mr.doob 6b151b552e Merging with @alteredq's experimental branches. 2011-10-23 12:34:46 +02:00
Mr.doob 8edb3f18b2 Removing (now unused) stuff from Projector. 2011-10-09 07:11:19 +02:00
Mr.doob 2c8967b124 Fixed CanvasRenderrer incorrectly SphericalReflectionMapping Face4 rendering.
Also replaced WaltHead.js (old format) with WaltHeadLo.js (new format)
2011-10-08 21:04:26 +02:00
zz85 149c20d177 Added new THREE.CombinedCamera. Added orthographic + perspective example 2011-10-06 00:55:26 +08:00
zz85 f8df307438 Removed THREE.SubdivisionGeometry. A tiny bit of cleanup 2011-10-04 22:46:34 +08:00
zz85 a88848ab1d Added THREE.SubdivisionModifier. Removed THREE.GeometryUtils.createSubdivision() 2011-10-04 22:25:52 +08:00
zz85 a6eb8106a2 merged mrdoob/dev 2011-10-04 21:25:44 +08:00
Mr.doob a336a5c124 Added deprecated warning to old cameras. 2011-10-04 02:30:22 +02:00
Mr.doob df64ff921f extras/cameras/*Cameras > extras/controls/*Controls
This will take a while to make work again... probably needs some cleaning and refactoring...
2011-10-04 02:18:15 +02:00
Mr.doob 5d96f15b39 Started doing Camera changes.
* Camera is now a base object. PerspectiveCamera should be used instead. Figured out a way to show a warning when misused.
* OrthoCamera is now OrthographicCamera.
* Removed `target` from Camera.

Misc
* Renamed Trident to Axes.
2011-10-04 01:07:24 +02:00
Mr.doob 69da8d2e1f Merge remote-tracking branch 'Knectar/dev' into dev 2011-10-03 23:31:41 +02:00
Daniel 5ef31d7fe8 Remove Sphere class. Give radius to octahedron. 2011-10-03 11:12:37 +01:00
zz85 b4332d6a24 added more generic geometry creation functions in canvas_geometry_subdivison.html 2011-10-03 07:18:55 +08:00
Daniel dad2146d79 Include new Sphere class in build. 2011-10-02 22:33:07 +01:00
Daniel 2d4ea9cedd New Sphere class that uses a subdivided octahedron geometry. 2011-10-02 22:28:36 +01:00
alteredq a60595b3f7 Removed edges handling from asset pipeline (Blender exporter, OBJ converter, JSONLoader). 2011-10-02 16:13:44 +02:00
Mr.doob 36ae04418c Fixed yet some more examples.
Removed QuakeCamera.
2011-10-01 23:38:26 +02:00
zz85 0f9c3f44ee Merge remote-tracking branch 'upstream/dev' 2011-09-30 22:04:16 +08:00
alteredq 32e4a556ca Added CubeCamera (for rendering cube maps). 2011-09-30 00:20:22 +02:00
zz85 8edfa99583 Rename SubdivisonGeometry.js to SubdivisionGeometry.js. Fix geometries which use duplicate vertices. SubdivisionGeometry tested with Cube/Sphere/Cylinder/TextGeometry 2011-09-29 17:15:41 +08:00
zz85 670ebf6139 Fixed SubdivsionGeometry points. Added class, update builds 2011-09-29 04:38:56 +08:00
Mr.doob b6f7444b0f Added deprecated warning to MeshShaderMaterial class. 2011-09-14 17:48:26 -07:00
alteredq e298ac6814 Renamed MeshShaderMaterial => ShaderMaterial 2011-09-12 19:17:20 +02:00
Justin Sermeno 8ca569f9ba fix broken ThreeWebGL.js build 2011-09-10 02:43:19 -07:00
Mr.doob 51368ca6d6 REVISION ++ 2011-09-04 00:47:01 +02:00
Mr.doob 94b7418f60 Added objec3d.frustumCulled support to Projector (CanvasRenderer/SVGRenderer).
`renderers/Projector.js` > `core/Projector.js`

`extras/geometries/Curve.js` > `extras/core/Curve.js`
`extras/geometries/CurvePath.js` > `extras/core/CurvePath.js`
`extras/geometries/Path.j`s > `extras/core/Path.js`
`extras/geometries/Shape.js` > `extras/core/Shape.js`
`extras/geometries/TextPath.js` > `extras/core/TextPath.js`
2011-09-03 21:58:18 +02:00
alteredq 495de75ff2 Added OrthoCamera.
Modified examples to use it, hacking projection matrix started to feel a bit dirty.
2011-08-29 10:34:18 +02:00
Mr.doob 7c7d4428f2 Moved src/materials/Mappings.js inside src/materials/Texture.js
Moved `src/materials/*Texture.js` to `src/textures/*Texture.js`
2011-08-29 05:18:25 +02:00
Mr.doob 8fd041508f extras/io > extras/loaders
extras/collada/dae.js > extras/loaders/ColladaLoader.js

removed LoaderOld.js
2011-08-26 23:44:47 +02:00
alteredq 4336d757ac Added WebGLRenderTargetCube.
Work-in-progress.
2011-08-26 19:40:56 +02:00
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
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
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
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
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 5a82fb1d18 Added option for skipping morph frames in OBJ converter. 2011-08-07 07:09:03 +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 bafa6ec100 Added worker closing to JSON template in 3ds max exporter. 2011-07-29 16:29:36 +02: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
zz85 faf189c3dc Some refactoring + cleanup for TextPath, Geometries, Shapes 2011-07-28 03:56:21 +08:00
alteredq 77341c86b1 First attempt at shadow mapping (work-in-progress). 2011-07-27 01:35:44 +02:00
zz85 e37a02805a Updated Extrude Shape Examples 2011-07-21 14:23:45 +08: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