PIE-File format 2 or 3?

For code related discussions and questions
Seismo
Trained
Trained
Posts: 70
Joined: 06 Feb 2010, 17:32

PIE-File format 2 or 3?

Post by Seismo »

When i browse the current source i have seen only PIE format 2 is used for the models/meshes, right?
Are you planning to change that to 3 or do you plan to use a complete different model format in future (details?)?
Which files i need to build a .pie file reader/converter/writer? (I work on an editor in C# currently)
Any help would be highly appreciated. Thank you in advance. :)
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: PIE-File format 2 or 3?

Post by Per »

PIE2 only is used at the moment, with one exception (radar detector model). I've also added some additions to the PIE format that we use that I have not documented anywhere except on this forum and in the code (for lighting and normalmap support), but this is not yet in use in any currently used models.
Jorzi
Regular
Regular
Posts: 2063
Joined: 11 Apr 2010, 00:14

Re: PIE-File format 2 or 3?

Post by Jorzi »

Isn't pie 3 just an extension to pie 2? (which means pie 2 models work nicely even though the reader reads them as if they were pie 3?)
ImageImage
-insert deep philosophical statement here-
Safety0ff
Trained
Trained
Posts: 397
Joined: 18 Jul 2009, 23:23

Re: PIE-File format 2 or 3?

Post by Safety0ff »

Jorzi wrote:Isn't pie 3 just an extension to pie 2? (which means pie 2 models work nicely even though the reader reads them as if they were pie 3?)
If I recall correctly, it can't read them as if they are pie 3 because of floating point texture coordinates. Though this might have been changed/kludged so that pie3 uses 0-256 as the range for texture coordinates (I hope not).
Jorzi
Regular
Regular
Posts: 2063
Joined: 11 Apr 2010, 00:14

Re: PIE-File format 2 or 3?

Post by Jorzi »

Ah yes, didn't think of the texture coordinates
ImageImage
-insert deep philosophical statement here-