Making a world

Started by
10 comments, last by Roble 21 years, 2 months ago
If you can''t figure out the code above, I suggest you spend more time in C++ or beginning D3D. This is not meant as criticism. The above code will load a standard mesh, however it will not load a skinned mesh or an animated mesh. A standard mesh is probably good for you now, but as I say, if you can''t understand it don''t use it.

Don''t expect to be able to render a full world at your first attempt. Try getting a few triangles moving around the screen, work with textures, and once you have got that down pat attempt a standard XFile Loader like the one above.
Advertisement
here is an example of how I would use the above code:

CMesh_X* pMesh = NULL;

// init
pMesh = new CMesh_X;
pMesh->Create(pd3dDevice, "file.x";

// loop
pMesh->Render();

// cleanup
delete pMesh;

This topic is closed to new replies.

Advertisement