POV-Ray : Newsgroups : povray.windows : wrapping image around sphere Server Time
28 Jul 2024 06:11:42 EDT (-0400)
  wrapping image around sphere (Message 1 to 4 of 4)  
From: Chuck Roberts
Subject: wrapping image around sphere
Date: 17 Aug 1999 13:21:49
Message: <37B99A68.ADE32085@accn.org>
Excuse me for being so daft. But how do I wrap an image map around a
sphere? Here's what I have, copied from the Insert, Ready made, Image
map file for POV 3.1g:

sphere
{<0,0,0> 5
  texture
  {
    pigment
    {
      image_map
      {
        sys "marsmap.bmp"
        interpolate 2 // smooth it
        once   // don't tile image, just one copy
        
      }
      // transform it to unit-size (-1 to +1)
      translate -0.5*(x+y) // center on the origin
      scale 2              // make it unit-sized
    }
    finish {ambient 0.3}
  }
}
This keeps coming out as a plane, but I see my image map on it at least.


Post a reply to this message

From: Ken
Subject: Re: wrapping image around sphere
Date: 17 Aug 1999 15:31:34
Message: <37B9B88B.C835653C@pacbell.net>
Chuck Roberts wrote:
> 
> Excuse me for being so daft. But how do I wrap an image map around a
> sphere? Here's what I have, copied from the Insert, Ready made, Image
> map file for POV 3.1g:
> 
> sphere
> {<0,0,0> 5
>   texture
>   {
>     pigment
>     {
>       image_map
>       {
>         sys "marsmap.bmp"
>         interpolate 2 // smooth it
>         once   // don't tile image, just one copy
> 
>       }
>       // transform it to unit-size (-1 to +1)
>       translate -0.5*(x+y) // center on the origin
>       scale 2              // make it unit-sized
>     }
>     finish {ambient 0.3}
>   }
> }
> This keeps coming out as a plane, but I see my image map on it at least.

Add map_type 1 to your image map statement i.e.

image_map { sys "marsmap.bmp" map_type 1....

-- 
Ken Tyler

See my 700+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Wojtek Bauman
Subject: Re: wrapping image around sphere
Date: 18 Aug 1999 05:31:27
Message: <37ba7d6f@news.povray.org>

>Excuse me for being so daft. But how do I wrap an image map around a
>sphere? Here's what I have, copied from the Insert, Ready made, Image
>map file for POV 3.1g:

[cut]

You have to put map_type 1 inside the image_map statement.
It will give you spherical mapping.

--
Wojtek Bauman aka reaver | rea### [at] spleenwawpl | ICQ: 3429749 |
http://reaver.spleen.waw.pl | PGP: finger bauman@inx.pm.waw.pl |


Post a reply to this message

From: Andrea Ryan
Subject: Re: wrapping image around sphere
Date: 4 Sep 1999 21:17:00
Message: <37D1C42D.42F159DA@global2000.net>
Try

sphere {
<0,0,0>,5
  texture {
    pigment {
      image_map {
      sys "filename.bmp"
      map_type 1
      }
    }
  }
}

Brendan Ryan

Chuck Roberts wrote:

> Excuse me for being so daft. But how do I wrap an image map around a
> sphere? Here's what I have, copied from the Insert, Ready made, Image
> map file for POV 3.1g:
>
> sphere
> {<0,0,0> 5
>   texture
>   {
>     pigment
>     {
>       image_map
>       {
>         sys "marsmap.bmp"
>         interpolate 2 // smooth it
>         once   // don't tile image, just one copy
>
>       }
>       // transform it to unit-size (-1 to +1)
>       translate -0.5*(x+y) // center on the origin
>       scale 2              // make it unit-sized
>     }
>     finish {ambient 0.3}
>   }
> }
> This keeps coming out as a plane, but I see my image map on it at least.


Post a reply to this message

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