POV-Ray : Newsgroups : povray.newusers : Image Maps : Re: Image Maps Server Time
29 Jul 2024 12:18:56 EDT (-0400)
  Re: Image Maps  
From: Mike Williams
Date: 12 Nov 2005 13:22:47
Message: <K0ehyCAxLjdDFwM3@econym.demon.co.uk>
Wasn't it the_ajj who wrote:
>I want to create an image map for a sphere in photoshop for a pool ball i.e.
>a colour, a white circle with a number in it.  If I create a sphere <0,0,0>
>1.0 in pov-ray what size does my planar map in photoshop have to be to
>avoid any wrapping?  Is there any way to avoid wrapping round an object?

The size of the image in photoshop has no effect at all on whether the
image gets wrapped. The documentation says

  By default, the image is mapped onto the x-y-plane. The image is 
  projected onto the object as though there were a slide projector 
  somewhere in the -z-direction. The image exactly fills the square area 
  from (x,y) coordinates (0,0) to (1,1) regardless of the image's 
  original size in pixels. If you would like to change this default you 
  may translate, rotate or scale the pigment or texture to map it onto 
  the object's surface as desired. 

You need to translate the pigment by <-0.5,-0.5,0> and scale it by 2 to
get it to fit once onto sphere{<0,0,0>,1}.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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