Jump to content
  • Advertisement
Sign in to follow this  
Turold

Fast Monochromatic Textures

This topic is 3793 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 have a truecolor texture in DX9.0c. How can I make it appear in shades of grey without using pixel shaders?

Share this post


Link to post
Share on other sites
Advertisement
There's the D3DTOP_DOTPRODUCT3 texture operation using the fixed-function pipeline. Pass in the constants for calculating luminosity using D3DTSS_CONSTANT, set up the other input to be the texture, and it will calculate the luminosity for each pixel, which is greyscale. Add more stages for different effects!

Share this post


Link to post
Share on other sites
THX! I will check it out soon.

I'm making a casual puzzle game so using any shaders is prohibited. :)

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!