mr_burns
07-02-2008 04:30:38
Hi all,
Max 9, Ogre3D 1.4.5, oFusion 1.8.6 CE, OgreMax 1.5.6.
I am trying to add some user-defined object properties to my mesh, e.g. (Mass=10.0).
When I use oFusion 1.8.6 CE, it does not give me any options (unless I have missed something) to export out the custom / user-defined data.
OgreMax allows me to specify under "Object Properties" "User Data", and I can untick "Export as XML CData", so that my custom data is embedded in the .scene file.
Can anyone tell me how to do this with oFusion?
oFusion .osm File
OgreMax .Scene File
Thanks,
B.
Max 9, Ogre3D 1.4.5, oFusion 1.8.6 CE, OgreMax 1.5.6.
I am trying to add some user-defined object properties to my mesh, e.g. (Mass=10.0).
When I use oFusion 1.8.6 CE, it does not give me any options (unless I have missed something) to export out the custom / user-defined data.
OgreMax allows me to specify under "Object Properties" "User Data", and I can untick "Export as XML CData", so that my custom data is embedded in the .scene file.
Can anyone tell me how to do this with oFusion?
oFusion .osm 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="Cube03" hidden="false" filename="Cube03.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="0" y="46.271523" z="30.562603" />
<rotation x="0" y="0" z="-0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
</entities>
</oe_scene>
OgreMax .Scene File
<scene formatVersion="1.0" upAxis="y" minOgreVersion="1.4" author="OgreMax Scene Exporter by Derek Nedelman (www.gameprojects.com)">
<environment>
<colourAmbient r="0" g="0" b="0" />
<colourBackground r="0" g="0" b="0" />
</environment>
<nodes>
<node name="Cube03" id="01" isTarget="false">
<scale x="1" y="1" z="1" />
<position x="0" y="46.2715" z="30.5626" />
<rotation qx="0" qy="0" qz="0" qw="1" />
<userDataReference id="Mass" />
<userData>mass=10</userData>
<entity name="Cube03" id="01" meshFile="Cube03.mesh" castShadows="true" receiveShadows="true" />
</node>
</nodes>
</scene>
Thanks,
B.