POV-Ray : Newsgroups : povray.binaries.images : Planet WIP (209kbbu) : Re: Planet WIP (209kbbu) Server Time
30 Jul 2024 02:16:37 EDT (-0400)
  Re: Planet WIP (209kbbu)  
From: John VanSickle
Date: 28 Mar 2013 19:04:01
Message: <5154cc61$1@news.povray.org>
On 3/28/2013 3:03 AM, Anthony D. Baye wrote:

> would you mind posting the code for the planet?  I'd like to fiddle with the
> landmasses and use it in my jumpgate scene.

Hope this helps,
John

//--- start of planet03.inc

#ifndef(PlanetTrans)
   #local PlanetTrans = transform { }
#end

#local textOcean = texture {
   pigment { rgb <0,.01,.04>}
   finish { diffuse 1 ambient 0 specular .125 roughness .02 }
}

#local textLand = texture {
   pigment { granite
     pigment_map {
       [.7 granite translate y*5
         color_map {
           [.5 rgb <.125,.2,.1> ]
           [.5 rgb <.35,.3,.25> ]
         }
       ]
       [.8  rgb <.125,.1,.075> ]
     }
   }
   normal { granite
     normal_map {
       [.7 granite .01 ]
       [.8 granite 1 scale .01]
     }
   }
}

union {
   sphere { 0,1
     texture {
       granite
       texture_map {
         [.5 textOcean]
         [.5 textLand]
       }
       scale 3
     }
     scale 6e3
   }

   sphere { 0,1 hollow
     texture {  pigment { rgbt <1,1,1,1> } }
     interior {
       media { scattering { 2, <.2,.6,1>*.01 } }
     }
     scale 6010
   }

   sphere { 0,1 hollow
     texture {
       pigment { granite turbulence 1 lambda 4
         color_map {
           [.65 rgbt 1]
           [.66 rgb 1]
         }
       }
       finish { ambient 0 diffuse 1 }
     }
     scale 6009
   }

   transform PlanetTrans
}

//--- end of planet03.inc


Post a reply to this message

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