Archived

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

BlackDragon

Coloring Countrys

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
Guest Anonymous Poster
or draw all your countries in white and gray and use colored lighting

Share this post


Link to post
Share on other sites
My ways kinda dumb, but its all I could think of: Store the country shape as a 2d polygon, so it would be easier to change its colour.

Share this post


Link to post
Share on other sites