Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Luca Bimbe

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

This topic is 5726 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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);
}

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!