POV-Ray : Newsgroups : povray.text.tutorials : Rotate around central axis : Re: Rotate around central axis Server Time
2 May 2024 20:01:04 EDT (-0400)
  Re: Rotate around central axis  
From: Warp
Date: 21 Dec 2000 07:11:48
Message: <3a41f384@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
: Warp's info is the most accurate, but possibly not the most comprehensible
: to a novice.

  What?! What?! That was just outrageous!

  ;)

: The best way, IMHO, to avoid muddles is to always create objects with a
: point that rests at <0,0,0>. It doesn't matter which point (e.g. the center
: of a sphere or its base), just as long as you know which point.

  It's good to know how to rotate around a certain point, which may not
necessarily be <0,0,0>.
  For example, it may be possible that the user wants to rotate the object
first around one point and then around another different point.

: Secondly, always scale, then rotate and finally translate (there are many
: exceptions to this, but you will generally recognise them as exceptions).

  It should be noted that it's not a mandatory rule to have one scale, one
rotate and one translate per object and in that order.
  It's perfectly possible to, for example, first scale, then rotate, than
scale again, then translate and then rotate again. There's practically no
limit in the amount and combinations of transformations.
  Of course it requires experience to handle a complex combination of
transformations.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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