Smaller x files
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.
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
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
Afternoon, Perrs.
Have you tried using "D3DXSaveMeshToX" with *both* "DXFILEFORMAT_BINARY" and "DXFILEFORMAT_COMPRESSED" together?
Cheers,
Scronty
Have you tried using "D3DXSaveMeshToX" with *both* "DXFILEFORMAT_BINARY" and "DXFILEFORMAT_COMPRESSED" together?
Cheers,
Scronty
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement