I'm having a little difficulty using the IDirect3DRMMeshbuilder's GetVertices function. When I use it, I check the HRESULT return value and apparently it tells me I've "Passed a Bad Value". Actually I'm using the the DirectX5 SDK (not 6, since 6s GetVertices function has severly been changed).
I'm not sure what's wrong. Here's the code:
DWORD *vcount;
D3DVECTOR *vertices;
DWORD *ncount;
D3DVECTOR *normals;
DWORD *faceDataSize;
MESHSTRUCT zmeshstruct;
HRESULT myresult;
myresult = mesh->GetVertices(cvcount, xcvertices, ncount, normals, faceDataSize, NULL);
Now, I know that faceDataSize can't be NULL. But if I pass NULL as the last parameter (which would be the faceData), the function returns the DataSize in the faceDataSize variable. Besides, ALL I'M TRYING TO DO IS GET VERTEX POSITIONS! I don't want normals or vertex counts or facedata, just positions (why does it hafta be so damn hard?).
If anyone could help me, it would be greatly appreciated.
Thanks alot,







