So in order to do my firsts steps, i'm going to do a pool game (yes there is so much existing pool games, but this one is a way for me to learn game dev).
I use the "BsdColision" Demo because it's not so far to my aim.
But i have my first probleme
I've made a 3D model for pool using blender (i'm new to blender too)

i use the python script to export my model in xml, and after use comand line tool to convert into .mesh
(i got some warnings: "Ignored face with 2 edges")
in my code i added :
Code: Select all
// Create the entity
Ogre::Entity* mEntity = mSceneMgr->createEntity( "Billard","billard.mesh" );
// Create the scene node
Ogre::SceneNode* mNode = mSceneMgr->getRootSceneNode( )->createChildSceneNode( "BillardNode", Vector3( -150, 40, 30 ) );
mNode->attachObject( mEntity );
missing faces, seems no materials..
in log file:
i don't understand well how to apply a material, and also why i haven't all my faces .23:17:03: Mesh: Loading billard.mesh.
23:17:03: Can't assign material Material.001 to SubEntity of Billard because this Material does not exist. Have you forgotten to define it in a .material script?

