View Full Version : 3Dmax exporter problem

03-04-2004, 05:07 PM
Hi!! i try to export a model and write the info in a bin format , but i have a prblem when i write the tvFaces in the bin file the content is wrong i save the same model in text format and i don't have a problem , can you tell me what i'm doing wrong , this is the part of my code.

DWORD a1=msh->tvFace[i].t[0];
DWORD a2=msh->tvFace[i].t[0];
DWORD a3=msh->tvFace[i].t[0];

fwrite(&a1, sizeof(DWORD), 1, fp);
fwrite(&a2, sizeof(DWORD), 1, fp);
fwrite(&a3, sizeof(DWORD), 1, fp);

Tom Nuydens
03-04-2004, 10:16 PM
This question has nothing to do with OpenGL -- it doesn't belong in these forums.

-- Tom