POV-Ray : Newsgroups : povray.binaries.images : Odd Transformation : Re: Odd Transformation Server Time
12 Aug 2024 19:33:15 EDT (-0400)
  Re: Odd Transformation  
From: fitchn
Date: 16 Jul 2003 09:45:01
Message: <web.3f15568047a69323397cf110@news.povray.org>
Ghost wrote:
>Hi all.  Can someone help me understand why my translated and rotated
>grass would suddenly become airborne?  According to the Pov code, there
>is no transformation on the y-axis, and I don't ever rotate it upwards
>or downwards, either.  Attached is the picture and below is the
>pertinent code for the grass circle.

Actually, you are translating the grass in the y-direction, right here:

>    object{ Blade
>      translate rand(R4)*1.5+z*Rad
>      rotate y*R_V
>    }

the statement:

  translate rand(R4)*1.5+z*Rad

will be promoted to:

  translate <rand(R4)*1.5, rand(R4)*1.5, rand(R4)*1.5+Rad>

with the rand statements all being equal. You need to explicitly set the
direction that you want this translation to occur. Hope that helps!

 - Nick (FitchN.com)


Post a reply to this message

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