POV-Ray : Newsgroups : povray.bugreports : translation coordinates Server Time
31 Oct 2024 08:19:19 EDT (-0400)
  translation coordinates (Message 1 to 2 of 2)  
From: Bald Eagle
Subject: translation coordinates
Date: 11 Mar 2014 23:45:17
Message: <531fd84d$1@news.povray.org>
(Running 3.6 on winbloze)

translate z*Room_No*4*Feet
= no problems.

translate z*Room_No*4*Feet translate x*44*Feet+8
gives me a y*8 elevation.  :(

translate <44*Feet+8, 0, Room_No*4*Feet>
gives me the correct positioning.

is this a misunderstanding on my part about the translate syntax, or a 
"bug"?


Post a reply to this message

From: Le Forgeron
Subject: Re: translation coordinates
Date: 12 Mar 2014 03:55:21
Message: <532012e9$1@news.povray.org>
Le 12/03/2014 04:45, Bald Eagle a écrit :
> (Running 3.6 on winbloze)
> 
> translate z*Room_No*4*Feet
> = no problems.
> 
> translate z*Room_No*4*Feet translate x*44*Feet+8
> gives me a y*8 elevation.  :(
> 
> translate <44*Feet+8, 0, Room_No*4*Feet>
> gives me the correct positioning.
> 
> is this a misunderstanding on my part about the translate syntax, or a
> "bug"?

Misunderstanding. the +8, due to lack of *x, is promoted to a vector
<8,8,8>.

You can have it as you want too with: translate x*(44*Feet+8)


-- 
Just because nobody complains does not mean all parachutes are perfect.


Post a reply to this message

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