|
|
In article <3646C773.B258A1BD@neuro.informatik.uni-ulm.de> , Axel Baune
<aba### [at] neuroinformatikuni-ulmde> wrote:
>#declare med = media {
> emission <1,0,0>
> density {
> spherical
> }
>}
>media {
> emission <0,0,1>
> density {
> spherical
> }
>}
>
>// use declared medi
Do you assume that both media are stored in med? This will not happen because
#declare takes only one value (see the doc "Declaring identifiers"). What happens
seems to be that you create a scene level media, see the docs "Atmospheric Media"
section.
Thorsten
Using it this way should work:
#declare med = interior {
media {
emission <1,0,0>
density {
spherical
}
}
media {
emission <0,0,1>
density {
spherical
}
}
}
sphere { 0, 1
texture { pigment rgbt 1 }
interior {
med
translate <1,0,0>
}
}
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: Tho### [at] csicom
Post a reply to this message
|
|