Convert image into .mesh file

Tushar

29-01-2010 04:21:51

Hi friend

I want to convert any image into .mesh file. How ?

or i want to use image in Ogre window. like wall,square ect... how ?

Give me sample code for use the image on Ogre Window
Give Good tutotial on the MOGRE........
Bassically I am using MOGRE.

Have nice Time.

Advance thanks

TaylorMouse

02-02-2010 13:41:22

Try this :




Plane plane = new Plane(Vector3.UNIT_Y, 0);

//Everything we want needs to be registered in the MeshManager
MeshManager.Singleton.CreatePlane("UserFriendlyName_Ground",
ResourceGroupManager.DEFAULT_RESOURCE_GROUP_NAME,
plane,
20, 20, // Size of the plane
10, 10, // sub-division of the plane
true, // use Normals
3, // number of Texture Coordiantes sets
1, 1, // u and v texture coordinates
Vector3.UNIT_Z);

// Create an entity of this mesh, so we can use it
Entity ground = mgr.CreateEntity("ground", "UserFriendlyName_Ground");
mgr.RootSceneNode.CreateChildSceneNode().AttachObject(ground);