POV-Ray : Newsgroups : povray.advanced-users : How to address last 2 components of 5-component vectors? : Re: How to address last 2 components of 5-component vectors? Server Time
19 Apr 2024 09:34:25 EDT (-0400)
  Re: How to address last 2 components of 5-component vectors?  
From: Le Forgeron
Date: 7 Jul 2016 13:52:28
Message: <577e96dc$1@news.povray.org>
Le 07/07/2016 19:39, Bald Eagle a écrit :
> (I'm assuming that Vector.gray = (Vector.red + Vector.green + Vector.blue)/3
> and that would be a helpful tidbit in the docs as well. )

Sorry to disappoint you, but gray formula is more complex (the weight of each of the 3
components are different)

It is documented at least in
http://wiki.povray.org/content/Documentation:Tutorial_Section_3.2

but it might be useful to repeat it in the "Colour_Expressions" page.

gray value = Red*29.7% + Green*58.9% + Blue*11.4%


Post a reply to this message

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