POV-Ray : Newsgroups : povray.documentation.inbuilt : Add a non-origin sphere example to Scale : Re: Add a non-origin sphere example to Scale Server Time
20 Apr 2024 05:09:59 EDT (-0400)
  Re: Add a non-origin sphere example to Scale  
From: Warp
Date: 26 Apr 2004 14:47:34
Message: <408d5946@news.povray.org>
Christoph Hormann <chr### [at] gmxde> wrote:
> Apart from that your explanation is wrong.  A transform does not 
> transform the radius and center of the sphere but the whole object.

  Actually that's not completely true. POV-Ray performs some optimizations
in transformations in order to avoid making a transformation matrix.
If you eg. create a sphere and translate it, POV-Ray will change its
center.

  It's better to explain transformations in a more abstract level,
without going too deep into details. From the point of view of the
user it doesn't really matter which way transformations are applied
(ie. by modifying the object parameters, if possible, or by creating
a transformation matrix).

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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