duplicated content in OSM export file when grouping objects

ergo

19-02-2006 10:25:37

Hi,
first of all:
Greate job, great tool, this is extremly impressive work :-)

So I have a question regarding the scene export.
I created a simple scene:
two boxes, same size nothing else. If I select both boxes and Export selected .. I get the following export file:

<oe_scene>
<sceneManager type="0" />
<bkgcolor r="0" g="0" b="0" />
<lightColor r="0.5" g="0.5" b="0.5" />
<shadowTechnique type="0" tex_size="512" tex_count="1">
<color r="0" g="0" b="0" />
</shadowTechnique>
<entities>
<entity name="Box02" hidden="false" filename="Box02.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="0" y="0" z="20" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
<entity name="Box01" hidden="false" filename="Box01.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="0" y="0" z="-20" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
</entities>
</oe_scene>


When I combine the two boxes into a group and export again I get the this export file:

<oe_scene>
<sceneManager type="0" />
<bkgcolor r="0" g="0" b="0" />
<lightColor r="0.5" g="0.5" b="0.5" />
<shadowTechnique type="0" tex_size="512" tex_count="1">
<color r="0" g="0" b="0" />
</shadowTechnique>
<entities>
<entity name="Box01" hidden="false" filename="Box01.mesh" parent="Group01" CastShadows="yes" ReceiveShadows="yes">
<position x="0" y="-10" z="-20" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
<entity name="Box02" hidden="false" filename="Box02.mesh" parent="Group01" CastShadows="yes" ReceiveShadows="yes">
<position x="0" y="-10" z="20" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
<entity name="Box01" hidden="false" filename="Box01.mesh" parent="Group01" CastShadows="yes" ReceiveShadows="yes">
<position x="0" y="-10" z="-20" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
<entity name="Box02" hidden="false" filename="Box02.mesh" parent="Group01" CastShadows="yes" ReceiveShadows="yes">
<position x="0" y="-10" z="20" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
</entities>
</oe_scene>


The entity elements now have an attribute parent which value is the group name. But the 2 box entities are duplicated in the export file with same name and attributes.

Is there a reason for this behaviour or is it a bug ?

Lioric

20-02-2006 22:02:52

Groups are supported in other version, this should not be exported in CE

In CE, objects in groups should be exported as normal, i will take a look at this