<?xml version="1.0" encoding="iso-8859-1"?>

<i3D name="tensionBeltMaterialHolder" version="1.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://i3d.giants.ch/schema/i3d-1.6.xsd">

  <Files>
    <File fileId="1" filename="tensionBelt_diffuse.png" relativePath="true"/>
    <File fileId="2" filename="tensionBelt_normal.png" relativePath="true"/>
    <File fileId="3" filename="tensionBelt_specular.png" relativePath="true"/>
    <File fileId="5" filename="tensionBeltDummy_diffuse.png" relativePath="true"/>
    <File fileId="8" filename="ratchet_normal.png" relativePath="true"/>
    <File fileId="7" filename="ratchet_diffuse.png" relativePath="true"/>
    <File fileId="9" filename="ratchet_specular.png" relativePath="true"/>
    <File fileId="6" filename="../../shaders/emissiveAdditiveShader.xml" relativePath="true"/>
    <File fileId="4" filename="../../shaders/tensionBeltShader.xml" relativePath="true"/>
  </Files>

  <Materials>
    <Material name="tensionBelt_mat" materialId="1" cosPower="20" specularColor="1 1 1" ambientColor="1 1 1" customShaderId="4">
      <CustomParameter name="beltUVScale" value="1 7"/>
      <Texture fileId="1"/>
      <Normalmap fileId="2"/>
      <Glossmap fileId="3"/>
    </Material>
    <Material name="tenionBeltDummy_mat" materialId="2" specularColor="0 0 0" ambientColor="1 1 1" alphaBlending="true" customShaderId="6" customShaderVariation="colorScale">
      <CustomParameter name="colorScale" value="0 1 0 1"/>
      <Emissivemap fileId="5"/>
    </Material>
    <Material name="tensionBeltRatchet:ratchet_mat" materialId="3" cosPower="50" specularColor="1 1 1" ambientColor="1 1 1">
      <Texture fileId="7"/>
      <Normalmap fileId="8"/>
      <Glossmap fileId="9"/>
    </Material>
  </Materials>


  <Shapes externalShapesFile="tensionBeltMaterialHolder.i3d.shapes">
  </Shapes>

  <Scene>
    <TransformGroup name="tensionBelt" nodeId="1">
      <Shape name="material" shapeId="1" castsShadows="true" receiveShadows="true" materialIds="1" clipDistance="10" nodeId="2"/>
      <Shape name="dummyMaterial" shapeId="2" castsShadows="true" receiveShadows="true" materialIds="2" clipDistance="10" nodeId="3"/>
      <Shape name="ratchet" shapeId="3" castsShadows="true" receiveShadows="true" materialIds="3" clipDistance="75" nodeId="4">
        <TransformGroup name="sizeMarker" translation="5.28998e-16 0 3.28092" nodeId="5"/>
      </Shape>
      <Shape name="hook" shapeId="4" castsShadows="true" receiveShadows="true" materialIds="3" clipDistance="75" nodeId="6">
        <TransformGroup name="sizeMarker" translation="0 0 1.38414" nodeId="7"/>
      </Shape>
    </TransformGroup>
  </Scene>

  <UserAttributes>
    <UserAttribute nodeId="1">
      <Attribute name="onCreate" type="scriptCallback" value="TensionBeltUtil.onCreateTensionBelt"/>
      <Attribute name="name" type="string" value="basic"/>
    </UserAttribute>
    <UserAttribute nodeId="2">
      <Attribute name="isMaterial" type="boolean" value="true"/>
    </UserAttribute>
    <UserAttribute nodeId="3">
      <Attribute name="isDummyMaterial" type="boolean" value="true"/>
    </UserAttribute>
    <UserAttribute nodeId="4">
      <Attribute name="isRatchet" type="boolean" value="true"/>
    </UserAttribute>
    <UserAttribute nodeId="6">
      <Attribute name="isHook" type="boolean" value="true"/>
    </UserAttribute>
  </UserAttributes>
</i3D>
