|
![](/i/fill.gif) |
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] san rr com> 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
|
![](/i/fill.gif) |