火炬之光是用Ogre開發的一款單機游戲,所以他的資源是可以再度利用的.但是在加載模型時他的動畫信息沒有導入進來,所以要將他的Skeleton文件動下手腳,以火炬之光中 Model/Goust為例,先將Goust.Skeleton文件拖放到OgreXmlConverter.exe工具圖標上,然后就會在Goust.Skeleton目錄上生成一個Goust.Skeleton.XML文件,該在中間插入<animationlinks>標記,然后將所有的動畫Skeleton文件Link進來.然后將xml文件拖到OgreXmlConverter.exe工具圖標上,便自動又生成一個oust.Skeleton,該文件內就會link動畫文件了
<skeleton>
<bones>
</bones>
<bonehierarchy>
</bonehierarchy>
<animations>
</animations>
<animationlinks>
</animationlinks>
</skeleton
<animationlinks>
<animationlink skeletonName="Attack1.SKELETON" scale="1" />
<animationlink skeletonName="Attack2.SKELETON" scale="1" />
<animationlink skeletonName="Die.SKELETON" scale="1" />
<animationlink skeletonName="Idle.SKELETON" scale="1" />
<animationlink skeletonName="Run.SKELETON" scale="1" />
<animationlink skeletonName="spawn.SKELETON" scale="1" />
<animationlink skeletonName="special_teleport.SKELETON" scale="1" />
<animationlink skeletonName="Special_Gen_AOE.SKELETON" scale="1" />
<animationlink skeletonName="Walk.SKELETON" scale="1" />
<animationlink skeletonName="Special_summon.SKELETON" scale="1" />
</animationlinks>
|
posted on 2010-04-11 22:41
AstaTus 閱讀(1777)
評論(0) 編輯 收藏 引用 所屬分類:
Ogre