POV-Ray : Newsgroups : povray.newusers : need help! jpg as texture?? sunsystem... :/ : Re: need help! jpg as texture?? sunsystem... :/ Server Time
29 Jul 2024 22:22:43 EDT (-0400)
  Re: need help! jpg as texture?? sunsystem... :/  
From: Tom Melly
Date: 20 Jan 2005 04:47:24
Message: <41ef7e2c$1@news.povray.org>
"MightyNighty" <mig### [at] aggrobe> wrote in message
news:web.41ef58e63f6ab2e3ef55f6a90@news.povray.org...
> sphere{sphere{0,1 pigment{image_map {jpeg "earth_land.jpg" map_type
> 1}}<0,0,0>, 0.09875
>        translate<-0.75,0.85,1>
>        texture{pigment{color <0.,0.1,0.8>}
>        normal {bumps 0.5 scale 0.05 }
>                finish {ambient 0.00
>                        diffuse 1.00
>                        phong 0
>                         }
>
>               } // end of texture
>      no_shadow } // end of sphere  earth
> //------------------------------------------
>
> we can't get along with your term... :( please help us...
>

Euuch... where did that code come from? ;)

Problems....

1. sphere{sphere doesn't make any sense - "sphere{" should be followed by a
position (e.g. <0,0,0> or just 0), and then a diameter

2. you've got two pigments applied to your sphere, and not in a good way

3. loads of other stuff...

K.I.S.S.

Make sure that earth_land.jpg is in the same directory as your scene file,
and try this code:

camera {
  location  <0.0, 0.0, -4.0>
  look_at   <0.0, 0.0,  0.0>
}

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

sphere{
 0,1
 pigment{image_map {jpeg "earth_land.jpg" map_type 1}}
 finish{diffuse 0.75 ambient 0.01}
}


Post a reply to this message

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