POV-Ray : Newsgroups : povray.general : Rendering in B&W? : Re: Rendering in B&W? Server Time
12 Aug 2024 17:21:14 EDT (-0400)
  Re: Rendering in B&W?  
From: Spider
Date: 13 Mar 1999 01:54:57
Message: <36EA0A19.7ED54282@bahnhof.se>
#macro m_RGB2G(fRed,fGreen,fBlue)
  #local G = 0.3 * fRed + 0.59 * fGreen + 0.11 * fBlue;
  (G)
#end

Satisfied folks ? That's the greyscaling algorithm for a colour, apply this to
every colour in the scene, and thereyago, BW image.

Ken	be free to use this :-)
Kyle 	haven't tried the hf_grey_16 yet...
Peter 	Alternate solution?
Others	Whooa...

-- 
//Spider 
( spi### [at] bahnhofse ) [ http://www.bahnhof.se/~spider/ ]
#declare life = rand(seed(42))*sqrt(-1);


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.