|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
When using the spherical or cylindrical projection of an image map, it wraps
the image once around the object. Is there a way to make it wrap multiple
times? For example, if my image has the letter "M", can I make it wrap 8
"M"s around a cylinder? I've tried scaling, frequency, converting to a
function, etc., but I can't seem to find a way to do it without simply
editing the image.
Thanks
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Kirk Andrews wrote:
> When using the spherical or cylindrical projection of an image map, it wraps
> the image once around the object. Is there a way to make it wrap multiple
> times? For example, if my image has the letter "M", can I make it wrap 8
> "M"s around a cylinder? I've tried scaling, frequency, converting to a
> function, etc., but I can't seem to find a way to do it without simply
> editing the image.
>
> Thanks
>
>
try this:
sphere {
0,1
pigment {
image_map{tga "Your image.tga"}
scale .4 //play with this
warp {
spherical
orientation z
dist_exp 1//play with this also
}
}
}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Leroy <lrw### [at] joplincom> wrote:
> Kirk Andrews wrote:
> > When using the spherical or cylindrical projection of an image map, it wraps
> > the image once around the object. Is there a way to make it wrap multiple
> > times? For example, if my image has the letter "M", can I make it wrap 8
> > "M"s around a cylinder? I've tried scaling, frequency, converting to a
> > function, etc., but I can't seem to find a way to do it without simply
> > editing the image.
> >
> > Thanks
> >
> >
> try this:
>
> sphere {
> 0,1
> pigment {
> image_map{tga "Your image.tga"}
> scale .4 //play with this
> warp {
> spherical
> orientation z
> dist_exp 1//play with this also
> }
> }
> }
Leroy <lrw### [at] joplincom> wrote:
> Kirk Andrews wrote:
> > When using the spherical or cylindrical projection of an image map, it wraps
> > the image once around the object. Is there a way to make it wrap multiple
> > times? For example, if my image has the letter "M", can I make it wrap 8
> > "M"s around a cylinder? I've tried scaling, frequency, converting to a
> > function, etc., but I can't seem to find a way to do it without simply
> > editing the image.
> >
> > Thanks
> >
> >
> try this:
>
> sphere {
> 0,1
> pigment {
> image_map{tga "Your image.tga"}
> scale .4 //play with this
> warp {
> spherical
> orientation z
> dist_exp 1//play with this also
> }
> }
> }
Exactly as Leroy has put it.
To clarify:
iamge_maps get mapped from 0,0 to 1,1 on the x-y plane and repeat (unless
'once' keyword is used). When warping to a cylindrical or spherical
mapping, the pigment (or in this case image_map pigment) is read from 0,0
to 1,1 on the x-y plane and converted to cylindrical mapping. So to get
what you want to do, after invoking the image_map in the pigment, scale the
the x-axis direction down by the number of repeats you want. Scaling the
z-axis does nothing, and scaling the y-axis will just require you to likely
have to rescale the y-axis again to get it mapped to the height you want, so
it's best to leave y and z scales at 1.
pigment{image_map {jpeg "image.jpg"} scale <1/n,1,1> warp{cylindrical}}
Where n=the number of times you want it to repeat.
The key is to scale AFTER the image_map, but BEFORE the warp.
This is applicable to repeating around the cylinder or sphere. If you want
to also repeat up and down on t either, just add the applicable scale to
the y-axis.
-tgq
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Exactly what I needed! Thanks!
-- Kirk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Kirk Andrews <kir### [at] tektonartcom> wrote:
> When using the spherical or cylindrical projection of an image map, it wraps
> the image once around the object. Is there a way to make it wrap multiple
> times? For example, if my image has the letter "M", can I make it wrap 8
> "M"s around a cylinder? I've tried scaling, frequency, converting to a
> function, etc., but I can't seem to find a way to do it without simply
> editing the image.
Again something answered in the povQ&T, but people still repeated the
same answer explicitly...
http://tag.povray.org/povQandT/languageQandT.html#cylindricalrepeat
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|