POV-Ray : Newsgroups : povray.general : scaling & translation : Re: scaling & translation Server Time
29 Jul 2024 02:23:46 EDT (-0400)
  Re: scaling & translation  
From: Anthony D  Baye
Date: 12 Aug 2013 21:55:01
Message: <web.5209910493302c68328783aa0@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> I'm dabbling with a height_field, and when I scale the object (y*30), POV-Ray
> seems to delight in driving me BSC by translating the heightfield as well.
>
> I could probably spend a lot of time deriving and defining this behaviour, but
> could someone explain the ins & outs of why some things just get scaled, and
> other seem to get translated as well?

height_field objects are constructed from <0,0,0> to <1,0,1> so you need to
translate the object by <-0.5, 0.0, -0.5> before scaling.

The same is true for the image_map pattern, except that it is in the x,y plane
instead of the x,z plane.

Regards,
A.D.B.


Post a reply to this message

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