• Advertisement

Archived

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

Smaller x files

This topic is 6007 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''m looking for way to "compress" x files (directx 3d models). Or perhaps rather another format to strore them in so they aren''t so big. You see, I''m going to use it in a context where size is of the essens. The problem is that directx stores the values as text not "bytes" (e.g. "1", "4", "5" instead of the byte 0x91 (145 in hex). You know what I mean). I''ve tried to use normal compression but that wasn''t very efficient. It would be much better with some sort of "special" compressed x file format. Hope anybody can help. Per Rasmussen.

Share this post


Link to post
Share on other sites
Advertisement
Hi,

i am not sure if i can help you, but it seems that you''re
using text-x-files. You can convert them into binary-x-files
with the convxof-tool included in the DirectX-SDK.
They''re much smaller. There are also tools as the DXEditor,
which can convert text to binary files ( I don''t know where
you can find them). I hope i have helped you.

bye

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Afternoon, Perrs.

Have you tried using "D3DXSaveMeshToX" with *both* "DXFILEFORMAT_BINARY" and "DXFILEFORMAT_COMPRESSED" together?

Cheers,
Scronty

Share this post


Link to post
Share on other sites
Moving to binary files should be a dramatic improvement, but you could also make up your own format if you know that you can always make certain assumptions about the format. Writing a file converter/parser is easy if you don''t have to handle many, many different things.

Share this post


Link to post
Share on other sites

  • Advertisement