View Single Post
Old 22nd March 2004, 12:04 PM   #2
allen
Junior Member
Member
 
Join Date: Mar 2004
Location: USA, Oklahoma
Posts: 16
Default Sky Sphere And Sun

I really had no idea what site to place this on so here it is. These codes are used in povray after you export a model. Enjoy!

This will create a sky sphere to encompass your entire scene.

// Light
light_source {<600.0, 800.0, 600.0> White } // White light at the coordinates.

sky_sphere { S_Cloud3 } // This creates the sphere with the controls above.


To create a light source that ‘looks like’ the sun try this code out.
Tweak me
light_source {
<0, 0, 0> colour red 1.0 green 0.7

looks_like { // Give the light a ‘look’
sphere { <0.0, 0.0, 0.0>, 190.0
pigment { colour red 1.0 green 0.6 filter 0.35 }
finish { ambient 1.0 diffuse 0.0 } // Makes Object visible
}
}

translate <-1300.0, 380.0, 2500.0> // Location of light
}

Visit My Site http://allen.emailnuts.com

edit:9.22.04

Allen
allen is offline   Reply With Quote