XNA UK User Group

A helping hand for bedroom coders throughout the land.
in

Upcoming Events

Read our Events forum for details of upcoming events. Meet real people!

zip Terrain with Roads Source

Downloads: 611 File Size: 5MB
Posted By: Nemo Krad Views: 1,146
Date Added: 11-18-2007

I know, how many times can a guy extend a terrain class!!!!? Lots I guess, this extension to the class and shader adds another map image that I call a road map. As you can guess this image holds a map of where I want to draw roads on my terrain. It is made up of four colors, Black (no road), Red (road texture 0), Blue (road texture 1) and Green (road texture 2). I have extended the vertex element to hold another vector 4 for the "weights" of each road type, I have not used the W of the Vector and have it there for now as an extra info element (not found a use for it yet, guess I could add another road texture)

Comments

 

uditha said:

thanks
05-16-2008 3:30 PM

Add Comment

(required) 
(required)
(optional)
(required) 
Add