POV-Ray : Newsgroups : povray.newusers : image map placement problem Server Time
27 Nov 2024 05:52:33 EST (-0500)
  image map placement problem (Message 1 to 4 of 4)  
From: Bob Frew
Subject: image map placement problem
Date: 3 Jun 2003 11:17:33
Message: <3edcbc0d$1@news.povray.org>
How do I map an image onto an object so that it only appears once and is not
visible on the other side of the object.
e.g. for a face.

Am probably missing the point somewhere. All help appreciated.
Bob Frew


Post a reply to this message

From: Peter Hertel
Subject: Re: image map placement problem
Date: 3 Jun 2003 17:06:16
Message: <3edd0dc8@news.povray.org>
> How do I map an image onto an object so that it only appears once and
is not
> visible on the other side of the object.
> e.g. for a face.

With a box you could do it like this: (beware, lousy ASCII art ahead)

[]|

where the [] is the box / orignial object, and the | is a thin box which
you apply the image map to.

You can also split the object in two and apply the image map to only one
part of the object.


-Peter


Post a reply to this message

From: Bob Frew
Subject: Re: image map placement problem
Date: 9 Jun 2003 18:05:37
Message: <3ee504b1@news.povray.org>
Thanks for that Peter.
I knew about the splitting in two method, but thought maybe there was a
better way. e.g. just adding a parameter to tell it to stop at first
surface.
Bob
"Peter Hertel" <peter@hertel**NOSPAM**.no> wrote in message
news:3edd0dc8@news.povray.org...
> > How do I map an image onto an object so that it only appears once and
> is not
> > visible on the other side of the object.
> > e.g. for a face.
>
> With a box you could do it like this: (beware, lousy ASCII art ahead)
>
> []|
>
> where the [] is the box / orignial object, and the | is a thin box which
> you apply the image map to.
>
> You can also split the object in two and apply the image map to only one
> part of the object.
>
>
> -Peter
>
>
>
>


Post a reply to this message

From: Christopher James Huff
Subject: Re: image map placement problem
Date: 9 Jun 2003 18:32:23
Message: <cjameshuff-7735E2.17235109062003@netplex.aussie.org>
In article <3edcbc0d$1@news.povray.org>,
 "Bob Frew" <rob### [at] ntlworldcom> wrote:

> How do I map an image onto an object so that it only appears once and is not
> visible on the other side of the object.

You could use the object pattern:

texture {
    object {ImageAreaObject MainTexture, ImageTexture}
}
Where ImageAreaObject is an object that contains the area you want the 
image map on, ImageTexture is the image_map texture itself, and 
MainTexture is whatever you want the rest of the texture to be.


> e.g. for a face.

Ah...for that, you probably want UV mapping. A simple explanation is 
that it is a way to wrap the texture onto the surface of the object.
http://povray.org/documentation/view/191/

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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