Meshes and Vertexbuffers
I''m trying to write a loader for x-files and have a question regarding meshes and vertexbuffers. As I understand it you can do this at least in two ways:
1. Extract the mesh from the x-file and then basically store it as it is (after extracting materials and so forth) and then draw it using the DrawSubset function.
2. Extract all vertices (and more) and storing them in vertexbuffer and then discarding the mesh. Then you render from the vertexbuffer and apply all sort of fancy stuff like indices, shaders etc.
Have I understood it correctly? Please give a short explaination of this if I''m way off.
Which way should I go? The second sound much more flexible so I think I''m gonna do that.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement