POV-Ray : Newsgroups : povray.general : Image Maps question : Re: Image Maps question Server Time
14 Nov 2024 21:12:55 EST (-0500)
  Re: Image Maps question  
From: Bob Hughes
Date: 4 May 1999 18:26:23
Message: <372F65F0.E0F4B85A@aol.com>
Sounds to me like you have used the default 'map_type 0' instead of a more
likely candidate for a bottle, 'map_type 2', cylindrical.
Except even doing it this way entails having a 256 color gif or png image
to use a transparent color for all parts not of the intended visible
region.
In other words, to put your "logo" onto a cylinder (keyword 'once' only
stops above and below tiling when map_type 2) you would place it into a
image with a pi:1 (3.1415:1) width to height ratio for use on a cylinder
that is 1 POV unit high and 2 in diameter (radius 1 unit). Ie. a image of
314x100 pixels would have proper aspect, paste the image you want to use
into that. Larger or smaller depending of course.
The background color of the image_map should be an unused color, one not
in the actual "logo" part. Then that palette index would be 'transmit 0,1'
for example, black (0) being invisible.
The usual scaling, rotating, translating would also no doubt be needed
within just the pigment statement to adjust afterward.


Mike Metheny wrote:
> 
> Okay, I have a glass bottle.  I want to put a logo on said bottle.  I use
> the keyword 'once' in my imagemap, and position it as I want it, however
> there are 2 images. . .one on the front and one on the back of the bottle.
> What is the easiest way to remedy this?
> 
> --
> 
> Mike Metheny
> lon### [at] vtedu
> mik### [at] loneshepherdcom
> http://www.loneshepherd.com/
> 
> "When one's words are no better than silence, one should keep silent."

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto://inversez@aol.com?Subject=PoV-News


Post a reply to this message

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