Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

City With elevations

Discussion in 'Game Design' started by k_jones, Nov 3, 2016.

  1. k_jones

    k_jones

    Joined:
    Jan 30, 2016
    Posts:
    2
    Hi,

    i am trying to make a city in unity, but i do not want the terrain to be all one level i want the roads to go up and down. while still having buildings along side them below are pictures of what i was thinking if anyone can direct me to a tutorial or advice would be great. i started making the buildings in probuilder already.







     
  2. DwarfWorld

    DwarfWorld

    Joined:
    Sep 28, 2016
    Posts:
    11
    Not sure what exactly you're asking for, but generally, you're looking at terrain elevation differences in these shots. How you make the models match up with terrain depends a lot on what you're going for. What's the goal here?
     
  3. k_jones

    k_jones

    Joined:
    Jan 30, 2016
    Posts:
    2
    i'm not really sure how else to explain it i do want terrain with elevation ( not exactly like a forest or something).

    But, here is a video tutorial and as you can see at the end the city is just flat i seen a lot of these none exactly differnt elevations
     
  4. Martin_H

    Martin_H

    Joined:
    Jul 11, 2015
    Posts:
    4,433
    I think I know what you are looking for, but I have no answers for you. I'm thinking about something similar and all I'm ever getting back to is "maybe it's not worth it", because it increases the complexity of the task so much for possibly not too much benefit. What I would suggest is to look at reference photos of real buildings that have visible foundations that compensate for sloped terrain. And then model your buildings with such foundation blocks that you can just stick in the ground. Also stairs or ramps on all entries, or else you might have doors floating too high above walkable ground. If you have more specific questions, then screenshots of your problem areas will help others make better suggestions. In any case I have doubts that there are any tutorials for this, because I'd consider it a more advanced and special topic.
     
  5. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,888
    It's the same as modelling anything else, surely? You build your map in a 3D editor like any other mesh, split it up into placeable pieces- I don't see the issue.
     
    Kiwasi likes this.
  6. JamesArndt

    JamesArndt

    Unity Technologies

    Joined:
    Dec 1, 2009
    Posts:
    2,912
    You can do a few options. I think Easy Roads will allow you to plant roads on your uneven terrain. You can also drag in your building models and plant them to the terrain next to the roads. The other option is to export out the terrain as an .obj (scripts on wiki to do this), bring it into Blender, Maya or Max and then cut and build your roads on top of that "reference" mesh. You will not be exporting out that terrain .obj you brought into your 3D application. You will only use it as a geometry reference to build everything you want to place on top of your Unity terrain. You can also model your buildings in your 3D app and place them in that same scene. Export out the buildings and roads as FBX back into Unity, drag and drop them on top of the Unity terrain. Make adjustments to the terrain if the road intersects in areas and stuff.
     
  7. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Look at the bottom of the buildings in this picture. The terrain goes up, but the bottom of the buildings is flat. You could do this effect just using a regular cube building and sinking it into the ground.

    That's essentially all that happens in real life. Buildings are always built on flat ground, either by digging in the side of the building, or by putting the building on piles.
     
    Code-Rad-Design, Martin_H and Ryiah like this.
  8. oStaiko

    oStaiko

    Joined:
    Apr 8, 2016
    Posts:
    8
    I am working on a project like this too, but more so like Age of Empires or Stronghold, where I can't use foundations for buildings... I'm thinking of just flattening the land underneath buildings since most of them wont be too big anyways. I've noticed Spore did that as well, I'll have to go back and see how AoE did it
     
    Kiwasi likes this.
  9. SarfaraazAlladin

    SarfaraazAlladin

    Joined:
    Dec 20, 2013
    Posts:
    280
    Check out how real builders make cities on crazy hills! It helps to have good staircases and ramps, plus good 'foundation' models that look good when sticking out of the ground.

    There are great assets out there for making roads and sculpting terrain as well, so it's worth checking the asset store.

    Goodluck!
     
  10. John3D

    John3D

    Joined:
    Mar 7, 2014
    Posts:
    441
    Yes, EasyRoads3D has some cool options. I haven't tried it yet, but I will use it in my next game.
     
  11. Code-Rad-Design

    Code-Rad-Design

    Joined:
    Dec 10, 2013
    Posts:
    2
    are these procedurally generated at runtime? if so, i would create smaller city sections with an elevation variable, and make up a bunch of stretchable 'utility' models to make connections
     
  12. Deleted User

    Deleted User

    Guest

    i believe they just put em there lol, its all 2d so they just cover the 2d ground with a 2d image of a building.. right?

    but yeah you just make it like this
    check out these buildings they have almost another whole story of the building that is hidden under the terrain mesh (seen this kinda meshes modding morrowind/oblivion/skyrim, hence the medieval buildings... all their building meshes had this kinda thing)