TEXTURES patch cropping

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

TEXTURES patch cropping

Postby Nightfall » Thu Dec 10, 2015 7:27 pm

I don't know about others but I find TEXTURES massively useful for texture compositing, i.e. making textures out of other textures. All I need to do is essentially describe what I want the texture to look like in a text editor, reload GZDoom Builder and the new composite is sitting there ready to be plastered everywhere.

Suppose I want a composite texture with one bar METAL2 and one bar GRAY1, all that's needed is a description:
Code: Select allExpand view
Texture "ASDF", 64, 128
{
   Patch METAL2, 0, 0
   Patch GRAY1, 0, 64
}

and it's ready. Contrast if I had to edit the texture in e.g. GIMP instead. The speed and ease of use provided by this method makes composite texturing a viable method for detailing areas.

However, suppose we want for example TEKGREN2 with a WOODMET1 rusty metal bar. Well that can't be too hard, except that the metal bar we want is embedded 16 pixels down inside the WOODMET1 texture, which means we can't just stitch the two textures together because then it looks completely wrong.

With current capabilities we'd have to use a dummy texture to get the desired result:
Code: Select allExpand view
Texture __MYTEMP, 64, 32
{
   Patch WOODMET1, 0, -48
}

Texture ASDF, 64, 128
{
   Patch TEKGREN2, 0, 0
   Patch __MYTEMP, 0, 96
}


What I'd like to have thus would be a crop feature for this so parts of patches can be composited, e.g. in our case:
Code: Select allExpand view
Texture ASDF, 64, 128
{
   Patch TEKGREN2, 0, 0
   Patch WOODMET1, 0, 96 { Crop 0, 48 to 64, 80 }
}

This would instruct the engine to use a (0,48) to (64,80) crop of the patch instead of the whole patch. This would give more options for composition.
User avatar
Nightfall
 
Joined: 06 Aug 2009
Location: Finland

Re: TEXTURES patch cropping

Postby NeuralStunner » Fri Dec 11, 2015 9:54 am

As someone who uses compositing a lot, I would like this feature as well.
User avatar
NeuralStunner
Not "Neutral"
 
 
 
Joined: 21 Jul 2009
Location: capital N, capital S, no space
Discord: NeuralStunner#4201
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: TEXTURES patch cropping

Postby wildweasel » Fri Dec 11, 2015 12:22 pm

This would certainly cut down on the need for "pre-cropping" textures to use in other texture entries. I find when I'm working with Textures, I have to create a lot of "scratch" entries whose only use is being layered into other entries.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 15 Jul 2003

Re: TEXTURES patch cropping

Postby Major Cooke » Fri Dec 11, 2015 9:08 pm

Agreed, and TEXTURES is especially useful for saving on space when dealing with dual wielding weapons.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest