POV-Ray : Newsgroups : povray.newusers : rectangular bitmap over hemispheric surface : rectangular bitmap over hemispheric surface Server Time
27 Jun 2024 17:12:59 EDT (-0400)
  rectangular bitmap over hemispheric surface  
From: s soubatch
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

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