201 Commits
Author SHA1 Message Date
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
alteredq 6972b1b5fc Added support for morph targets to OBJ converter.
To be used like this:

python convert_obj_threejs_slim.py -i model.obj -m morph*.obj -o model.js

Morph filename strings can contain wildcards "*,?,[]".

For including morphs from multiple folders, use quotes and separate filename patterns by space:

python convert_obj_threejs_slim.py -i model.obj -m "folderA/morphA*.obj folderB/morphB*.obj ..." -o model.js
2011-03-14 14:34:51 +01:00
alteredq b6b0e21015 Added PathCamera.
PathCamera automatically follows path passing through waypoints (interpolated via Catmull-Rom spline). View angles can be constrained and controlled by mouse.

Work in progress, there are still some issued to be solved (constant movement speed, broken automatic update, broken frustum culling).
2011-03-14 03:57:22 +01:00
alteredq 2b90f7c047 Fixed broken converter multi-dot filenames fix.
Also implanted Animation fix from empaempa.
2011-03-11 16:56:22 +01:00
alteredq a273871911 Fixed handling of file names with multiple dots in exporters and converters.
Also half-baked QuakeCamera update managed to sneak in.
2011-03-11 01:47:56 +01:00
alteredq 715f8c4f6e Max exporter can now export vertex colors. 2011-03-10 23:03:08 +01:00
alteredq 40bbe28c40 Fixed OBJ converter to handle edge case where MTL file has more materials than corresponding OBJ file.
Also half-baked broken vertex colors in Max exporter managed to sneak in this commit.
2011-03-10 13:20:16 +01:00
alteredq 4ae13ca087 Updated max exporter to handle also messed up multimaterials. 2011-03-09 23:41:03 +01:00
alteredq 13ccc02a8a Refactored shader and uniform snippets out of WebGLRenderer into WebGLShaders. 2011-03-09 21:44:11 +01:00
alteredq 91795a3510 Updated Max exporter.
Made face flipping heuristics optional, it messes up scenes that are ok.

For scenes that after exporting have objects with flipped normals, original assets can be fixed in Max in a following way:

1. find out problematic objects in Max
  1. select all objects
  2. set View -> xView to show "Face Orientation"
  3. select all object that are fully/mostly green
  4. in Utilities apply Reset XForm to selected objects (this will show messed normals also in Max, otherwise they are hidden)

2. fix problematic objects
  1. apply Normals => flipNormals modifier to selected object
2011-03-07 04:47:22 +01:00
alteredq c421b2d791 Number of bones in skinning shader is now taken from SkinnedMesh.
If no object is passed to initMaterials (for example, if material is pre-built while loading, or shader program is intended for sharing), max limit of 50 bones is used (should be enough to leave space for other uniforms not to hit ANGLE limits).
2011-03-07 01:25:11 +01:00
alteredq 6151624e3a Max exporter now exports multiple selected objects.
Unfortunately with larger scenes with many different types of objects face flipping heuristics doesn't work all the time :(
2011-03-07 00:28:42 +01:00
alteredq 129fddfd57 Fixed flipped normals workaround in max exporter.
Hope so. At least now hacked face normals correspond to face normals computed from scratch in Geometry.

(If only max didn't have zillion ways how to achieve the same visual results :/. I tracked this flipped normals/faces business down to XForm modifier - it doesn't get collapsed properly when making TriMesh / Editable_mesh snapshots. At least Editable_mesh snapshot differs in way that is exploitable for workaround hack.)
2011-03-06 22:56:36 +01:00
alteredq 88a13e7d39 Added safeguard in OBJ converter for not crashing on zero-sized degenerate normals. 2011-03-06 21:47:07 +01:00
Mr.doob 952631c923 REVISION++
Added some examples to README.
2011-03-06 09:41:15 +00:00
alteredq a8b5c55d1c First very rough version of 3ds max exporter.
Very much work-in-progress. So far it exports only single selected object, if there are more in selection, it'll just break apart.
2011-03-05 08:47:34 +01:00
alteredq bbe7e87df6 Changed OBJ converter to use just texture file names instead of full absolute file paths. 2011-03-03 23:26:44 +01:00
Mr.doob 795abb58a9 Uops! Forgot to increase REVISION's number :S 2011-03-03 08:46:12 +00:00