Exception when exporting object instances

ergo

13-12-2006 21:32:48

Hi,
I encountered a problem exporting to .osm when my scene contains an instances of an object with no assigned material.

1. create a Box01
2. create instance of Box01
3. export to osm


== Exporting Objects ==
Exporting Object: Box01
Object has 1 texture sets
Compiling material Box01_mesh_material
Edge List created
Mesh: Box01_mesh.... done
Exporting Object: Box02

Unhandled Exception while processing Box02

== Exporting Materials ==
Box01_mesh_material
1 material(s) exported to 1_6_test.material


after assigning a material to Box01 the exception is not thrown and everything is fine.
Anyone having the same experience :shock: ?

ergo

13-12-2006 22:08:32

I played around a little bit and it seems that I get the exception if a material is assigned to more than one instance of the same object

1. create Box01
2. create instance Inst01 of Box01
3. create instance Inst02 of Box01
4. assign material mat01 to Box01
5. assign material mat02 to Inst01
6. assign material mat03 to Inst02
7. Export
-> everything is fine:

== Exporting Objects ==
Exporting Object: Box01
Object has 1 texture sets
Compiling material mat01
Edge List created
Mesh: Box01_mesh.... done
Exporting Object: Inst01
Object has 1 texture sets
Compiling material mat02
Edge List created
Mesh: Inst01_mesh.... done
Exporting Object: Inst02
Object has 1 texture sets
Compiling material mat03
Edge List created
Mesh: Inst02_mesh.... done

== Exporting Materials ==
mat01
mat02
mat03
3 material(s) exported to 1_6_test.material



8. assign mat01 to Inst01

-> exception exporting Inst01

== Exporting Objects ==
Exporting Object: Box01
Object has 1 texture sets
Compiling material mat01
Edge List created
Mesh: Box01_mesh.... done
Exporting Object: Inst01

Unhandled Exception while processing Inst01
Exporting Object: Inst02
Object has 1 texture sets
Compiling material mat03
Edge List created
Mesh: Inst02_mesh.... done

== Exporting Materials ==
mat01
mat03
2 material(s) exported to 1_6_test.material


Maybe I have to say that I just updatet from the last oFusion version to 1.6
But in this test case i dont use any material or scene from the last oFusion version.

Lioric

13-12-2006 23:52:54

I will review this issue asap

Are you sure those objects are instances? the exporter dont creates meshes for instanced objects (and will report them in the log), but from your logs, all objects are exported as non instanced objects

ergo

14-12-2006 12:55:31

Well I'm not a pro regarding max3d :-)
What I did is I created the objects in max by selecting "clone" from the context menu and then "instance" in the subsequent dialog.
When I activate "show dependencies" I see all boxes in mangenta when selection a single one. So I guess they are instances.
I can send you the test scene if it helps.

Lioric

20-12-2006 15:57:28

I reviewed this issue today, and its working correctly (but not tested in CE)

Could you provide the test scene were this can be reproduced?