CreateMesh
Hi
I created my own 3d model file format and I would like to write a function like CreateMeshFromXFile from the SDK, which would Create mesh from my files... But I got some troubles. I use createmesh, then createindexbuffer, I lock it, fill it, then unlock it. But nothing appears. Maybe it is due to the indices buffer but I don t know how fill it? And the attributes buffer? What should I do in my function so that I just have to call pMesh->DrawSubset(i) in my Render function() ?
I don t know if I m understood. If not, say it and I ll try to be more precise...
Thanks
NONO
Same here! I have the exact same problem. I have been mucking around with the attribute table and adjacency buffer to try to get it to work. The trouble is the DrawSubset function doesn''t work, because you have to provide a SubsetID. I tried 0 and 1, they don''t work.
I have been looking for the answer to this problem for weeks. I am beginning to think that it''s impossible: that MS purposefully made the D3DXMesh object to work only with .x files, so that they could force everyone to use .x files and monopolise yet another part of computing!
In fact I have been so annoyed by this problem, I started learning OpenGL and thanks to NeHe I know some of the basics already.
If anyone could answer this question I would be extemely grateful, I''d give you a major credit in my game engine I''m working on.
I have been looking for the answer to this problem for weeks. I am beginning to think that it''s impossible: that MS purposefully made the D3DXMesh object to work only with .x files, so that they could force everyone to use .x files and monopolise yet another part of computing!
In fact I have been so annoyed by this problem, I started learning OpenGL and thanks to NeHe I know some of the basics already.
If anyone could answer this question I would be extemely grateful, I''d give you a major credit in my game engine I''m working on.
Simon PriceSi@VBgames.co.ukwww.VBgames.co.uk
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement