Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Kaiser

The difference between Doom and Strife's texture format

Recommended Posts

This has been bothering me for a while now. Whats the difference between Doom and Strife's texture format?

Share this post


Link to post

Is there a difference?

AFAIK the only difference is Strife's palette, and that's not a difference in the format.

Share this post


Link to post
Deathman said:

This has been bothering me for a while now. Whats the difference between Doom and Strife's texture format?



The texture format is the same but Strife uses a compressed form of the structure that defines a single texture (Doom had some unused fields in it.

Here are the respective definitions from ZDoom's source. I hope they can help you.

typedef struct
{
	short	originx;
	short	originy;
	short	patch;
	short	unused1;
	short	unused2;
} mappatch_t;

typedef struct
{
	char		name[8];
        DWORD           unused;
	short		width;
	short		height;
	byte		columndirectory[4];	// OBSOLETE
	short		patchcount;
	mappatch_t	patches[1];
} maptexture_t;


typedef struct
{
	short	originx;
	short	originy;
	short	patch;
} strifemappatch_t;

//
// A wall texture is a list of patches which are to be combined in a
// predefined order.
//
typedef struct
{
	char		name[8];
        DWORD           unused;
	short		width;
	short		height;
	short		patchcount;
	strifemappatch_t	patches[1];
} strifemaptexture_t;

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×