UFO:Alien Invasion

Development => Mapping => Topic started by: ShipIt on December 02, 2012, 10:55:23 am

Title: "terrain" contentflag?
Post by: ShipIt on December 02, 2012, 10:55:23 am
The "terrain" contentflag is not described in the wiki. Anybody knows what it is for?
Title: Re: "terrain" contentflag?
Post by: Sandro on December 16, 2012, 04:29:27 am
It forces texture coordinate plane to be horisontal, even if face in question is at >45 deg angle to horison. Intended to keep texture mapping continuous on steep slopes. Not to be used on exactly vertical faces, this could cause rendering anomalies.

In other words, it forces texture to be mapped in xy plane, disabling xz and yz cases.
Title: Re: "terrain" contentflag?
Post by: ShipIt on December 16, 2012, 11:12:39 am
Could you give some example of where this would be usefull in practice?
Title: Re: "terrain" contentflag?
Post by: Sandro on December 16, 2012, 03:41:13 pm
Guess a picture is worth a thousand words, so (all textures have identical scale, offset and rotation in editor):