POV-Ray : Newsgroups : povray.documentation.inbuilt : 3.4.7.5.5.7 Mapping using warps. Typo in spherical warp example. Server Time: 27 Jun 2019 03:57:31 GMT
  3.4.7.5.5.7 Mapping using warps. Typo in spherical warp example. (Message 1 to 2 of 2)  
From: William F Pokorny
Subject: 3.4.7.5.5.7 Mapping using warps. Typo in spherical warp example.
Date: 28 May 2015 21:18:57
Message: <55678641$1@news.povray.org>
I got lost while doing a spherical warp today and in turning to the 
documentation for help, I picked up a typo. The spherical example reads:

   sphere {
   0,1
   pigment {
     hexagon
     scale <0.5/pi,0.25/pi,1>*0.1
     warp {
       spherical
       orientation y
       dist_exp 1
       }
     }
   }

It produces the spherical warp image seen. However, I believe there is a 
typo where trying to scale in y. A scale in y has no effect on the 
hexagon x,z pattern. To get the normally expected mapping ratios in a 
way similar to the cylindrical example, the scale should be changed to:

scale <0.5/pi,1,1/pi>*0.1

though what I expect was the original intent of:

scale <0.5/pi,1,0.25/pi>*0.1

gives a valid result.

Thanks for your attention.
Bill P.


Post a reply to this message

From: James Holsenback
Subject: Re: 3.4.7.5.5.7 Mapping using warps. Typo in spherical warp example.
Date: 9 Jul 2015 18:06:30
Message: <559eb826$1@news.povray.org>
On 05/28/2015 05:19 PM, William F Pokorny wrote:
> I got lost while doing a spherical warp today and in turning to the
> documentation for help, I picked up a typo. The spherical example reads:
>
>    sphere {
>    0,1
>    pigment {
>      hexagon
>      scale <0.5/pi,0.25/pi,1>*0.1
>      warp {
>        spherical
>        orientation y
>        dist_exp 1
>        }
>      }
>    }
>
> It produces the spherical warp image seen. However, I believe there is a
> typo where trying to scale in y. A scale in y has no effect on the
> hexagon x,z pattern. To get the normally expected mapping ratios in a
> way similar to the cylindrical example, the scale should be changed to:
>
> scale <0.5/pi,1,1/pi>*0.1
>
> though what I expect was the original intent of:
>
> scale <0.5/pi,1,0.25/pi>*0.1
>
> gives a valid result.
>
> Thanks for your attention.
> Bill P.

done ... sorry for delay (long story)


Post a reply to this message

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