POV-Ray : Newsgroups : povray.advanced-users : Warping of textures? : Re: Warping of textures? Server Time
16 May 2024 06:33:11 EDT (-0400)
  Re: Warping of textures?  
From: James Holsenback
Date: 23 Feb 2015 02:46:21
Message: <54eadacd$1@news.povray.org>
On 02/23/2015 02:43 AM, James Holsenback wrote:
> On 02/23/2015 01:15 AM, Cousin Ricky wrote:
>> Is there a way to apply a warp to a texture?
>>
>> For example, with a pigment, I can do:
>>
>>    sphere
>>    { 0, 1
>>      pigment
>>      { MyPigment
>>        warp { turbulence 1 }
>>      }
>>    }
>>
>> However, this does not work with textures.  Is there a different syntax
>> or method for texture warps, or is it just not possible?
>
> texture {
>    pigment {
>      granite 8 poly_wave 2 lambda 6 warp { spherical }
>      color_map {
>        [0 srgb <0.95, 0.91, 0.91>*0.9]
>        [1 srgb <0.95, 0.91, 0.91>]
>        }
>      }
>    }

oops ... typo:

texture {
   pigment {
     granite scale 8 poly_wave 2 lambda 6 warp { spherical }
     color_map {
       [0 srgb <0.95, 0.91, 0.91>*0.9]
       [1 srgb <0.95, 0.91, 0.91>]
       }
     }
   }


Post a reply to this message

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