POV-Ray : Newsgroups : povray.general : density question : Re: density question Server Time
4 Aug 2024 18:21:18 EDT (-0400)
  Re: density question  
From: Jettero Heller
Date: 13 Mar 2003 14:20:15
Message: <web.3e70d8af7629df5ca3d219970@news.povray.org>
>If your shape can be described with a function (think isosurface) you can
>use that same function as a pattern for density.

It can't really.  It's a fairly complicated CSG.

but apparently you can use an object as a pattern?  In stead of applying a
media { density {}} to my halo object, could I make a big giant cylinder,
then use some kind of media {
   density {
      pattern { object { halo }}
   }
}


or something like that?  The docs are a bit thin on that. :(

All they say about the object-patterns:

" The object pattern takes an object as input. It generates a, two item,
color list pattern. Wether a point is assigned to one item or the other
depends on whether it is inside the specified object or not.

Object's used in the object pattern cannot have a texture and must be solid"

That gives a good hint at least.  I can't wait to try some of this out when
I get home from work.


Post a reply to this message

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