alteredq
477b0095a9
Added dumping of scale to Blender exporter / handling of scale to JSONLoader.
...
This is backwards compatible: for existing models that don't have scale nothing should change.
2011-04-03 08:48:08 +02:00
Mr.doob
e6fd2d0516
Blender Exporter: Added option for truncating vertex values. Added scale parameter.
2011-04-03 05:17:48 +01:00
Mr.doob
09e976f299
Blender exporter: Scene export option False by default.
2011-04-03 04:04:36 +01:00
alteredq
c2a401f2b8
Added option not to export materials to Blender exporter.
...
In such case faces will not get material index in JSON data and then no material reference in Face objects, so MeshFaceMaterial is not going to show anything and you have to add your own material for the whole mesh after loading.
Tested on few models and it seems to work, new JSON format allows to omit materials :)
2011-04-03 00:22:20 +02:00
alteredq
9abbb97d4c
Fixed Blender exporter not checking if material texture actually has some image.
2011-04-02 09:31:50 +02:00
Mr.doob
8af4dd49c1
WebGLRenderer now uses material.transparent to determine whether a material is transparent or not.
...
Moved materials/RenderTarget.js ⟶ renderer/WebGLRenderTarget.js
2011-03-31 07:22:44 +01:00
Mikael Emtinger
7b07f34b7d
merged with mrdoob. fixed so depthMask is correctly restored after stencil and lensflares. removed all enable/disable _gl.BLEND as it's always on.
2011-03-30 20:52:23 +02:00
Mikael Emtinger
3536f3f2f5
Merged with MrDoob
2011-03-29 20:50:45 +02:00
alteredq
220983f455
Updated Blender importer to show textures.
2011-03-29 18:10:34 +02:00
Mikael Emtinger
ac6f422a6f
Added LensFlares. Note that a new blending mode has been added. Added an (quite ugly example). NOTE: this doesn't seem to work on Chrome+Mac+NVIDIA unless you turn off antialias (which I've done in the example).
2011-03-29 13:30:53 +02:00
alteredq
10e86a45fe
Added handling of materials and textures to Blender importer.
...
Also added custom property to materials to be able to select if vertex colors should be used for the material.
2011-03-29 05:51:49 +02:00
alteredq
827dcdd908
Added handling of UVs to Blender importer.
2011-03-28 04:17:38 +02:00
alteredq
32cd7c25c2
Added handling of vertex colors to Blender importer.
2011-03-28 02:49:28 +02:00
alteredq
012b9a7c04
Added handling of normals to Blender importer.
...
There is checkbox for choosing whether Blender should recalculate vertex normals or whether to use normals from the data.
Using vertex normals from the data can in some cases lead to artefacts. This is probably caused by sharing of vertices across several faces (I didn't find a way how to specify vertex normals per face use of vertex; there is just API for setting normals to vertices).
If you select "recalculate vertex normals" (default), this sets faces to use smooth shading, which upon subsequent mesh update computes correct vertex normals (but it will lose eventual smoothing groups baked in vertex normals).
2011-03-28 00:44:19 +02:00
alteredq
33e5a9bfe0
Added very basic Three.js Blender importer.
...
Very much work in progress, for the moment it creates just pure geometry (no normals, uvs, colors or materials).
Also fixed bug in JSONLoader in handling of face uvs.
2011-03-27 08:47:11 +02:00
alteredq
f1a91c9fd5
Fixed bug in max exporter.
...
Vertex color parameter was undefined for dummy materials.
2011-03-26 20:49:52 +01:00
alteredq
812c6dff96
For some reason last commit didn't update everything.
2011-03-26 06:38:21 +01:00
alteredq
b31b8eebcd
Changed exporters, converters and example models to use more proper JSON.
...
Single quote property names and hex numbers are not valid in JSON.
2011-03-26 06:05:46 +01:00
alteredq
f052891b2b
Forgot comma in scene template.
2011-03-25 15:54:46 +01:00
alteredq
3943ca604a
Added handling of custom properties to Blender exporter.
2011-03-25 14:50:46 +01:00
alteredq
a89ec4fede
Added exporting of group ids to Blender scene exporter.
...
Also fixed multimaterial ids list.
2011-03-25 14:28:28 +01:00
alteredq
4f80bbf808
Merged with mrdoob's branch.
2011-03-25 04:52:13 +01:00
alteredq
1859fe4057
Updated Blender exporter to be able to export scenes.
...
Work-in-progress.
So close yet so far. Test scene almost works, just two things are not rotated properly (which means maybe everything will need to be reworked :(
2011-03-25 04:39:04 +01:00
Mr.doob
bd2d39ac6b
Fixed broken examples.
...
Updated build script.
2011-03-24 21:04:34 +00:00
Mikael Emtinger
95e92d9026
Stencil shadows added
2011-03-24 09:09:25 +01:00
Mr.doob
dedf6a2035
convert_obj_three.py: sorting morph filenames (again :P)
2011-03-24 07:07:47 +00:00
alteredq
27c64215f2
Added "centerxz" alignment option to OBJ converter.
...
This one doesn't touch height, just centers model in X and Z axis.
2011-03-23 17:36:26 +01:00
Mr.doob
d2d6a86ba7
convert_obj_three.py: Sorting morph filenames.
2011-03-23 08:00:06 +00:00
Mr.doob
fd3e2c1833
Merge remote branch 'alteredq/master'
2011-03-23 06:03:49 +00:00
Mr.doob
48a9714eed
Also removed Blender 2.49 exporter for the time being.
2011-03-23 06:03:36 +00:00
alteredq
bc8570fbe0
Fixed subtle tricky bug in JSONLoader.
...
This was messing models with mixed uv/non-uv faces.
Also bumped up version number for max exporter.
2011-03-23 06:29:31 +01:00
Mr.doob
5c33ce01e2
Unfortunately C4D exporter is outdated and we don't use that. Removing it for now... Hopefully someone will re-port the Blender exporter again.
2011-03-22 19:40:19 +00:00
alteredq
a069bbf966
Updated max exporter to use new JSON model format.
...
(also fixed vertex colors to use proper per-face-vertex colors)
2011-03-22 08:30:12 +01:00
alteredq
91ef6a7188
Merge remote branch 'remotes/upstream/experimental' into experimental
2011-03-22 04:18:56 +01:00
alteredq
673ff47199
Blender exporter now exports proper per-face-vertex vertex colors.
2011-03-22 04:17:49 +01:00
Mr.doob
55a6938f26
SVGRenderer doesn't need ParticleCanvasMaterial
2011-03-22 01:17:48 +00:00
alteredq
9db71a171a
Fixed tangents and UVs in Blender exporter.
...
Also updated docstring for OBJ converter.
All WebGL examples should now work.
2011-03-22 00:32:45 +01:00
alteredq
478dd2d960
Fixed bug in OBJ converter.
...
This one was messing up face types for faces with more than 4 vertices (which are truncated to quads).
2011-03-21 17:53:35 +01:00
Mr.doob
c119abcaac
Merge remote branch 'alteredq/experimental' into experimental
2011-03-21 05:42:11 +00:00
Mr.doob
5a0a200ce4
RenderableFace4 is back (thus 2x speed boost on all examples using quads).
2011-03-21 05:41:55 +00:00
alteredq
071de366c2
Updated Blender exporter to export new JSON format.
...
Also some fixes along the way to properly handle vertex colors in loaders.
Many things still broken, but we move forward.
2011-03-21 05:36:12 +01:00
alteredq
d775e22a90
Merge remote branch 'remotes/upstream/experimental' into experimental
2011-03-21 01:00:20 +01:00
alteredq
2989defcc8
First version that is at least partially working with the new model format ;).
...
Tons of things still broken.
2011-03-21 00:58:12 +01:00
Mr.doob
348bb3be59
Merging with alteredq's branch.
2011-03-20 21:48:50 +00:00
Mr.doob
a7740f47fc
ParticleCircleMaterial ⟶ ParticleCanvasMaterial (canvas code injection)
2011-03-20 21:47:11 +00:00
alteredq
d90304c136
Synced with mrdoob's experimental branch.
2011-03-20 22:29:44 +01:00
alteredq
a230b659ab
More fixes.
...
Getting closer though still having some junk data poping out here and there.
2011-03-20 22:25:41 +01:00
Mr.doob
af5e208b57
Fixed missing items in the builder.
2011-03-20 21:00:58 +00:00
alteredq
9dbb1ef2cf
Merge remote branch 'remotes/upstream/experimental' into experimental
2011-03-20 21:20:39 +01:00
alteredq
e7e35950e1
More fixes related to new model format changes.
...
Commit to be able to merge with mrdoob.
2011-03-20 21:20:05 +01:00