Saturday, 28 March 2009

Road Network

Recently, I have been trying to improve the complexity of the road layout by adding junction assets.

With rail track, this is a simple problem to solve, as the junction assets consist of two elements; ballast and rails. With roads however it required a bit of experimentation to come up with junction assets that would work correctly and provide the 'clean' look I was after.

Here is the cross-section for the road junction asset. The junction asset must contain two nodes called 'Ballast' and 'Rail' (both case sensitive) for it to render correctly across the junction. In my road junction asset, you can see the 'Ballast' asset represents the tarmac, and the 'Rail' (not used in this case) is simply hidden below the road.

With a very subtle hump in the centre of the road (see the cross-section above), the road polygons cleanly intersect one another without any z-fighting issues.

I've also placed small 'filler' assets at the apex of the internal corners to help with the visuals. This is the result in-game.

No comments:

Post a Comment