Jump to content
  • Advertisement
Sign in to follow this  
Thevenin

[MDX] Color Mapping (I think its called this).

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

I'm trying to allow players to change the colors of various parts on their characters. Their characters are 2D (Implemented in DirectX9.0 using D3D-Sprite class). I'm using a gray-scale image, and then a region colored image. If I had pixel access, this would be no problem, but I don't so now I'm confused. [depressed] (My project is being done in C#) How should I go about doing this?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Phillip Hamlyn
Why not use vertexes that are coloured and alter the vertex colour components as needed ?


To be quite honest, my skills with DirectX don't extend past D3DSprite. However, I don't believe this excludes your solution. I'm able to set the color of the MDX.Draw() command, but I believe this applies 'overlay'. If my knowledge of GIMP is accurate, the effect I'm after is 'multiply'. I could be wrong...



Share this post


Link to post
Share on other sites
Quote:
Original post by Thevenin
I'm able to set the color of the MDX.Draw() command, but I believe this applies 'overlay'. If my knowledge of GIMP is accurate, the effect I'm after is 'multiply'. I could be wrong...


Did some tedious testing just now. Confirmed the following.

  • Transparency is not 'multiply'.
  • MDX.Draw()'s color property is 'multiply'.
  • The effect I'm after is 'multiply'.

    Looks like this mystery is solved then; I just have to apply the user's color choice into the Draw().

    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.

    Participate in the game development conversation and more when you create an account on GameDev.net!

    Sign me up!