Commit Graph
218 Commits
Author SHA1 Message Date
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
Mr.doob 2030f69a39 Merge remote branch 'alteredq/experimental' into experimental 2011-03-20 19:58:47 +00:00
Mr.doob 6514f67c12 Adapting Projector to new internal changes. Quite broken but getting there. 2011-03-20 19:58:24 +00:00
alteredq bdc19a15c2 Updated OBJ converter to create new JSON model format.
Not tested yet, as the rest of the engine doesn't work yet.
2011-03-20 20:14:23 +01:00
alteredq b0e31b1428 Renamed OBJ converter. 2011-03-20 17:18:10 +01:00
alteredq 9c2cc81fc9 Added to OBJ converter warning and skipping of morphs with different numbers of vertices than the original model. 2011-03-17 15:43:47 +01:00
alteredq 0f3ba92d7e Fixed bug in OBJ converter which was preventing it from not using any alignment ("-a none"). 2011-03-17 13:19:50 +01:00
Mr.doob 565f9221e3 Added missing classes to custom builds. 2011-03-16 19:11:56 +00:00
Mr.doob 49d9b2e460 src/extras/primitives/ ⟶ src/extras/geometries
Added geometries example (need to add Lathe one).
Fixed Cylinder.
2011-03-16 03:51:47 +00:00
Mr.doob f848e60de0 Tweaked extras order. 2011-03-15 16:07:12 +00:00
alteredq 1c466f26e7 Moved QuakeCamera and PathCamera into extras/cameras. 2011-03-15 16:49:52 +01:00
Mr.doob 1413f96958 Fixed Camera.updateMatrix(). 2011-03-14 20:01:35 +00:00