[No] Auto flat scaling for slopes

Moderator: Developers

Auto flat scaling for slopes

Postby Nash » Mon Jun 18, 2012 1:00 am

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
Nash
http://twitter.com/ISurvivorGame
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: Auto flat scaling for slopes

Postby Project Dark Fox » Mon Jun 18, 2012 1:38 am

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
Project Dark Fox
Nightmare Fuel Station Attendant
 
Joined: 14 Jul 2005
Location: The Gutter

Re: Auto flat scaling for slopes

Postby Enjay » Mon Jun 18, 2012 3:22 am

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
Enjay
The Force is strong with this one.
 
Joined: 15 Jul 2003
Location: Scotland

Re: Auto flat scaling for slopes

Postby cypherphage » Mon Jun 18, 2012 6:03 am

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
cypherphage
 
Joined: 27 Feb 2011

Re: Auto flat scaling for slopes

Postby Nash » Mon Jun 18, 2012 6:27 am

For natural terrain that is steep (like hills or cliffs), the stretching looks really terrible...
User avatar
Nash
http://twitter.com/ISurvivorGame
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: Auto flat scaling for slopes

Postby Graf Zahl » Wed Jun 20, 2012 2:51 am

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
Graf Zahl
 
Joined: 19 Jul 2003
Location: Germany

Re: Auto flat scaling for slopes

Postby Nash » Sat Dec 29, 2012 10:20 am

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!
User avatar
Nash
http://twitter.com/ISurvivorGame
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest