POV-Ray : Newsgroups : povray.binaries.images : Tracing an object through a soft-edged mask; or objects as airbrush 'spray' : Re: Tracing an object through a soft-edged mask; or objects as airbrush 'sp= Server Time
18 May 2024 13:23:55 EDT (-0400)
  Re: Tracing an object through a soft-edged mask; or objects as airbrush 'sp=  
From: Alain
Date: 14 May 2008 12:10:34
Message: <482b0efa$1@news.povray.org>
Thomas de Groot nous illumina en ce 2008-05-14 04:09 -->
> "Kenneth" <kdw### [at] earthlinknet> schreef in bericht 
> news:web.4829b56bdace545278dcad930@news.povray.org...
>> "Zeger Knaepen" <zeg### [at] povplacecom> wrote:
>>> Cool, but you don't need the height_field, just use eval_pigment.  That 
>>> way,
>>> you can use any pigment as a mask..
>> Aha, I knew *someone* out there would find a way to improve it (in this 
>> case,
>> both you and Thomas.) I'll have to try this--I've never used eval before.
>> Thanks for the code example.
>>
> 
> In Zeger's example, I would replace .gray by .red (or .green or .blue). 
> Parsing will be much faster, for the same result.
> 
> Thomas 
> 
> 
It's the way to do it whenever the pigment is monochrome. Only take one of the 3 
identical colour channels instead of averaging them.

-- 
Alain
-------------------------------------------------
You know you've been raytracing too long when you've ever "lost" a Julia fractal 
because you're not quite sure how to align things in four dimensions.
Dylan Beattie


Post a reply to this message

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