POV-Ray : Newsgroups : povray.general : Decorating an object Server Time
5 Nov 2024 18:24:05 EST (-0500)
  Decorating an object (Message 1 to 2 of 2)  
From: Raymond C  Gilford
Subject: Decorating an object
Date: 21 Apr 1999 16:44:45
Message: <371E2AA7.E8987DDD@gyltech.com>
Hi

I have a box which will be in a scene and I want to put logos, a
starburst and text on it. The text part is no problem. I would like to
know how to take an image like a starburst with type in it from
Photoshop and place it on the object at a certain point.

Does POV have a way of doing this or should I try importing the object
into a modeller?

Thanks a bunch,

Raymond Gilford


Post a reply to this message

From: Bob Hughes
Subject: Re: Decorating an object
Date: 21 Apr 1999 18:39:37
Message: <371E4569.48B8A4F8@aol.com>
//box with image mapped on
 box {0,1
  pigment {
   image_map {tga "starbtxt.tga" map_type 0} //use tga, png, gif, (bmp
maybe?)
  }
 translate <-.5,-.5,-.5> //center these
  scale <3,2,1> //scale to original image width height ratio
 }

This would be okay, except it will texture the box all the way through
from front to back (mirrored image on reverse side) and also show the
image boundry color on the other faces.
To circumvent that you would need to either add a second slightly larger
box with the front clipped away or map to a plane instead and clip that
with the box while also adding the box.

union {
 box {0,1}
 plane {z,0
  pigment {
   image_map {tga "starbtxt.tga" map_type 0} //use tga, png, gif, (bmp
maybe?)
  }
 clipped_by {box {0,1 translate -.5*z}}
 } //end plane
 translate <-.5,-.5,-.5> //center these
  scale <3,2,1> //scale to original image width height ratio
 } //end union

"Raymond C. Gilford" wrote:
> 
> Hi
> 
> I have a box which will be in a scene and I want to put logos, a
> starburst and text on it. The text part is no problem. I would like to
> know how to take an image like a starburst with type in it from
> Photoshop and place it on the object at a certain point.
> 
> Does POV have a way of doing this or should I try importing the object
> into a modeller?
> 
> Thanks a bunch,
> 
> Raymond Gilford

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto:inv### [at] aolcom?Subject=PoV-News


Post a reply to this message

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