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

<i3D name="particle_materialHolder" version="1.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://i3d.giants.ch/schema/i3d-1.6.xsd">
  <Asset>
    <Export program="GIANTS Editor 64bit" version="9.0.1"/>
  </Asset>

  <Files>
    <File fileId="1" filename="$data/effects/wood/particle/woodChips32x4_diffuse.png"/>
    <File fileId="2" filename="$data/effects/wood/particle/woodChips32x4_normal.png"/>
    <File fileId="5" filename="$data/effects/wood/particle/woodChips4x1_diffuse.png"/>
    <File fileId="6" filename="$data/effects/wood/particle/woodChips4x1_normal.png"/>
    <File fileId="7" filename="$data/shaders/psColorShader.xml"/>
    <File fileId="3" filename="$data/shaders/psSubUVShader.xml"/>
  </Files>


  <Materials>
    <Material name="lambert1" materialId="4" diffuseColor="0.494118 0.494118 0.494118 1">
    </Material>
    <Material name="soil32x4_mat" materialId="5" customShaderVariation="subUVHorizontal" customShaderId="3">
      <Texture fileId="1"/>
      <Normalmap fileId="2"/>
      <CustomParameter name="colorAlpha" value="1 1 1 1"/>
      <CustomParameter name="playScale" value="30 60 1 0"/>
    </Material>
    <Material name="woodChips_mat" materialId="6" customShaderId="7">
      <Texture fileId="5"/>
      <Normalmap fileId="6"/>
      <CustomParameter name="psColor" value="1.5 1.5 1 1"/>
    </Material>
    <Material name="woodDust_mat" materialId="7" alphaBlending="true" customShaderId="7" shadingRate="2x2">
      <Texture fileId="5"/>
      <Normalmap fileId="6"/>
      <CustomParameter name="psColor" value="1.5 1.5 1 1"/>
    </Material>
  </Materials>


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


  <Dynamics>
    <ParticleSystem name="woodDustEmitter" dynamicId="1" type="sprite" rate="0.5" lifespan="400" maxCount="1000" speed="0.004" speedRandom="0.0005" tangentSpeed="0.2" normalSpeed="1.2" spriteScaleX="0.08" spriteScaleY="0.08" blendFactor="1" blendInFactor="0" blendOutFactor="1" depthSort="true" deltaRotateMin="-0.00139626" deltaRotateMax="0.00139626" textureAtlasSizeX="32" textureAtlasSizeY="4">
      <Gravity force="0 -2 0"/>
    </ParticleSystem>
    <ParticleSystem name="woodDustEmitter" dynamicId="4" type="sprite" rate="1" lifespan="1000" maxCount="1000" speed="0.001" speedRandom="0.0005" tangentSpeed="0.5" normalSpeed="1.2" spriteScaleX="0.03" spriteScaleY="0.03" blendFactor="1" blendInFactor="0" blendOutFactor="1" depthSort="true" deltaRotateMin="-0.00139626" deltaRotateMax="0.00139626" textureAtlasSizeX="32" textureAtlasSizeY="4">
      <Gravity force="0 -0.5 0"/>
    </ParticleSystem>
    <ParticleSystem name="woodDustEmitter" dynamicId="6" type="sprite" rate="0.1" lifespan="1000" maxCount="1000" speed="0.001" speedRandom="0.0005" tangentSpeed="0.5" normalSpeed="1.2" spriteScaleX="0.2" spriteScaleY="0.2" blendFactor="1" blendInFactor="0" blendOutFactor="0" depthSort="true" deltaRotateMin="-0.00139626" deltaRotateMax="0.00139626" textureAtlasSizeX="4">
      <Gravity force="0 -0.5 0"/>
    </ParticleSystem>
    <ParticleSystem name="woodDustEmitter" dynamicId="3" type="sprite" rate="0.2" lifespan="400" maxCount="1000" speed="0.004" speedRandom="0.0005" tangentSpeed="0.2" normalSpeed="1.2" spriteScaleX="0.6" spriteScaleY="0.6" spriteScaleXGain="0.0001" spriteScaleYGain="0.0001" blendFactor="1" blendInFactor="0" blendOutFactor="0.5" depthSort="true" deltaRotateMin="-0.00139626" deltaRotateMax="0.00139626" textureAtlasSizeX="4">
      <Gravity force="0 -2 0"/>
    </ParticleSystem>
  </Dynamics>

  <Scene>
      <TransformGroup name="forestry" nodeId="19">
        <TransformGroup name="CRUSHER_WOOD" nodeId="20">
          <Dynamic dynamicId="1" emitterShapeNodeId="23" name="woodChipsEmitter" clipDistance="100" nodeId="22" materialIds="5" castsShadows="true" receiveShadows="true" distanceBlending="false">
            <Shape shapeId="2" name="emitShape" nodeId="23" materialIds="4" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
        <TransformGroup name="CRUSHER_DUST" nodeId="24">
          <Dynamic dynamicId="3" emitterShapeNodeId="27" name="woodDustEmitter" clipDistance="100" nodeId="26" materialIds="6" castsShadows="true" receiveShadows="true" distanceBlending="false">
            <Shape shapeId="2" name="emitShape" nodeId="27" materialIds="4" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
        <TransformGroup name="CHAINSAW_WOOD" nodeId="28">
          <Dynamic dynamicId="4" emitterShapeNodeId="31" name="woodChipsEmitter" clipDistance="100" nodeId="30" materialIds="5" castsShadows="true" receiveShadows="true" distanceBlending="false">
            <Shape shapeId="5" name="emitShape" nodeId="31" materialIds="4" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
        <TransformGroup name="CHAINSAW_DUST" nodeId="32">
          <Dynamic dynamicId="6" emitterShapeNodeId="35" name="woodDustEmitter" clipDistance="100" nodeId="34" materialIds="7" castsShadows="true" receiveShadows="true" distanceBlending="false">
            <Shape shapeId="5" name="emitShape" nodeId="35" materialIds="4" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
      </TransformGroup>
  </Scene>

  <UserAttributes>
    <UserAttribute nodeId="22">
      <Attribute name="fillType" type="string" value="woodChips"/>
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="CRUSHER_WOOD"/>
    </UserAttribute>
    <UserAttribute nodeId="26">
      <Attribute name="fillType" type="string" value="woodChips"/>
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="CRUSHER_DUST"/>
    </UserAttribute>
    <UserAttribute nodeId="30">
      <Attribute name="fillType" type="string" value="woodChips"/>
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="CHAINSAW_WOOD"/>
      <Attribute name="useWorldSpace" type="boolean" value="true"/>
    </UserAttribute>
    <UserAttribute nodeId="34">
      <Attribute name="fillType" type="string" value="woodChips"/>
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="CHAINSAW_DUST"/>
      <Attribute name="useWorldSpace" type="boolean" value="true"/>
    </UserAttribute>
  </UserAttributes>

</i3D>
