MrSunshine
Joined: 21 Jan 2008 Posts: 12
|
Posted: Wed Jun 18, 2008 12:44 am Post subject: MD2 Has arived =) |
|
|
MD2 models are now supported in Odin's Eye, Textures are set by using techniques in the material format.
It isnt that hard to load, this is subject to change tho as im planing some remaking of entity system etc =)
Anyways just wanted to show that the engine is rushing forward =)
D source
Code: |
Entity md2ent = SceneManager.createEntity("Md2Entity", "test");
md2ent.load("test.md2");
md2ent.setMaterial("testMat");
md2ent.setCurrentTechnique("testTech");
md2ent.setAnimation("run");
scenenode.attachEntity(md2ent);
|
material.xml
Code: |
<Material name="testMat">
<Texture name="testTex">
<Filename value="test.tga"/>
</Texture>
<Technique name="testTech">
<pass>
<Texture index="0" name="testTex"/>
</pass>
</technique>
</Material>
|
Screenshot can be found on http://www.dsource.org/projects/odinseye |
|