POV-Ray : Newsgroups : povray.binaries.images : Just in time for Christmas, Hopefully : Re: Just in time for Christmas, Hopefully Server Time
2 Aug 2024 08:14:59 EDT (-0400)
  Re: Just in time for Christmas, Hopefully  
From: Leef me
Date: 18 Dec 2007 16:40:01
Message: <web.47683d4c33ad2e292a7b15450@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
> Leef_me nous apporta ses lumieres en ce 2007/12/18 02:42:
> > "Anthony D. Baye" <Sha### [at] spamnomorehotmailcom> wrote:
> >> Thanks, Tim, that works a treat.

> When you scale a spherical pattern, all points move acording to the origin.
> What you need is to use a warp{spherical} after the scaling.
> Your image_map become:
> #declare bulb = material {
>               texture {
>          pigment { image_map { jpeg "Dime_front.jpg" map_type 0
> //Use a planar maping
>           scale 0.01
> warp{spherical} // Wrap it around the sphere
>   }
>     }
>    }
> }
> Now, your image get repeated 100 times around the circumference and 50 times
> from one pole to the other.
> --
> Alain

Thanks Alain but, that doesn't compile; the following does:

#declare bulb = material {
              texture {
         pigment { image_map { jpeg "Dime_front.jpg" map_type 0
//Use a planar maping
         }
          scale 0.7
warp{spherical} // Wrap it around the sphere
}
   }
}

I didn't ask very well, but what I really wanted to do was a a single copy of an
image, scaled as desired, but still showing the 'bulb' similar to the bulb that
is closest to the camera.

Leef_me


Post a reply to this message

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