POV-Ray : Newsgroups : povray.binaries.images : Re: fix single image on surface Server Time
4 Nov 2024 13:32:22 EST (-0500)
  Re: fix single image on surface (Message 1 to 7 of 7)  
From: Christoph Hormann
Subject: Re: fix single image on surface
Date: 13 Aug 2000 12:45:16
Message: <3996D0BA.8D6C3D2F@schunter.etc.tu-bs.de>
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

From: Bob Hughes
Subject: Re: fix single image on surface
Date: 13 Aug 2000 13:41:39
Message: <3996ddd3@news.povray.org>
"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

From: GrimDude
Subject: Re: fix single image on surface
Date: 14 Aug 2000 04:06:35
Message: <3997a88b@news.povray.org>
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'
FuseInsig.png

Preview of image 'ss1.png'
ss1.png

Preview of image 'Fuse.jpg'
Fuse.jpg


 

From: Jérôme Berger
Subject: Re: fix single image on surface
Date: 14 Aug 2000 05:00:25
Message: <3997B529.4186A23A@enst.fr>
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

From: Zeger Knaepen
Subject: Re: fix single image on surface
Date: 14 Aug 2000 12:38:55
Message: <3998209f$1@news.povray.org>
> 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

From: Chris Huff
Subject: Re: fix single image on surface
Date: 14 Aug 2000 13:40:05
Message: <chrishuff-76F461.12410914082000@news.povray.org>
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

From: Zeger Knaepen
Subject: Re: fix single image on surface
Date: 14 Aug 2000 18:08:01
Message: <39986dc1@news.povray.org>
> > 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

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