POV-Ray : Newsgroups : povray.general : Placing label on povray beer bottle : Re: Placing label on povray beer bottle Server Time
13 Aug 2024 17:29:11 EDT (-0400)
  Re: Placing label on povray beer bottle  
From: Peter Popov
Date: 30 Jul 1998 22:06:53
Message: <35c118ad.0@news.povray.org>
Here's what you might do.

If your bottle body is a cylider, just use the map_type 2 (as you did).
Since POV stretches it all the way along a full revolution, you will need to
provide extra space in your image_map file outside the label. Experiment
with sizes, but keep aspect in mind. Also, use either PNG or GIF (or TGA?)
so that you use transparency (refer to the docs.)

In the more complex case (like the one I did) the bottle is a CSG
difference. It looks more realistic. However the image maps on the outside
*as well as* on the inside. So you'll need to have a separate label object
just a tiny bit larger in radius than the bottle and also infiinetely thin
(remember clipped_by?)

Hope this helps.

Regards,

--Peter

ron hicks wrote in message <35B909CC.4BA4F43D@hotmail.com>...
>Hello,
>
>I've been raytracing about 3 months and have been polishing my skills
>with CSG construction.
>What I'm trying to do is to place a label on my povray beer bottle...the
>main body of the bottle is a cylinder so I tried using the image_map
>command with map_type set to 2 (for cylinder mapping) and the once
>option. I got the image to map onto the cylinder, but it stretched the
>label all the way around ...so then i tried scaling the x-coordinate of
>the image with no luck....so now I'm looking into creating my cylinder
>with a lathe object to see if handles this situation differently..
>If anyone has any suggestions as how I might get label to map properly
>please let me know.
>
>Best Regards,
>
>Ron Hicks
>www.geocities.com/SoHo/1006
>sig### [at] hotmailcom
>
>


Post a reply to this message

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