POV-Ray : Newsgroups : povray.bugreports : Pov 3.1 transform media error : Re: Pov 3.1 transform media error Server Time
28 Jun 2024 02:13:06 EDT (-0400)
  Re: Pov 3.1 transform media error  
From: Thorsten Froehlich
Date: 13 Nov 1998 15:16:41
Message: <364c93a9.0@news.povray.org>
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

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