HELP!! I must save my model 3d in file.3ds format with c++

Started by
1 comment, last by Luca Bimbe 21 years, 6 months ago
i realized a program : **Import a file.3ds **realize a polygonal semplification now i want import the semplified model in a file.3ds but i don''t know who generate a file.3ds to save the new propriety of model
Advertisement
I''m not sure if I understood that correctly, but if you''re looking for file format specifications of the 3ds format, then take a look at this page:

http://sparks.discreet.com/downloads/downloadshome.cfm

They have a complete and very exhaustive 3ds format toolkit there.

Ciao, ¡muh!
They're watching us...
I guess Luca want to save his mesh in a .3ds

If you''ve been able to load a .3ds file, you know how the system work (hierarchy of chunk). Thus, you simply need to write others function to overwrite or modify the old file.

example:

void ReadFloat(FILE *File,void **var)
{
(*var)=malloc(sizeof(float));
fread(*var,sizeof(float),1,File);
}

void WriteFloat(FILE *File,float FloatVar)
{
fwrite(&FloatVar,sizeof(float),1,File);
}

This topic is closed to new replies.

Advertisement