POV-Ray : Newsgroups : povray.newusers : placing objects by their coordinates : Re: placing objects by their coordinates Server Time
4 Nov 2024 21:24:04 EST (-0500)
  Re: placing objects by their coordinates  
From: Tom Melly
Date: 14 Sep 2001 11:34:53
Message: <3ba2239d$1@news.povray.org>
"Wade" <Zav### [at] aolcom> wrote in message news:3ba21537$1@news.povray.org...
> How can I learn placing objects by their coordinates?
>

Same way you get to Carnegie Hall... ;)

That aside, a trap for beginners is not to understand why translating then
scaling produces such different results to scaling then translating.

for example:

sphere{0,1 scale 2 translate x*2 pigment{rgb <1,0,0>} // centre of sphere is at
x=2
sphere{0,1 translate x*2 scale 2 pigment{rgb <0,1,0>} // centre of sphere is at
x=4

My general rule is "open the door", aka scale, rotate, translate or "grasp the
handle, turn it and open the door". There are many times to break this rule, but
you will know when they are...

Also, creating unions of related objects and then translating the union can
avoid much arsing about (technical term).


Post a reply to this message

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