Vertical/upside-down terrain, non-square terrain resolution

Ok, I’ve got two quick terrain questions for you guys.

1: Is it possible to orient a terrain object vertically, or flip it upside down? To create a wall, or ceiling, essentially. I know that some game engines, such as Unreal, allow that even on their basic height-mapped terrain. A quick test showed that it’s either not readily apparent or not possible in Unity - and I’m hoping the former.

2: My level is a small enclosed space, stretching down a very long, narrow corridor (It’s a sidescroller). I only need a narrow strip of terrain, but I do need it to stretch a long ways. I notice that if I put a non-square aspect ratio to the terrain resolution - 2000 length and 300 width, for instance - then texture painted onto the terrain afterwards is squashed accordingly. Which makes a certain amount of sense.

So as far as I can tell, I have two less-than-ideal options: I can either have a large, square piece of terrain, with 90% of it hidden behind a wall and completely unused, or I can have a bunch of small terrain objects lined up together.

Is there a better way, or are those my options? And if the latter, which one would be a better choice?

  1. Not possible, terrains ignore transform data aside of potentially position.
    But thats actually no problem, just “rotate your playfield” to be top down than looking from the side and its all fine.

  2. I would go for the first as it won’t be a problem for rendering as the not used chunks of the terrain are not rendered as well.

Max,

I also wanted to create vertical surfaces (walls) in terrain; in my case it is a harbor dock; what I ended up doing was building a heightmap in photoshop and carefully painted the height on a pixel by pixel basis. If the wall is aligned with the x or y axis, you get a pretty nice clean vertical surface that way. Of course the texture mapping is all screwed up, so you can add a plane, orient it vertically and put it just to the side of the wall, then put any texture you need on the plane.

Realize that when using this method, the ‘angle’ of the wall depends on the heightmap resolution and the overall terrain size. If your area is small and you use the 2048x2048 heightmap, you can get pretty sharp wall, but if you have a 10000x10000 terrain and a 128x128 height map, the wall will look more like a gentle slope

This is not optimal, but it is worth a try.