POV-Ray : Newsgroups : povray.general : Q: texture_map Server Time
11 Aug 2024 05:21:38 EDT (-0400)
  Q: texture_map (Message 1 to 5 of 5)  
From: John M  Dlugosz
Subject: Q: texture_map
Date: 12 Sep 1999 02:18:40
Message: <37db45c0@news.povray.org>
A texture map like this:

         texture

            gradient y
            texture_map {
               [0.9  robot_texture]
               [0.9  GasketTexture]
               }
       }

I presume will cycle once per unit along the Y direction.
If I scale it to make the pattern the length I want, will that scale the
individual textures in the map as well, or just the gradiant?

--John


Post a reply to this message

From: Chris Huff
Subject: Re: Q: texture_map
Date: 12 Sep 1999 10:24:05
Message: <37DBB7D4.C05A0B9B@compuserve.com>
Scaling it will scale the entire texture, including the textures in it.
If you don't want this, you can use frequency for the gradient, although
it is harder to control until you get used to it.


Post a reply to this message

From: Bob Hughes
Subject: Re: Q: texture_map
Date: 12 Sep 1999 13:06:04
Message: <37dbdd7c@news.povray.org>
Hmmm are you sure of that?  'scale' is supposed to be done where it's
at, ie. just after the primitive values or just before the end
brace }.  Although if the scale is placed ahead of the texture_map
within the texture statement it then appears to affect it the same as
if putting it after the texture_map.
'turbulence' doesn't follow this sort of rule but the transformations
do I believe.

Bob

Chris Huff <Chr### [at] compuservecom> wrote in message
news:37DBB7D4.C05A0B9B@compuserve.com...
> Scaling it will scale the entire texture, including the textures in
it.
> If you don't want this, you can use frequency for the gradient,
although
> it is harder to control until you get used to it.
>


Post a reply to this message

From: Chris Huff
Subject: Re: Q: texture_map
Date: 12 Sep 1999 13:26:37
Message: <37DBE298.CBD33020@compuserve.com>
This:
texture {
    gradient y
    texture_map {
        [0.9  robot_texture]
        [0.9  GasketTexture]
    }
    scale 0.5
}
will scale the entire texture by 0.5, robot_texture and GasketTexture
are now parts of the texture being scaled, and are scaled with it. Using
frequency 2 in it's place will just affect how those textures are used,
and not their scale.
As for turbulence, if you enclose it in a warp {} statement, it acts
like any other transform, and is dependant on position.
Are you trying to scale the pattern, but not the stuff being patterned?


Post a reply to this message

From: John M  Dlugosz
Subject: Re: Q: texture_map
Date: 12 Sep 1999 15:04:56
Message: <37dbf958@news.povray.org>
Chris Huff <Chr### [at] compuservecom> wrote in message
news:37DBB7D4.C05A0B9B@compuserve.com...
> Scaling it will scale the entire texture, including the textures in it.
> If you don't want this, you can use frequency for the gradient, although
> it is harder to control until you get used to it.

re Frequency:  thanks.  I was thinking I could scale the individual textures
within it to undo the overall scale; that might be easier, but less elegant
engineering because the same value appears in multiple places.

--John


Post a reply to this message

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