CMP export/import
Hi All,
I'm currently fiddling a bit with the CMP files. I'm following thetips given by HCl, but get stuck somewhere. I'll try to explain:
Ok, I wrote a small prog to read the CMP file, specifically, the VMeshData block;
It seems that I get the headers correctly, then the triangles alright, but the vertices data looks bad. I use the dralthi example, imported it into milkshape, exported it to ms3d ascii format, and try to compare the output of my prog to the dralthi.txt.
This way I can check the functionnality. But I got different values for the vertices.
edited;
Ok, some more explanation;
I start by reading the UTF header,
then follow the nodes until I catch a VMeshData node;
then I read the header (16 bytes), then the mesh header (12 bytes), then all the triangles (got the number frommesh header), then i'm supposed to find quuite a lot of floats, 8 for each vertice. There comes the problem. The values found here are quite different from what is in the dralthi ascii file.
Any idea ?
Marc.
Edited by - marc on 25-06-2003 18:15:24
I'm currently fiddling a bit with the CMP files. I'm following thetips given by HCl, but get stuck somewhere. I'll try to explain:
Ok, I wrote a small prog to read the CMP file, specifically, the VMeshData block;
It seems that I get the headers correctly, then the triangles alright, but the vertices data looks bad. I use the dralthi example, imported it into milkshape, exported it to ms3d ascii format, and try to compare the output of my prog to the dralthi.txt.
This way I can check the functionnality. But I got different values for the vertices.
edited;
Ok, some more explanation;
I start by reading the UTF header,
then follow the nodes until I catch a VMeshData node;
then I read the header (16 bytes), then the mesh header (12 bytes), then all the triangles (got the number frommesh header), then i'm supposed to find quuite a lot of floats, 8 for each vertice. There comes the problem. The values found here are quite different from what is in the dralthi ascii file.
Any idea ?
Marc.
Edited by - marc on 25-06-2003 18:15:24