Archived

This topic is now archived and is closed to further replies.

Coloring Countrys

This topic is 5870 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

Hello, I am trying to make game similar to risk, and the player who owns the country, has a color and on the map that country should appear that color, but i dont know how to color them. I am using d3d8, and visual c++ and the game is not realy 3d but im using billboards and textures to make it look 2d, the map which contains all the contries is one file, and im hoping someone can let me know how i could go about coloring each contry on the map a diffrent color. Thanks

Share this post


Link to post
Share on other sites
I may be way wrong here, but I think you will have to create a seperate texture file for each country (use an alpha channel to get around the old ''irregular shape in a square box'' problem'').

You could then draw each texture as a billboard, using a different Material for each country. The material can have unique color assignment (r,g,b,a). Nice and neat.

Share this post


Link to post
Share on other sites