POV-Ray : Newsgroups : povray.windows : non-linear scaling/rotate etc : non-linear scaling/rotate etc Server Time
28 Jul 2024 18:25:01 EDT (-0400)
  non-linear scaling/rotate etc  
From: Willow
Date: 4 Apr 1998 02:48:51
Message: <3525E5E3.57394624@hotmail.com>
It would be really, really good to be able to scale and rotate etc
non-linearly - that is, to translate something depending on it's current
x/y/z position.
imagine a vertical cylinder, going from the origin up to about 20 units
high (say a unit or so in radius), and then performing a translation on
it similar to the following:
translate <sin(ypos), 0, sin(ypos)>
You would need to use something like ypos instead of y, to distinguish
between the y vector and the current y position.
So anyway, the above translation should give a kind of twisted /
circling rope.

or scaling a box on the origin (box 0, 1) by
scale <1, xpos, 1>
would give a ramp of 45 degrees angle, with 0 height at the origin, and
a height of 1 at x = 1.

  |
  | /|
  |/ |
~~~~~~
  |
  |

above: a crude ascii drawing of a ramp at the origin.

anyway, a system similar to the above would be awesome, imho.

Ciao

Willow


ps.  I really, really love POV!


Post a reply to this message

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