S3D format question
This seems as good a place as any to ask this :
I've been trying to understand the S3D format and can sucessfully decompress all the records in one now. I can get the record containing the "filenames" but they don't seem to be in any particular order I can find. The first filename doesn't seem to match the first directory entry... How can I tie up the filenames with the directory entries? |
Sort the directory entries by their CRC in ascending order :)
|
Ah thanks, that works :)
What a strange file format. I've now downloaded your viewing program instead of looking for random web pages with the information although i can't build it as I only have windows handy. Hmm, I think there is enough in there for me to decode the WLD files too at least enough to build a list of untextured triangles I can draw. |
Well, we hope to move fully away from wld soon. We're planning to convert all wld files to their new-style equivelents for efficiency and cleanliness reasons. Might want to look into how to read .TER files rather than wld hehe.
|
Well my main aim here was learning some more direct3d.
And the EQ files seemed like a good place to get some textures and verticies to draw :) |
Ah, cool. I would help ya out, but I neither know d3d nor desire to learn it :P
|
Well the graphics API is the easy part. It's getting the right data to put into it that's hard.
DX9 and opengl seem pretty much the same anyway with just a different syntax for doing the same things. |
Except OpenGL is cross-platform, and D3D isn't ;)
|
True, opegl itsself is cross playform although the programs that make use of it tend to be not so much.
Anyway, I'm already reasonably familiar with opengl and wanted to learn dx9 as well. You can never know too many things... And it seemed a good opertunity to combine that with learning about EQ file formats. Are the other file formats of which you spoke in the earlier message any easier to process, or should I stick to WLD files given that for now I just want to extract some geometry to draw... Possibly doing something more advanced next project. |
Ter files are soooooooooooooooooooooooo easy to draw. Seriously, I did it in less than 60 lines of python lol. My documentation on the file format is available on this forum.
|
Thanks for that it looks interesting.
I'll take a better look at it tomorrow :) |
You are right it is an easy format.
I've rendered "anguish" zone although all the triangles have a single texture so far. Real textures are a project for another day... Thanks for the help :) http://img76.exs.cx/my.php?loc=img76...e=render01.jpg (Bah, can't seem to add a proper image to this posting...) |
Quote:
http://img76.exs.cx/img76/9436/render01.th.jpg Click to Enlarge. |
Thanks , I tried about 20 different times with html and [img] tags but the preview just showed what I typed in.
|
Quote:
Lets say Code:
http://img76.exs.cx/img76/9436/render01.jpg Code:
http://img76.exs.cx/img76/9436/render01.th.jpg So you use Code:
[url=http://img76.exs.cx/img76/9436/render01.jpg][img]http://img76.exs.cx/img76/9436/render01.th.jpg[/img][/url] |
All times are GMT -4. The time now is 06:54 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.