POV-Ray : Newsgroups : povray.general : Transforming Warps : Re: Transforming Warps Server Time
14 Nov 2024 23:20:09 EST (-0500)
  Re: Transforming Warps  
From: Ronald L  Parker
Date: 24 Apr 1999 19:44:46
Message: <372245e6.202760918@news.povray.org>
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
  }
}


Post a reply to this message

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