|
|
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
|
|
|
|
"Tony[B]" <ben### [at] catholicorg> wrote in message
news:3ba23509@news.povray.org...
> It has to be predeclared. You can't just put it in like that.
Which part needs to be predeclared? What I wrote works perfectly well for a
pigment (I tried it first, to make sure I had the syntax), but in a density
it does not. I've just tried predeclaring it as a density, and it gives me
the same error as when I type the full part in, ie,
Parse Error: No matching } in 'object', color found instead
What I want to know is, can the object pattern be used in a density and, if
so, how?
...Chambers
Post a reply to this message
|
|