POV-Ray : Newsgroups : povray.binaries.images : rendering height fields with overhangs : Re: rendering height fields with overhangs Server Time
28 Sep 2024 09:30:54 EDT (-0400)
  Re: rendering height fields with overhangs  
From: Alain
Date: 19 Dec 2009 15:57:04
Message: <4b2d3e20$1@news.povray.org>

>
> BTW, a question about one of your #while loop lines:
> hfs_pv=hfs_function(0,hfs_V,0).x
>
> Any particular reason why you used .x (i.e., .red) rather than .gray?  Just
> curious.
>
> Ken
>
>

If all 3 colour chanels are the same, it's faster and gives the same result.
Using ".x", you only access one value.
Using ".gray" you need to access all 3 chanels, then you perform a 
ponderated average.


Alain


Post a reply to this message

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