POV-Ray : Newsgroups : povray.newusers : Image Maps Server Time
1 Nov 2024 09:21:42 EDT (-0400)
  Image Maps (Message 1 to 6 of 6)  
From: the ajj
Subject: Image Maps
Date: 12 Nov 2005 09:20:01
Message: <web.4375f8ef21f939cb3cc62c290@news.povray.org>
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?

Thanks.


Post a reply to this message

From: Mike Williams
Subject: Re: Image Maps
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

From: kurtz le pirate
Subject: Re: Image Maps
Date: 13 Nov 2005 00:50:53
Message: <kurtzlepirate-E4DFD3.06505313112005@news.povray.org>
In article <web.4375f8ef21f939cb3cc62c290@news.povray.org>,
 "the_ajj" <nomail@nomail> 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?
::
::Thanks.

any size you like but image must have width = 2 x height.

klp


Post a reply to this message

From: Slime
Subject: Re: Image Maps
Date: 15 Nov 2005 02:22:26
Message: <43798cb2$1@news.povray.org>
> any size you like but image must have width = 2 x height.

No; regardless of an image's size, it will be treated the same way by
POV-Ray. This means it will be squeezed into the unit square from <0,0,0> to
<1,1,0>, even if doing so changes its proportions. (If spherical mapping is
used, the image will similarly wrap all the way around the sphere no matter
what its width or height is.) It's up to the user to resize the image as
necessary.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: kurtz le pirate
Subject: Re: Image Maps
Date: 16 Nov 2005 13:20:39
Message: <kurtzlepirate-2707F1.19203916112005@news.povray.org>
In article <43798cb2$1@news.povray.org>, "Slime" <fak### [at] emailaddress> 
wrote:

::> any size you like but image must have width = 2 x height.
::
::No; regardless of an image's size, it will be treated the same way by
::POV-Ray. This means it will be squeezed into the unit square from <0,0,0> to
::<1,1,0>, even if doing so changes its proportions. (If spherical mapping is
::used, the image will similarly wrap all the way around the sphere no matter
::what its width or height is.) It's up to the user to resize the image as
::necessary.
::
:: - Slime
:: [ http://www.slimeland.com/ ]

you're wrong. please see my samples in p.b.i

klp


Post a reply to this message

From: the ajj
Subject: Re: Image Maps
Date: 18 Nov 2005 08:40:00
Message: <web.437dd897bef31fb5a43155f60@news.povray.org>
Thanks everyone.....the argument continues in the images newsgroup !


Post a reply to this message

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