数据格式说明
符号:
* - 可选的
... - 一个或多个
... *-零或更多
场景图XML
根
<scenegraphXml name="building"* version="0.1.0"*> <channelData startFrame="1" endFrame="10" ref="/tmp/myChannelData" */>* <instanceList/> </xmlScene>
实例清单
<instanceList> <instance/>*... </instanceList>
执行个体
基本类型:组,参考
<instance type="group" name="blah"> <instanceList/>* <bounds/>* <xform/>* <proxyList/>* <lookFile/>* <modifiers/>* <arbitraryList/>* <lodData tag="hi" weight="0.75"/>* </instance> <instance type="group" groupType="lodGroup" name="blah"> <instanceList/> <bounds/>* <xform/>* <proxyList/>* <lookFile/>* <modifiers/>* <arbitraryList/>* <lodData tag="hi" weight="0.75"/>* </instance> <instance type="reference" name="blah" refFile="subScene.xml"> <bounds/>* <xform/>* <proxyList/>* <lookFile/>* <modifiers/>* <arbitraryList/>* <lodData tag="hi" weight="0.75"/>* </instance> <instance type="reference" name="blah" refType="abc" refFile="myGeometry. abc"> <bounds/>* <xform/>* <proxyList/>* <lookFile/>* <modifiers/>* <arbitraryList/>* <lodData tag="hi" weight="0.75"/>* </instance>
注意: 如果没有为引用实例显式指定refType,则假定该引用是指向另一个包含ScenegraphXML数据的XML文件。
Xform
<xform value="1 0 0 0 0 1 0 0 0 0 1 0 10 20 30 1"/>
要么
<xform channelIndex="6"/>
边界框
<bounds minx="-10" maxx="10" miny="-10" maxy="10"
minz="-10" maxz="10"/>
要么
<bounds channelIndex="6"/>
代理列表
<proxyList> <proxy name="viewer" ref="/tmp/proxyFile.abc"/>... </proxyList>
ArbitraryList(元数据)
<arbitraryList> <attribute name="myAttr" type="float" value="10.0"/>... <attribute name="myAttr" type="float" channelIndex="6"/>... <attribute name="myAttr" type="floatlist" value="1.0 2.0 3.0 4.0"/>... <attribute name="myAttr" type="floatlist" numValues="6" channelIndex="10"/>... <attribute name="myAttr" type="string" value="Pony"/>... </arbitraryList>
属性类型:float,floatlist,string
看文件
<lookFile ref="myLookFile.klf"/>
注意: 通过ScenegraphXML文件分配的LookFile当前仅适用于使用Importomatic导入的文件。LookFiles只能与引用其他SgXML文件的位置关联,或将groupType显式设置为“ assembly”。
修饰符
<modifiers> <attributeFile/>...* </modifiers>
属性文件
默认XML解析器: <attributeFile ref =“ myAttributeFile.xml” />
自定义XML解析器: <attributeFile ref =“ myAttributeFile.xml” customParser =“ myParser.so” />
元数据存储在组名下attributeFile默认情况下。可以通过使用参数来覆盖它groupName。例如:<attributeFile ref =“ myAttributeFile.xml” groupName =“ myGroupName” />
通道数据文件
一种简单的格式,用于表示使用中的float值的动画.xml文件,每个文件包含多个通道,一个.xml每帧文件。
<channels> <c v="0.1"/>... </channels>
抱歉,您没有找到此帮助
为什么这没有帮助? (检查所有适用)
感谢您抽出宝贵时间给我们反馈。