|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Jens Strohmeyer wrote:
>
> hello !
> i need to know how to fix a SINGLE image
> to a surface, e.g. how to fix a bitmap on a special
> position on a cylinder. can anyone help ?
> thanks in advance !
> jens
Don't know, what you exactly mean, but you can add "once" to an image_map to
avoid tiling. Example:
image_map {
png "test.png"
once
}
Furthermore you can translate and scale it like every other texture.
BTW, povray.general or povray.newuser would be more appropriate for such
questions.
Christoph
--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Christoph Hormann" <Chr### [at] schunteretctu-bsde> wrote in
message news:3996D0BA.8D6C3D2F@schunter.etc.tu-bs.de...
|
| Jens Strohmeyer wrote:
| >
| > i need to know how to fix a SINGLE image
| > to a surface, e.g. how to fix a bitmap on a special
| > position on a cylinder. can anyone help ?
|
| Don't know, what you exactly mean, but you can add "once" to an image_map
to
| avoid tiling. Example:
|
| image_map {
| png "test.png"
| once
map_type 2 // for putting on cylindrical objects and such
filter 255, 1 // palette entry 255 will be clear (use 256 color image
only though)
| }
|
| Furthermore you can translate and scale it like every other texture.
The thing to keep in mind is to use a image which is ready to apply. What I
mean by that is, if you want it only partially on the object like a bottle
label instead of a can label you will need to set the applicable part of the
image into another larger image and then set that images background color to
be clear. That will then wrap fully around the cylinder and leave the
intended portion only on one area, otherwise it will get put 360 degrees
around (and 1 unit tall from 0 to 1 y without further scaling/translating).
If you can't use a paletted image then the next best thing would be planar,
or map_type 0 (default), instead and place it by scaling and translating.
It just won't wrap onto the object very well if so.
| BTW, povray.general or povray.newuser would be more appropriate for such
| questions.
Yep, certainly post a binary (image) when posting new to this group please
:-)
Bob
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I'll post code on the use of these first two images, resulting in the third,
on povray.text.scene-files. This was accomplished on a mesh, but cylinders
or what-have-you work the same way.
Look for "Fuse" on p.t.s.f.
Grim
Post a reply to this message
Attachments:
Download 'FuseInsig.png' (5 KB)
Download 'ss1.png' (5 KB)
Download 'Fuse.jpg' (12 KB)
Preview of image 'FuseInsig.png'
Preview of image 'ss1.png'
Preview of image 'Fuse.jpg'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Bob Hughes wrote:
>
> "Christoph Hormann" <Chr### [at] schunteretctu-bsde> wrote in
> message news:3996D0BA.8D6C3D2F@schunter.etc.tu-bs.de...
> |
> | Jens Strohmeyer wrote:
> | >
> | > i need to know how to fix a SINGLE image
> | > to a surface, e.g. how to fix a bitmap on a special
> | > position on a cylinder. can anyone help ?
> |
> | Don't know, what you exactly mean, but you can add "once" to an image_map
> to
> | avoid tiling. Example:
> |
> | image_map {
> | png "test.png"
> | once
>
> map_type 2 // for putting on cylindrical objects and such
> filter 255, 1 // palette entry 255 will be clear (use 256 color image
> only though)
>
> | }
> |
> | Furthermore you can translate and scale it like every other texture.
>
> The thing to keep in mind is to use a image which is ready to apply. What I
> mean by that is, if you want it only partially on the object like a bottle
> label instead of a can label you will need to set the applicable part of the
> image into another larger image and then set that images background color to
> be clear. That will then wrap fully around the cylinder and leave the
> intended portion only on one area, otherwise it will get put 360 degrees
> around (and 1 unit tall from 0 to 1 y without further scaling/translating).
> If you can't use a paletted image then the next best thing would be planar,
Or a combination of frequency and radial (frequency to "scale" the
image to the right scale and radial to only show the wanted part).
--
* Doctor Jekyll had something * mailto:ber### [at] inamecom
* to Hyde... * http://www.enst.fr/~jberger
*******************************
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Or a combination of frequency and radial (frequency to "scale" the
> image to the right scale and radial to only show the wanted part).
AFAIK frequency doesn't work with images. With MegaPov however you could
scale the image and then apply a spherical or cylindrical warp.
ZK
http://www.povplace.be.tf
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3998209f$1@news.povray.org>, "Zeger Knaepen"
<zeg### [at] yahoocom> wrote:
> AFAIK frequency doesn't work with images. With MegaPov however you could
> scale the image and then apply a spherical or cylindrical warp.
I think he was talking about using frequency in a radial pigment_map.
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> > AFAIK frequency doesn't work with images. With MegaPov however you
could
> > scale the image and then apply a spherical or cylindrical warp.
>
> I think he was talking about using frequency in a radial pigment_map.
Hey, do you mind?
Every day I have to say at least one silly thing, or I get
superintelligent...
Something my environment couldn't handle, I think...
...
Hmmmm....
Had a long day today... :-)
ZK
http://www.povplace.be.tf
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |