POV-Ray : Newsgroups : povray.advanced-users : texture on a scaled object : Re: texture on a scaled object Server Time
30 Jul 2024 02:22:36 EDT (-0400)
  Re: texture on a scaled object  
From: Chris Huff
Date: 10 May 2000 16:27:25
Message: <chrishuff_99-4EA337.15304610052000@news.povray.org>
In article <3919abcc$1@news.povray.org>, "Mike Weber" 
<mik### [at] pyxiscom> 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] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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