POV-Ray : Newsgroups : povray.documentation.inbuilt : 3.4.7.5.5.7 Mapping using warps. Typo in spherical warp example. : 3.4.7.5.5.7 Mapping using warps. Typo in spherical warp example. Server Time
26 Apr 2024 10:07:03 EDT (-0400)
  3.4.7.5.5.7 Mapping using warps. Typo in spherical warp example.  
From: William F Pokorny
Date: 28 May 2015 17: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

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