POV-Ray : Newsgroups : povray.general : media with unions : Re: media with unions Server Time
13 Aug 2024 05:52:40 EDT (-0400)
  Re: media with unions  
From: Mike
Date: 30 Oct 1998 02:31:24
Message: <363969BD.32DCAA66@aol.com>
You could either do it by making a union and then giving that an interior or
#declare an interior and use it in each object.  For example:

union {
sphere {<1, 0, 0>, 1 pigment {color rgbt <1, 1, 1, 1>}}
sphere {<-1, 0, 0>, 1 pigment {color rgbt <1, 0, 0, .9>}}
hollow
interior {
media {
ect.
}
}
}

Or,

#declare Media_example =
interior {
media {
absorption <1, 0, 0>
}
}

sphere {<1, 0, 0>, 1
pigment {color rgbt <1, 1, 1, 1>}
interior {Media_example}
hollow
}

sphere {<-1, 0, 0>, 1
pigment {color rgbt <0, 1, 1, .8>}
interior {Media_example}
hollow
}

-Mike

Matt Crawford wrote:

> I have a quick question, can you spread a media over numerous objects in a
> union statement?  That is to say, is it possible to have many objects share
> a single media that would show parts of a large media?  If anyone knows what
> I mean any help would be greatly appreciated.
>
> Thanks,
> Matt


Post a reply to this message

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