|
|
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
|
|