Auto flat scaling for slopes

Moderator: GZDoom Developers

Post Reply
User avatar
Nash
 
 
Posts: 17512
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Auto flat scaling for slopes

Post by Nash »

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?
User avatar
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

Post by Project Shadowcat »

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.
User avatar
Enjay
 
 
Posts: 27578
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Auto flat scaling for slopes

Post by Enjay »

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...
User avatar
cypherphage
Posts: 213
Joined: Sun Feb 27, 2011 2:54 am

Re: Auto flat scaling for slopes

Post by cypherphage »

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.
User avatar
Nash
 
 
Posts: 17512
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Auto flat scaling for slopes

Post by Nash »

For natural terrain that is steep (like hills or cliffs), the stretching looks really terrible...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Auto flat scaling for slopes

Post by Graf Zahl »

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.
User avatar
Nash
 
 
Posts: 17512
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Auto flat scaling for slopes

Post by Nash »

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!
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”