POV-Ray : Newsgroups : povray.binaries.images : Image Maps (from povray.newusers) - attached files (1/1) : Image Maps (from povray.newusers) - attached files (1/1) Server Time
7 Aug 2024 23:20:57 EDT (-0400)
  Image Maps (from povray.newusers) - attached files (1/1)  
From: kurtz le pirate
Date: 16 Nov 2005 13:24:14
Message: <kurtzlepirate-E03CC5.19241216112005@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/ ]

ok just look at this samples :

the difference between the two images is only the ration of the source 
image map.

when ratio is 1/2, circle is render as a cercle.
when ratio is 1/1, circle is render as an ellipse.

and the code is :
#declare ballPigment = pigment {
  image_map {
    png "image01.png" // or image02.png
    map_type 1
    interpolate 2
    }
  }

sphere {
  <0, 0, 0> 0.5
  pigment { ballPigment }
  finish { ballFinish }
  }

now, slime, can you tell me more ?
regards, klp


Post a reply to this message


Attachments:
Download 'map02.jpg' (8 KB) Download 'map01.jpg' (8 KB)

Preview of image 'map02.jpg'
map02.jpg

Preview of image 'map01.jpg'
map01.jpg


 

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