POV-Ray : Newsgroups : povray.general : Sticking A lable on a bottle Server Time
5 Nov 2024 14:23:23 EST (-0500)
  Sticking A lable on a bottle (Message 1 to 2 of 2)  
From: Petah
Subject: Sticking A lable on a bottle
Date: 6 Feb 2005 23:35:01
Message: <web.4206ef91f4e850d8ee2fd2a20@news.povray.org>
I have a 'sor' object of a bottle that has a glass texture and i want to add
a lable on it
i have a modifyed 'sor' object that has the image_map for the sticker in the
right place
so im am wondering how i would conbine the 2 togeather so i could have the
lable overtop of the glass
i tryed a few ways like puting both objects over each other but that didnt
work
these are the objects
//the lable
sor {
  13,
  <0.000000,0.000000>
  <0.250000,0.000000>
  <0.300000,0.150000>
  <0.299991,0.150001>
  <0.300000,0.300000>
  <0.300000,0.600000>
  <0.300000,1.100000>
  <0.300000,1.200000>
  <0.260000,1.300000>
  <0.150000,1.450000>
  <0.145000,1.650000>
  <0.125000,2.200000>
  <0.125000,2.210000>
  open
  sturm
  scale <1,0.9,1>

  pigment {
    image_map {
      png "woodstock.png"
      map_type 2
      once
    }
    scale <0,0.85,0>
   translate <0,0.145,0>
  }
  finish { ambient 1 }
  rotate <0,clock*360,0>
}
//the bottle
sor {
  13,
  <0.000000,0.000000>
  <0.250000,0.000000>
  <0.300000,0.150000>
  <0.299991,0.150001>
  <0.300000,0.300000>
  <0.300000,0.600000>
  <0.300000,1.100000>
  <0.300000,1.200000>
  <0.260000,1.300000>
  <0.150000,1.450000>
  <0.145000,1.650000>
  <0.125000,2.200000>
  <0.125000,2.210000>
  open
  sturm
  scale <1,0.9,1>

  pigment { color rgbf <2.0, 1.0, 1.0, 1.0> }
  finish {
    specular 0.7
    roughness 0.001
    ambient 0
    diffuse 0
    reflection {
      0.2, 1.0
      fresnel on
    }
    conserve_energy
  }
  interior {
    ior 1.5
    caustics 1.0
    fade_distance 1
    fade_power 1001
  }
}


Post a reply to this message

From: Jeremy M  Praay
Subject: Re: Sticking A lable on a bottle
Date: 7 Feb 2005 13:16:45
Message: <4207b08d$1@news.povray.org>
"Petah" <cne### [at] waveconz> wrote in message 
news:web.4206ef91f4e850d8ee2fd2a20@news.povray.org...
>I have a 'sor' object of a bottle that has a glass texture and i want to 
>add
> a lable on it
> i have a modifyed 'sor' object that has the image_map for the sticker in 
> the
> right place
> so im am wondering how i would conbine the 2 togeather so i could have the
> lable overtop of the glass
> i tryed a few ways like puting both objects over each other but that didnt
> work
> these are the objects
<snip>


I added
scale <1.001,1,1.001>
to your label, and it seemed to look reasonably good.


-- 
Jeremy
www.beantoad.com


Post a reply to this message

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