Jump to content
  • Advertisement
Sign in to follow this  

Tinting a face in 3ds Max 2012 (Minecraft)

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

Minecraft uses a few grayscale textures that get tinted depending on whatever biome the block currently resides in. Strictly speaking, that means one must tint the grayscale texture in 3ds Max to create minecraft cg.While tinting the entire terrain.png file is easy by using a color map in a standard material, I am not quite sure how to only tint one specific area of a texture.

This mainly applies to leaves and grass (pictures below):



As you can see, the top of the grass block and the leaf block are not tinted green. I would like to use some object-specific tinting method so I only need to use one terrain.png file and be able to create grass/leaves of all shades just by adjusting the tint amount.

Share this post

Link to post
Share on other sites
With shaders is easy (and can be done without shaders using texture combiners).
Use the alpha channel as mask, 1 = tintable areas, 0 = non-tintable areas
In pseudocode:
Final color = (texture.a-1) * texture.rgb + (texture.a) * tintcolor.rgb

(You can also multiply the tintcolor.rgb by the texture.rgb if you want)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!