POV-Ray : Newsgroups : povray.advanced-users : Warping of textures? Server Time
29 Apr 2024 08:17:26 EDT (-0400)
  Warping of textures? (Message 1 to 6 of 6)  
From: Cousin Ricky
Subject: Warping of textures?
Date: 23 Feb 2015 01:15:50
Message: <54eac596$1@news.povray.org>
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?


Post a reply to this message

From: James Holsenback
Subject: Re: Warping of textures?
Date: 23 Feb 2015 02:43:59
Message: <54eada3f@news.povray.org>
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>]
       }
     }
   }


Post a reply to this message

From: James Holsenback
Subject: Re: Warping of textures?
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

From: Cousin Ricky
Subject: Re: Warping of textures?
Date: 23 Feb 2015 06:54:36
Message: <54eb14fc$1@news.povray.org>
On 02/23/2015 03:46 AM, James Holsenback wrote:
> On 02/23/2015 02:43 AM, James Holsenback wrote:
> 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>]
>        }
>      }
>    }

This is still just a warped pigment, wrapped in a texture.  My question 
is can a texture as a unit be warped?


Post a reply to this message

From: Thomas de Groot
Subject: Re: Warping of textures?
Date: 23 Feb 2015 07:17:27
Message: <54eb1a57@news.povray.org>
On 23-2-2015 12:54, Cousin Ricky wrote:
> On 02/23/2015 03:46 AM, James Holsenback wrote:
>> On 02/23/2015 02:43 AM, James Holsenback wrote:
>> 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>]
>>        }
>>      }
>>    }
>
> This is still just a warped pigment, wrapped in a texture.  My question
> is can a texture as a unit be warped?
>
You can do this:

texture {
   granite
   texture_map {
     [0 MyTexture1]
     [1 MyTexture2]
   }
   warp {turbulence 1}
}

-- 
Thomas


Post a reply to this message

From: Cousin Ricky
Subject: Re: Warping of textures?
Date: 24 Feb 2015 14:54:20
Message: <54ecd6ec$1@news.povray.org>
On 02/23/2015 08:17 AM, Thomas de Groot wrote:
> You can do this:
>
> texture {
>    granite
>    texture_map {
>      [0 MyTexture1]
>      [1 MyTexture2]
>    }
>    warp {turbulence 1}
> }

This looks serviceable.  Thanks!


Post a reply to this message

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