POV-Ray : Newsgroups : povray.general : object pattern in media - syntax ? : Re: object pattern in media - syntax ? Server Time
6 Aug 2024 00:18:47 EDT (-0400)
  Re: object pattern in media - syntax ?  
From: Christoph Hormann
Date: 14 Jul 2002 08:42:41
Message: <3D3171C1.43456513@gmx.de>
Fabien Mosen wrote:
> 
> Could someone tell me the correct syntax for using
> the 'object' pattern in a media density ?
> 

The object pattern is similar to a block pattern like checker or hexagon
but the list items have to be inside the object{} block and are not
optional.

For syntax see section 6.8.3.2 and 6.7.11.23:

sphere {<0,0,0>,10 hollow 
  material {
    interior {
      media {
        emission .1
        density { 
          object {
            box {<0,0,0>,<2,2,2>}   
            density {rgb<1,0,0>}
            density {rgb<0,0,0>}  
          }    
        }
      }
    }  
    texture { pigment { color rgbt 1 } }
  }
}

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 12 Jul. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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