I need to generate a large terrain from real world data (textures, object locations and terrain features). Is this possible with Unity3D? I just started searching and browsing the forums but I haven’t found any good answers yet so any suggestions appreciated. It’s for an air traffic simulation (static cameras). Thanks
I’ve not done this in Unity but I have some experience loading data like this in other systems and it appears to me that everything you need is available in Unity to do this. That is, you can load external data using C# IO facilities (or perhaps from the web using Unity’s web asset loading, etc) and you can instantiate objects from scripts, apply your textures, etc.
You can import raw height maps to get the terrain shape/deformation you want, but accurately placing buildings and objects will be a manual task. I’m sure you can find some way of using aerial shots placed as textures on in-editor-only models (that you delete when publishing) to use as guides and whatnot. Or if not that, something clever that lets you get the terrain via height maps then easy (enough) object placement in the correct locations.
Doing geo-specific terrain is pretty challenging in Unity, especially for large areas. The easiest portion is the terrain elevation, as was already indicated you can bring in a heightmap and Unity will do an excellent job triangulating and LODing the terrain for you; however, that’s where the nice things end. For one thing, if your area is large, the 2048 x 2048 (or something like this), heightmap size limitation means you can only do small areas, a few square miles, at most.
Placing features is either a manual effort, or you have to write scripts to do it for you; for example, you can get building footprints in ArcGIS format for most municipalities; you could write a program to read these and extrude building geometry, then import it as meshes.
By far the hardest thing to do is apply geospecific textures; you can use a single texture on your terrain (maybe use aerial imagery of something like that), but if you want to add detailed high res textures on specific areas with oriented features (road stripes, fields in specific directions etc.), then forget it. The texture tools are meant for general ambient texture application, not detailed application; that is a big limitation for geospecific applications;
I would love to know if anyone has any better ideas on how to do this.
I stitched together 4 aerial pictures of humphrey’s peak north of Flagstaff in photoshop and loaded them onto the DEM (digital elevation model) in the free 3dem software, they fit perfectly. Be cool to make a larger one and be able to fly over it. I can save terragen .ter files (they’re grayscale heightmaps) and get .obj, stitching them together along with the
textures is unexplored territory though.
