Sign in to follow this  

Terrain (for a city), texturing

Recommended Posts

dpadam450    2357
I know how they do it for like grass/dirt and do texture splatting, but for roads and stuff, they have directions and lines, sidewalks as well. Even like if you have a bend in the road. I'm wondering what the approach is here.

Share this post

Link to post
Share on other sites
soconne    105
"They" generally use actual separate geometry for each type of object. So the street is a separate mesh from the sidewalk from the grass areas, ect...

Share this post

Link to post
Share on other sites
chronos    100

Generating 3D Roads

  • the idea is to go automatically from a 2D road description to a completely 3D polygonal road

  • two main approaches: draped vs. merged

    1. thin geometry draped on top of the terrain

      • pro: simpler and faster, easily changed at runtime, allows the terrain to be a regular grid

      • con: "Z-buffer fighting" due to overdraw

        • there are ways to reduce the Z-buffer problem

    2. roads merged into the terrain ("stitched", embedded)

      • pro: flawless road boundaries, no overdraw issues

      • con: requires computationally complicated and slow preprocessing

      • all known commercial programs (see below) prefer this approach

  • with either approach, an algorithm is needed to convert road centerlines
    (raw vector data) to a full 2D/3D representation

    • there are no known published algorithms for doing this!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this