POV-Ray : Newsgroups : povray.advanced-users : blob help : Re: blob help Server Time
3 Jul 2024 06:21:08 EDT (-0400)
  Re: blob help  
From: Darren New
Date: 2 Sep 2008 15:34:52
Message: <48bd955c$1@news.povray.org>
Niccolo wrote:
> Im pretty new... a link below is the code... how would i implement this?

I *think* it'll give you what you want if you make the following changes:

Move the entire line with the "box" declaration to just after the line 
that reads "intersection {"

Then change that word "intersection" to "difference."


   difference {
  box{<1,1,1>, <50,50,50> pigment {MediumSpringGreen}}
   blob {
     threshold 0.866
     sphere{<1,1,1>, 1.68, 1 pigment {Green} }
     sphere{<1,1,2>, 1.68, 1 pigment {Green} }
     sphere{<1,1,3>, 1.68, 1 pigment {Green} }
     ...




That will give you green pixels in all the places in the box that are 
not in the spheres.  See if it looks like what you'd expect.

-- 
Darren New / San Diego, CA, USA (PST)


Post a reply to this message

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