project-navigation
Personal tools

Author Topic: "terrain" contentflag?  (Read 3578 times)

Offline ShipIt

  • Project Artist
  • Captain
  • ***
  • Posts: 906
    • View Profile
"terrain" contentflag?
« on: December 02, 2012, 10:55:23 am »
The "terrain" contentflag is not described in the wiki. Anybody knows what it is for?

Offline Sandro

  • Squad Leader
  • ****
  • Posts: 240
  • Maintenance guy for UFO:AI 3D engine
    • View Profile
Re: "terrain" contentflag?
« Reply #1 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.

Offline ShipIt

  • Project Artist
  • Captain
  • ***
  • Posts: 906
    • View Profile
Re: "terrain" contentflag?
« Reply #2 on: December 16, 2012, 11:12:39 am »
Could you give some example of where this would be usefull in practice?

Offline Sandro

  • Squad Leader
  • ****
  • Posts: 240
  • Maintenance guy for UFO:AI 3D engine
    • View Profile
Re: "terrain" contentflag?
« Reply #3 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):