POV-Ray : Newsgroups : povray.newusers : need help! jpg as texture?? sunsystem... :/ Server Time
30 Jul 2024 00:21:18 EDT (-0400)
  need help! jpg as texture?? sunsystem... :/ (Message 1 to 10 of 10)  
From: MightyNighty
Subject: need help! jpg as texture?? sunsystem... :/
Date: 17 Jan 2005 04:55:01
Message: <web.41eb8a6c50746ba36ddf60740@news.povray.org>
hi dudes^^

me and my friends are supposed to build a sunsystem with povray... the
constesllation of the planets was no big deal for us ;) but the appearance
of the planets is far from being called good... we wanted to use a jpg as
texture for the planets, but cause we're n00bs with povray we suggested to
ask you for help... how are we supposed to do that? or is it an
unrealizable thinking?

thx for every post

MightyNighty and Friends


Post a reply to this message

From: Tim Nikias
Subject: Re: need help! jpg as texture?? sunsystem... :/
Date: 17 Jan 2005 05:04:48
Message: <41eb8dc0$1@news.povray.org>
It depends on what kind of textures you have and how you want to apply them.
Are they just plain photos, or are they spherical maps (like a landmap of
the entire planet)? Such landmaps can be put onto the spheres for the
planets like this:

sphere{0,1 pigment{image_map {jpeg "earth.jpg" map_type 1}}}

Then you just scale the sphere to your desired size and translate it to your
desired location.

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Tom Melly
Subject: Re: need help! jpg as texture?? sunsystem... :/
Date: 17 Jan 2005 08:52:27
Message: <41ebc31b@news.povray.org>
"MightyNighty" <mig### [at] aggrobe> wrote in message
news:web.41eb8a6c50746ba36ddf60740@news.povray.org...

Follow Tim's instructions, and here is a good image to use:

http://www.kuffner.org/james/gallery/raytracing/earth_from_space/earth_land.jpg


Post a reply to this message

From: Tom Melly
Subject: Re: need help! jpg as texture?? sunsystem... :/
Date: 17 Jan 2005 11:19:33
Message: <41ebe595@news.povray.org>
"MightyNighty" <mig### [at] aggrobe> wrote in message
news:web.41eb8a6c50746ba36ddf60740@news.povray.org...

Oh, BTW:

http://www.wikipov.org/ow.asp?EarthModel


Post a reply to this message

From: Tom Melly
Subject: Re: need help! jpg as texture?? sunsystem... :/
Date: 17 Jan 2005 11:20:23
Message: <41ebe5c7$1@news.povray.org>
"Tom Melly" <pov### [at] tomandlucouk> wrote in message
news:41ebe595@news.povray.org...

> Oh, BTW:
>
> http://www.wikipov.org/ow.asp?EarthModel
>

and:

http://www.kuffner.org/james/gallery/raytracing/earth_from_space/


Post a reply to this message

From: Tom Melly
Subject: Re: need help! jpg as texture?? sunsystem... :/
Date: 17 Jan 2005 11:23:28
Message: <41ebe680@news.povray.org>
"Tom Melly" <pov### [at] tomandlucouk> wrote in message
news:41ebe5c7$1@news.povray.org...
>
> > Oh, BTW:
> >
> > http://www.wikipov.org/ow.asp?EarthModel
> >
>
> and:
>
> http://www.kuffner.org/james/gallery/raytracing/earth_from_space/
>

... "and if that don't work, I piss on them." ;)

The Big Easy, 1987


Post a reply to this message

From: MightyNighty
Subject: Re: need help! jpg as texture?? sunsystem... :/
Date: 20 Jan 2005 02:10:00
Message: <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...

thx...

the n00bs...^^


Post a reply to this message

From: Tom Melly
Subject: Re: need help! jpg as texture?? sunsystem... :/
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

From: MightyNighty
Subject: Re: need help! jpg as texture?? sunsystem... :/
Date: 24 Jan 2005 04:55:00
Message: <web.41f4c5e93f6ab2e37ccbdbed0@news.povray.org>
thanks for the great help... works fine... =)

but does anyone know where to get some other textures for the rest of the
planets... i can't find something for mars, sun, jupiter, etc...

matane... ;)

the Dudes


Post a reply to this message

From: Tim Nikias
Subject: Re: need help! jpg as texture?? sunsystem... :/
Date: 24 Jan 2005 05:07:46
Message: <41f4c8f2@news.povray.org>
Here's a link:

<http://www.jht.cjb.net/>

You can also get real large-scale maps from earth from NASA:

http://earthobservatory.nasa.gov/Newsroom/BlueMarble/

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

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