POV-Ray : Newsgroups : povray.advanced-users : blob help : Re: blob help Server Time
3 Jul 2024 05:44:27 EDT (-0400)
  Re: blob help  
From: Niccolo
Date: 2 Sep 2008 16:35:01
Message: <web.48bda2da76daedd7800b8a460@news.povray.org>
This did not do exactly what i would like.  the image "733b.bmp" is the orginal
output.  "change.bmp" is the rendeing of the modified code as you suggested.

what i really need is that the void space (empty space) within the cube in the
original image to be replaced with solid, and the solid to be replaced by empty
space.

thank you for your help thus far...

http://idisk.mac.com/niccolo.aieta-Public/change.bmp?disposition=download+9657
http://idisk.mac.com/niccolo.aieta-Public/733b.bmp?disposition=download+3491


Darren New <dne### [at] sanrrcom> wrote:
> 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.