- Home /
Risk-like Regions
I'm developing a game where regions as one might see in Risk, Empire Total War, or Victoria II, etc are a major aspect of gameplay, and I can't seem to find a way to do them. I currently am trying to stay with using Unity's built in terrain, but it seems that I can't set up any sort of area that can detect clicks, etc and change color to display that it is selected. It seems that some sort of mesh is needed, but I'm a bit lost in how to make even that work. Any help is appreciated, thanks!
Answer by save · Dec 17, 2011 at 12:34 AM
Easiest route to take is to make individual meshes with individual collision meshes for each region. Then you can detect clicks with raycasting and switch their material.
Hmm... I was thinking about that. It'll be time consu$$anonymous$$g no doubt, but I see that it would at least work.
I would paint the map with the regions in any image editing program, then with a 3d program use a freehand knife tool. Before extruding each part you can optimize the triangles and then separate them. I think this is the way to go as long as your maps shouldn't be procedural. If so, then I would use colored regions which is only visible to a raycast, then highlight them via a shader to become any color and/or texture you want and display properly. I think modeling is the quickest way around this. Good luck anyways!