 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I have a image-map texture I want to apply to a box{<0,0,0>,<1,1,1>} which
is then scaled in X direction by 2000. When I do that, the image-map is
strecthed as well, instead, I want the image-map to repeat along the X. How
do I do that? Do I need to scale it by 1/2000?
--
Mike
wk: mik### [at] pyxis com www.pyxis.com
hm: mwe### [at] sciti com www.geocities.com/mikepweber
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Wed, 10 May 2000 11:34:54 -0700, "Mike Weber"
<mik### [at] pyxis com> wrote:
>I have a image-map texture I want to apply to a box{<0,0,0>,<1,1,1>} which
>is then scaled in X direction by 2000. When I do that, the image-map is
>strecthed as well, instead, I want the image-map to repeat along the X. How
>do I do that? Do I need to scale it by 1/2000?
Try doing something like this instead:
box
{
<0,0,0>, <2000,1,1>
pigment
{
image_map
{
gif "my_map.gif"
interpolate 2
}
}
transform { Any_Further_Transformations }
}
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usa net
TAG e-mail : pet### [at] tag povray org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3919abcc$1@news.povray.org>, "Mike Weber"
<mik### [at] pyxis com> wrote:
> I have a image-map texture I want to apply to a box{<0,0,0>,<1,1,1>}
> which is then scaled in X direction by 2000. When I do that, the
> image-map is strecthed as well, instead, I want the image-map to
> repeat along the X. How do I do that? Do I need to scale it by
> 1/2000?
Place the scale statement *before* the texture, and only the object will
be scaled.
Instead of this:
box {...
texture {...}
scale < 2000, 1, 1>
}
use this:
box {...
scale < 2000, 1, 1>
texture {...}
}
You could also create the box at the desired size and not bother with
scale at all, but this method is easier if you also want to use rotate,
matrix, or transform.
--
Christopher James Huff - Personal e-mail: chr### [at] yahoo com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|
 |