* 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.
* 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.
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() )
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.
- 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
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.
new file: 2.58/scripts/addons/io_mesh_threejs/__init__.py
new file: 2.58/scripts/addons/io_mesh_threejs/export_threejs.py
new file: 2.58/scripts/addons/io_mesh_threejs/import_threejs.py
Also fixed default camera buggy string in Blender scene exporter and changed lightmap parameter name in base Loader (to be consistent with other "maps").