데이터 형식 설명

표기법:

*-옵션

... - 하나 이상

... *-0 이상

ScenegraphXML

뿌리

<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

<proxyList> <proxy name="viewer" ref="/tmp/proxyFile.abc"/>... </proxyList>

임의 목록 (메타 데이터)

<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"/>

채널 데이터 파일

사용하여 부동 소수점 값의 애니메이션을 나타내는 간단한 형식 .xml 각 파일에 여러 채널이있는 파일 및 단일 파일 .xml 프레임 당 파일.

<channels> <c v="0.1"/>... </channels>