Jump to content
  • Advertisement


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


Old film rendering

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

Hi, I would like to create a gray gradiant rendering, like old film, with DirectX. If anyone knows a method to give to a colored rendering a gray tint aspect, post it. Thanks. Vko

Share this post

Link to post
Share on other sites
I do not know if this is what you are looking for, but anyway...

I suppose you are using some kind of RGB scale for your colors. There are another scale called YUV which might help you out. In this scale the Y is for luminace (intencity) and UV for color. So if you convert the RGB to YUV and then set your U and V to zero, everything will be in grayscale. If you don't set them all the way down to zero, you can have a grayish effect instead.

DirectX supports YUV but I have never tried it so I don't know how.

The conversion formulas:
Y = 0.30*R + 0.59*G + 0.11*B
U = 0.493*(B-Y)
V = 0.877*(R-Y)

Maybe this cleared the fog a little...

// Javelin
-- Why do something today when you can do it tomorrow... --

Edited by - Javelin on January 3, 2002 9:39:31 AM

Share this post

Link to post
Share on other sites

  • 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!