|
|
"Ronald L. Parker" wrote:
>
> On Sat, 24 Apr 1999 16:22:54 -0400, Carl Bartels
> <cab### [at] bravo436chemmcgillca> wrote:
>
> >I was just playing with media and stuff and figured I'd try the
> >following scene, but got an error in the warp due to the rotation and
> >ended up having to move the warp around by hand (sin's and cos's). Is
> >there a good reason why warps (particularly black_hole warps) can't work
> >the way I was trying?
>
> The main reason is that, in general, a warp IS a transformation of a
> very specific sort. Applying a transformation to a transformation
> doesn't always make sense. However, since it is a transformation,
> you know it will always be applied in order with all the other
> transformations, so you can do something like this:
>
> plane {-z,0
> pigment {
> checker color rgb 1, color red 1
> rotate -z*360*clock
> warp { black_hole x, 2 strength 2 }
> rotate z*360*clock
> }
> }
Alternatively,
plane {-z,0
pigment {
checker color rgb 1, color red 1
warp { black_hole vrotate(x, z*360*clock), 2 strength 2 }
}
}
Just my musing,
Mike Andrews.
Post a reply to this message
|
|