|
![](/i/fill.gif) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mike Williams wrote:
| But if you use map_type 2, you only ever get one copy of the image
| wrapped round the cylinder. Using scaling or frequency doesn't let you
| get multiple copies of the image wrapped round the cylinder.
|
You're right, if you want to have several copies of the image, you
need to use planar mapping, scale your image by 1/number on the y
axis and apply a cylindrical warp with an orientation of x.
Untested sample code:
#include "colors.inc"
camera {
~ location <-4,4,-4 >
~ look_at <0,0,0>
}
light_source {
~ <-10, 18, -5> // light's position (translated below)
~ color White // light's color
}
cylinder {
~ <0,0,0>,
~ <2,0,0>,
~ 2
~ pigment {
~ image_map {jpeg "C:\ProgrammePOV-Ray for Windows v3.6\pic.jpg" }
~ scale <1, 1/7, 1>
~ warp { cylindrical orientation y }
~ }
}
Jerome
- --
******************************
* Jerome M. Berger *
* mailto:jbe### [at] ifrance com *
* http://jeberger.free.fr/ *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFB3/X2qIYJdJhyixIRAnd5AJ0UZs0z1CDQO6L58DR5jsVd7OJ7GQCfW7uW
UeeX/88s9Cn8DyJs+K3vHDw=
=k4U4
-----END PGP SIGNATURE-----
Post a reply to this message
|
![](/i/fill.gif) |