POV-Ray : Newsgroups : povray.newusers : out of date tutorials : Re: out of date tutorials Server Time
28 Jul 2024 20:22:46 EDT (-0400)
  Re: out of date tutorials  
From: Lace
Date: 14 Dec 2008 01:00:01
Message: <web.49449fb7b7ea4f8635784d0e0@news.povray.org>
> The problem with the first block is that the transformation is applied to the
> pigment, not the object.  Correct indentation can help prevent these kind of
> mistakes.  Your code is currently like this:
>
> torus {
> 3, 2
>     pigment {
>         granite
>         scale <1,5,1>
>         rotate <-45,0,0>
>         translate <0,2,0>
>     }
> }
>
> I think you meant this:
>
> torus {
>     3, 2
>     pigment { granite }
>     scale <1.5,1,1>
>     rotate <-45,0,0>
>     translate <0,2,0>
> }
>
> Note the placement of the curly braces.
>
>
> -Reactor

This helped out a lot :) Thank you for your time and patience. I didn't think of
putting braces around the pigment. My torus shape did shift, it looks great!

Thanks,
Lace


Post a reply to this message

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