POV-Ray : Newsgroups : povray.newusers : Wrapping a bitmap part 2 Server Time
25 Dec 2024 13:18:15 EST (-0500)
  Wrapping a bitmap part 2 (Message 1 to 1 of 1)  
From: Rick Seiden
Subject: Wrapping a bitmap part 2
Date: 2 Oct 2002 00:15:09
Message: <web.3d9a71fb523d836bdf6e9b510@news.povray.org>
I asked about wrapping a bitmap around a shpere, and got some good help.
Here's what I was going for.

You'll need to download http://www.seagullsoftware.net/world.jpg and put it
in the same directory as your .pov file:

#include "colors.inc"
#include "textures.inc"
#include "transforms.inc"

camera {location  <0.2,.2,-3> look_at   <0.0, 0.0,  0>}
light_source {<0, 2, -10>  color White}
sphere {<0,0,0> .70   texture{ rotate <0,180,14> pigment{image_map {jpeg
"world" map_type 1}}}}


cylinder {
  <0,.85,0>
  <0,-.85,0>
  0.01
  rotate<0,0,14>
  texture {Aluminum}
}
cylinder {
  <0,-.75,0>
  <0,-1,0>
  .05
  texture{ Aluminum}
}
sphere { <0,0.85,0> 0.02
  transform {
      translate <0,0,0>
      rotate <0,0,14>
      translate <0,0,0>
  }
  texture{Aluminum}}
sphere { <0,-0.85,0> 0.02
  transform {
      translate <0,0,0>
      rotate <0,0,14>
      translate <0,0,0>
  }
  texture{Aluminum}}

cone {
  <0,-1,0>,0.05
  <0,-1.1,0>,0.5
  texture{Aluminum}
}



difference {
  difference{
    cylinder{
      <0,0,-0.02>
      <0,0,0.02>
      0.80
      //texture{pigment{color Red}}
    }
    cylinder{
      <0,0,-1>
      <0,0,1>
      0.75
      //texture{pigment{color Green}}
    }
  }
  cylinder{
    <2.412,0,-2>
    <2.412,0,2>
    2.267
    //texture{pigment{color Green}}
  }
  rotate<0,0,14>
  texture {Aluminum}

}

It probably could have been done better, but it looks good.  Better than I
could have done without something like POV!

Rick


Post a reply to this message

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