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:40 EDT (-0400)
  Re: Placing label on povray beer bottle  
From: ron hicks
Date: 31 Jul 1998 03:18:39
Message: <35BDCD23.89F57B55@hotmail.com>
Dan Connelly wrote:

> There are several options.  The one I use is to
> place borders at the sides of the label so when
> it stretches around, the letters will remain on one
> side. You can then assign transparency to that
> part of the image so the underlying bottle appears.
>
> You'll need to think about how to scale the image
> to maintain proper aspect ratio.  I like using
> labels of aspect ratio x:y :: 2 pi:1 to make
> this easy.
>
> Also you probably want to use "once" in the texture
> specification to prevent it from tiling the
> label along the y-axis.  Also don't forget
> "interpolate 2" to save yourself from aliasing.
>
> Dan
>
> ron hicks wrote:
> >
> > 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
>
> --
> http://www.flash.net/~djconnel/

  Dan-

I tried the tips you suggested including the regarding aspect ratio. I also
looked into the docs regarding transparency for the border. Now my problem is
setting the 'palette'
entry in the filter or transmit option. I created the label in PSP 5.0 and rgb
components are assigned a number from  0 to 255, which does'nt correspond to
the way povray assigns color components ( as far as I know ) so there are
really two things I don't understand.
1) How do I correlate PSP colors with povray colors?
2) What is required in povray's 'pallete' entry for the filter/transmit
statement regarding image maps?

One other thing I would like to note regarding the aspect ratio of the image;
it seems to me that an aspect ration of pi : 1 would make the label only
stretch 'halfway' round rather than 2pi or am I going off the deep end with
this presumption%}

Best regards,

Ron Hicks
sig### [at] hotmailcom
www.geocities.com/SoHo/1006


Post a reply to this message

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