FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MD2 Has arived =)

 
Post new topic   Reply to topic     Forum Index -> Odin's Eye
View previous topic :: View next topic  
Author Message
MrSunshine



Joined: 21 Jan 2008
Posts: 12

PostPosted: Wed Jun 18, 2008 12:44 am    Post subject: MD2 Has arived =) Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Odin's Eye All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group