I would like to load a mesh:
Code: Select all
m_pTestEntity = OgreFramework::getSingletonPtr()->m_pSceneMgr->createEntity("TestEntity", "Origin.mesh");
I have tried to use a "face" with same 2 vertexes but noting rendered. Maybe there is another trick that can achieve this?
Code: Select all
<mesh>
<submeshes>
<submesh material="Material" usesharedvertices="false">
<faces count="1">
<face v1="1" v2="0" v3="1"/>
</faces>
<geometry vertexcount="2">
<vertexbuffer positions="true" normals="true">
<vertex>
<position x="0.000000" y="0.000000" z="0.000000"/>
<normal x="0.000000" y="-0.000000" z="-1.000000"/>
</vertex>
<vertex>
<position x="1.000000" y="0.000000" z="0.000000"/>
<normal x="0.000000" y="-0.000000" z="-1.000000"/>
</vertex>
</vertexbuffer>
</geometry>
</submesh>
</submeshes>
</mesh>
Thank you!
Vance