POV-Ray : Newsgroups : povray.binaries.images : eyeball using image_map Server Time
12 Nov 2024 14:42:58 EST (-0500)
  eyeball using image_map (Message 1 to 2 of 2)  
From: Woody
Subject: eyeball using image_map
Date: 17 May 2011 16:50:01
Message: <web.4dd2df30e69f369bba74ae320@news.povray.org>
I'm sure this question has already been answered, but I couldn't find anything
specifically related to the image_map

I'm trying to map a the following JPG to a sphere using of course a spherical
map.

http://www.shawnrinehart.com/images/man/ManMapsJpegs/1000_eye.jpg

The code is as follows

#declare t_eye=
  texture {
    pigment {
      image_map {
        png "1000_eye.png"
        map_type 1

      }
    }
    finish { ambient 0.3 }
}


sphere{ 0, 1 texture{t_eye} rotate y*90}


No matter what types of items I try, I can't get it right (x-axis is too long)


Post a reply to this message


Attachments:
Download 'eye20110517k.png' (419 KB)

Preview of image 'eye20110517k.png'
eye20110517k.png


 

From: Jaime Vives Piqueres
Subject: Re: eyeball using image_map
Date: 17 May 2011 17:00:12
Message: <4dd2e1dc@news.povray.org>

> No matter what types of items I try, I can't get it right (x-axis is
> too long)

   For a spherical mapping, you need as source an image wich is an
equirectangular projection, usually with a 2:1 aspect ratio. You may try
simply expanding the image by both sides, or you could use uv_mapping
instead.

   Regards,


-- 
Jaime Vives Piqueres
		
La Persistencia de la Ignorancia
http://www.ignorancia.org


Post a reply to this message

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