Jump to content
  • Advertisement
Sign in to follow this  
dpadam450

Terrain (for a city), texturing

This topic is 3889 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
"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
From vterrain.org,

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!