POV-Ray : Newsgroups : povray.beta-test : Object pattern in densities? : Object pattern in densities? Server Time
31 Jul 2024 02:29:14 EDT (-0400)
  Object pattern in densities?  
From: Ben Chambers
Date: 14 Sep 2001 12:01:25
Message: <3ba229d5@news.povray.org>
I started messing with the object pattern, and got it to work in a pigment
(great work, guys!).  However, I have not been able to make it work with
densities (the parser gives me an error for the color values after the
nested object{}).  Would this be possible, or will we have to use
workarounds?  (A workaround for this situation is, in fact, quite easy, but
that's not the point - I want to know if what I am trying to do is, in
general, possible).

Here's my scene:
camera {
  location <-5,0,0>
  look_at 0
}

box {
    <-5,-5,-1>,<5,5,1>
    pigment {color transmit 1}
    interior {
        media {
            emission red 1
            density {
                object {
                    sphere {0,1.25}
                    color red 1
                    color blue 1
                }
            }
        }
    }
}

...Chambers


Post a reply to this message

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