Commit Graph

27 Commits

Author SHA1 Message Date
Chingiz Dyussenov
97837623a7 Fixed textures, images import/export. 2009-07-25 14:09:15 +00:00
Arystanbek Dyussenov
e62b675858 Basic object transform animation export:
- just writes all curves from action linked to an object
- linear interpolation
2009-07-21 19:08:36 +00:00
Chingiz Dyussenov
9bfde6def0 Fixed textures import - images are assigned to faces. 2009-07-17 10:42:32 +00:00
Chingiz Dyussenov
5a5b47c33e *Exporter handles empty objects.
*Added textures import.
TODO:
Fix images import.
2009-07-16 07:56:17 +00:00
Arystanbek Dyussenov
b334a45b35 COLLADA importer: base for object transform animation.
Fix a crash reported by Gary Richie: check NULL materials.
2009-07-15 18:59:49 +00:00
Chingiz Dyussenov
edf5200fa1 Added export objects hierarchy. 2009-07-10 06:55:05 +00:00
Chingiz Dyussenov
b91492c683 Added import multiple UV layers.
If <geometry> has more than one primitive - UVs aren't imported properly.
Will fix this soon.
2009-07-08 11:55:11 +00:00
Chingiz Dyussenov
861a0d20c6 Small fix - now import per-face materials should work properly. 2009-07-03 07:54:55 +00:00
Chingiz Dyussenov
9cc690b0d1 Import per-face materials. 2009-07-02 12:35:46 +00:00
Chingiz Dyussenov
1bd28c878b * Export cameras and lights.
* Import materials. 
TODO:
Assign materials to objects.
2009-07-01 18:18:53 +00:00
Arystanbek Dyussenov
d8313b70f3 Exporter:
- texture/UV set binding
- extract names correctly from id.name
- output <unit name="meter" meter="1"/> in <asset>, dunno if this fits Blender
2009-06-30 19:37:28 +00:00
Chingiz Dyussenov
50db74f62b Export textures mapped to diffuse, ambient, specular, emission and reflective colors.
Input is always assumed to be UV.

Texture/UV set mapping is not done yet.
2009-06-30 09:10:37 +00:00
Chingiz Dyussenov
10e1904880 Added multiple UV layers export.
Next: texture/UV binding.
2009-06-29 12:53:49 +00:00
Chingiz Dyussenov
9e987a7afe Fixed bug which I mentioned in my previous commit - mesh will be
exported properly if it has no materials.
2009-06-28 15:33:10 +00:00
Chingiz Dyussenov
d7fa3d6c80 Added per-face materials exporting. If mesh has no materials it won't be
exported.
2009-06-28 13:20:37 +00:00
Chingiz Dyussenov
14fd54554c Added export material properties. The following shader types are
supported: phong and blinn all others are exported as <lambert>. Here is 
the list of supported shader options: emission, ambient, diffuse, 
specular, shininess, reflective, reflectivity, transparency, index of 
refraction. 
Turned off texture exporting - needs fixing.
2009-06-27 12:58:34 +00:00
Arystanbek Dyussenov
b8f6221c8b Object rotation read/write.
The new QuatToAxisAngle function could go to BLI_arithb.h.
2009-06-27 09:29:30 +00:00
Chingiz Dyussenov
e53eda5ba9 * Fixed material/texture binding
* Export polylist instead of triangles

TODO:
* Exporting per-face materials
* Multiple UV channels
2009-06-23 12:15:14 +00:00
Chingiz Dyussenov
a0d7164158 COLLADA exporter:
* removed code duplication for object and material traversing
* removed geometry, material, image duplication in produced DAE

TODO:
* UVs export still needs fixing/improvments
* Material/texcoord binding is not done
2009-06-22 16:21:59 +00:00
Chingiz Dyussenov
a82d3dec41 Multi-texture material export (unfinished).
Import geometry using mesh editor module commented out. Will use blenkernel module instead.
2009-06-22 13:23:13 +00:00
Chingiz Dyussenov
d8479c0fbb I rewrote the code which creates <library_materials>, <library_effects> and
<instance_material>. I used here more suitable Blender's api. Now exporter 
exports all materials in the scene. Todo: if material has textures export them.
2009-06-17 05:45:39 +00:00
Chingiz Dyussenov
b2f50b1b2a Exporter applies the first image in the scene to all objects which have
uv coordinates.
2009-06-16 08:58:33 +00:00
Chingiz Dyussenov
60a6600515 Fixed MaterialsExporter and EffectsExporter classes. 2009-06-15 10:53:01 +00:00
Chingiz Dyussenov
aecfa67497 Added exporting object textures, classes for writing <library_effects>
and <library_materials>. These classes are hardcoded.
2009-06-15 06:00:00 +00:00
Chingiz Dyussenov
fbadae7b0a Added uvs export. Textures and materials are not exported yet. 2009-06-10 18:02:54 +00:00
Chingiz Dyussenov
af67f4f634 Added normals export and fixed multiple object export. 2009-06-10 09:47:30 +00:00
Chingiz Dyussenov
d3f0b39c5f Basic exporter writing only vertices and faces converted to triangles.
Spen't lots of time debugging the misbehaving COLLADASW::URI 
constructor. The problem is although I pass correct parameters to it, 
the resulting file ends up having empty url attributes. It is either a 
bug in OpenCollada or my code - couldn't figure this out.
2009-06-07 05:14:25 +00:00