A feature that automatically scales the UVs of the flats (okay well maybe not "UV"; I don't know what is it internally, but I hope you understand) so that when the sector is sloped, there would be no texture distortion.
I'm sure everyone knows what will happen when you extremely slope a sector; the texture will look really stretched and distorted. So this feature is about drawing the texture at a 1:1 scale no matter how "sloped" the terrain is.
Not sure how would this be implemented. MAPINFO? Custom field in the sector? A new arg for the slope line specials or things?
Auto flat scaling for slopes
Moderator: GZDoom Developers
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: Auto flat scaling for slopes
A custom field in the sector would make more sense. The current distortion still keeps it 1:1 when you're looking down, allowing it to align with other sectors that rely on the flat's distortion to still line up in many cases.
Re: Auto flat scaling for slopes
Yeah, it's a real tricky one. If the default behaviour is used, the flat gets stretched on very steep slopes. If you scale the flat, it may no longer match up with surrounding flats. In most cases, it really comes down to a bit of trial and error to get something that works. Each case can be slightly different: sometimes the flats lining up matters, sometimes it doesn't; sometimes the flat looks OK stretched, sometimes it doesn't; sometimes a little scaling is needed, sometimes a lot is...
- cypherphage
- Posts: 213
- Joined: Sun Feb 27, 2011 2:54 am
Re: Auto flat scaling for slopes
So an option to make the slope scale like a line instead of a flat? I would very much welcome this if it is possible, as there are many instances where this seems like it would be nice.
Re: Auto flat scaling for slopes
For natural terrain that is steep (like hills or cliffs), the stretching looks really terrible...
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Auto flat scaling for slopes
Regardless, I think this needs to be an editor feature, not an engine one. If implemented in the engine it will only complicate matters for editors - where it matters most.
Re: Auto flat scaling for slopes
Sorry for the bump but I'd just like to add that with the modern features of GZDoomBuilder, this has become a non-issue anymore.
Scaling the flats in the editor in real-time in GZDB is such a relaxing thing to do. I'm loving it!
Scaling the flats in the editor in real-time in GZDB is such a relaxing thing to do. I'm loving it!