[Code] Flat Bleeding, Without the Fuss

Post your example zscripts/ACS scripts/etc here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space

[Code] Flat Bleeding, Without the Fuss

Post by NeuralStunner »

(G)ZDoom emulates an old rendering glitch used by many maps, in which you leave an upper/lower texture blank, and the flat from the touching sector will be rendered over it. This is less fussy than [wiki]Transfer_Heights[/wiki], having the advantage of ignoring the affected sector's lighting effects (such as color and flicker).

The problem is, A map editor will usually display errors for every instance of a missing texture. Want an error-free flat hack?

Throw this into your [wiki]TEXTURES[/wiki]:

Code: Select all

// Allows maps to use the Flat Bleeding trick without getting editor errors. - NS

Texture FlatHack, 16, 16
{
	Patch "-NoFlat-", 0, 0
	NullTexture
}
Now you simply place FLATHACK wherever you would normally put a blank texture. (G)ZDoom will use it as a null texture, while Doom Builder and the like will accept it as a valid texture. (Although it will probably not render in DB2 either, since it doesn't understand using textures as patches!)
User avatar
esselfortium
Posts: 3862
Joined: Tue Sep 19, 2006 8:43 pm

Re: [Code] Flat Bleeding, Without the Fuss

Post by esselfortium »

You can do this already without any mods: use AASHITTY as your upper/lower texture, and it'll behave as though the texture is missing entirely.

If you're mapping for Doom instead of Doom II, use AASTINKY instead. Similarly, the first texture in the list for Heretic, Hexen, and Strife will all behave as equivalent to null.
User avatar
darkhaven3
Posts: 502
Joined: Mon Jan 05, 2004 5:33 am
Location: East Germany, 2023

Re: [Code] Flat Bleeding, Without the Fuss

Post by darkhaven3 »

The Wiki wrote:The image will never actually be drawn. This duplicates the behavior of AASHITTY and other special textures.
Did it not occur to you to just try using AASHITTY?
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space

Re: [Code] Flat Bleeding, Without the Fuss

Post by NeuralStunner »

DB2 still complains that AASHITTY or AASTINKY is not a known texture. (At least it did the first time I tried. Argh.)

Although making your own NullTexture is still helpful for maps/mods not specific to one IWad. (Or making an IWad of your own.)
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: [Code] Flat Bleeding, Without the Fuss

Post by Gez »

esselfortium wrote:Similarly, the first texture in the list for Heretic, Hexen, and Strife will all behave as equivalent to null.
For reference.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space

Re: [Code] Flat Bleeding, Without the Fuss

Post by NeuralStunner »

Hacx has the best one. (AARDVARK!)
User avatar
printz
Posts: 2649
Joined: Thu Oct 26, 2006 12:08 pm
Location: Bucharest, Romania

Re: [Code] Flat Bleeding, Without the Fuss

Post by printz »

I'd rather have DB and GZDoom scream at me, makes me feel tougher.
User avatar
Enjay
 
 
Posts: 27563
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: [Code] Flat Bleeding, Without the Fuss

Post by Enjay »

NeuralStunner wrote:This is less fussy than [wiki]Transfer_Heights[/wiki]...
Personally, I find using transfer heights less fussy, more logical, easier to remember and easier to implement. I'm not commenting on the suggested method as such, just that I prefer the apparently "fussy" method. ;)
User avatar
printz
Posts: 2649
Joined: Thu Oct 26, 2006 12:08 pm
Location: Bucharest, Romania

Re: [Code] Flat Bleeding, Without the Fuss

Post by printz »

I don't really like Transfer_Heights especially in Boom/Eternity where you sink like a rock... I find GZDoom 3d floors a better alternative.
User avatar
Enjay
 
 
Posts: 27563
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: [Code] Flat Bleeding, Without the Fuss

Post by Enjay »

This is not about using transfer heights to make swimable water but, rather, to use for special effects such as hiding a monster in an invisible pit etc.

Return to “Script Library”