POV-Ray : Newsgroups : povray.general : "best" way to create an shape covered with a picture? : Re: "best" way to create an shape covered with a picture? Server Time
5 Aug 2024 06:17:08 EDT (-0400)
  Re: "best" way to create an shape covered with a picture?  
From: Tom Melly
Date: 20 Nov 2002 04:47:59
Message: <3ddb5a4f$1@news.povray.org>
"Jeff Kish" <ELN/kishj@earthlink.net> wrote in message
news:Bf3aPR=kEAXyhlkPJEGCFN5MWNSq@4ax.com...
> >
> Thanks, I'll check the docs on this.
> I was trying a sphere. I tried this, but it came out pretty dark...how
> do you get it lighter? I tried adding light.
>  let me play with it some.
>

Heh - well make sure you add a camera, a light and of course that you have a bmp
file available.

Here's the full scene I checked my syntax with:

#version 3.5;

#include "colors.inc"

global_settings {
  assumed_gamma 1.0
}

// ----------------------------------------

camera {
  location  <0.0, 0.5, -4.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, 0.0,  0.0>
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.7 rgb <0.0,0.1,0.8>]
    }
  }
}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <-30, 30, -30>
}

// ----------------------------------------

plane {
  y, -1
  pigment { color rgb <0.7,0.5,0.3> }
}


#declare MyHead = sphere {0, 1}

object{
  MyHead
  pigment{
    image_map{
      sys
      "testsor.bmp"
      once
      map_type 1
    }
  }
}


Post a reply to this message

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