POV-Ray : Newsgroups : povray.newusers : rectangular bitmap over hemispheric surface Server Time
1 Nov 2024 00:25:27 EDT (-0400)
  rectangular bitmap over hemispheric surface (Message 1 to 2 of 2)  
From: s soubatch
Subject: rectangular bitmap over hemispheric surface
Date: 24 Feb 2012 18:25:00
Message: <web.4f481c3dfe0bf21280e538bd0@news.povray.org>
Greetings all!

I am playing with povray the first day and really enjoying it. Here comes the
questions... I need to produce an empty hemisphere ("a dome") with a circular
bitmap image stretch onto the top as image_map

The bitmap looks something like this

img85.imageshack.us/img85/9955/123455555.png

If i run the following script.....

//-------------------------------
#include "colors.inc"
#include "coordinates.inc"

light_source { <-100, 100, -50> White }
object {coordinates}
camera { location <-70, 70, 0> look_at 0 angle 36  }
background { color Grey }

#declare Eggshell = difference {
          sphere{<0,0,0>,10 pigment{ image_map { png "cmap.png" map_type 1} }  }
          sphere{<0,0,0>,9.9 pigment{Red} }
     }

#declare CutEggshell = difference {
          object{Eggshell}
          box{<10,10,10>,<0,-10,-10> }
     }

object{CutEggshell  rotate<0,0,0>}
object{CutEggshell  rotate<0,180,0> translate<0,0,-20>}
//-------------------------------

.... i've got a distorted map on the hemisphere surface like this

img687.imageshack.us/img687/4619/screenshot20120225at120.png

Can you recommend a correct way?

Thanks!


Post a reply to this message

From: s soubatch
Subject: Re: rectangular bitmap over hemispheric surface
Date: 25 Feb 2012 07:35:00
Message: <web.4f48d4af91152b52493648180@news.povray.org>
"s.soubatch" <s.s### [at] gmailcom> wrote:
> Greetings all!
>
> I am playing with povray the first day and really enjoying it. Here comes the
> questions... I need to produce an empty hemisphere ("a dome") with a circular
> bitmap image stretch onto the top as image_map
>
> The bitmap looks something like this
>
> img85.imageshack.us/img85/9955/123455555.png
>
> If i run the following script.....
>
> //-------------------------------
> #include "colors.inc"
> #include "coordinates.inc"
>
> light_source { <-100, 100, -50> White }
> object {coordinates}
> camera { location <-70, 70, 0> look_at 0 angle 36  }
> background { color Grey }
>
> #declare Eggshell = difference {
>           sphere{<0,0,0>,10 pigment{ image_map { png "cmap.png" map_type 1} }  }
>           sphere{<0,0,0>,9.9 pigment{Red} }
>      }
>
> #declare CutEggshell = difference {
>           object{Eggshell}
>           box{<10,10,10>,<0,-10,-10> }
>      }
>
> object{CutEggshell  rotate<0,0,0>}
> object{CutEggshell  rotate<0,180,0> translate<0,0,-20>}
> //-------------------------------
>
> .... i've got a distorted map on the hemisphere surface like this
>
> img687.imageshack.us/img687/4619/screenshot20120225at120.png
>
> Can you recommend a correct way?
>
> Thanks!


problem solved!


Post a reply to this message

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