brnkhy / MapzenGo

Pokemon Go clone using Unity3D & Mapzen/OpenStreetMap
http://www.barankahyaoglu.com
MIT License
198 stars 59 forks source link

Overlapping roads of different type and color flicker #45

Open E-Reg opened 7 years ago

E-Reg commented 7 years ago

Hi there,

first of all amazing work! I recognized that roads of different type and color flicker. The reason for this is probably the same as with #29. Maybe you should consider to give the different road types a height as well, so that the layers don't overlap. road

Greetings and thanks for your work,

Erik

brnkhy commented 7 years ago

@E-Reg Hmm yea I remember seeing that especially in the intersection. I mean even the same type roads will have z-fights. Not sure how to fix that really, giving different heights to different types won't cut it. I believe it's possible to use a shader that won't cause z-fight (I don't know much about shaders but I think that's possible?) or we can merge roads maybe? I might be missing something out here but it's not a simple problem I think.