POV-Ray : Newsgroups : povray.text.scene-files : something to play with Server Time
8 Oct 2024 08:25:22 EDT (-0400)
  something to play with (Message 1 to 2 of 2)  
From: H  Karsten
Subject: something to play with
Date: 9 Feb 2011 20:40:01
Message: <web.4d5341167a17ae13a3bfeb720@news.povray.org>
//use mc-pov
global_settings {
  assumed_gamma 1.35
}

camera {
  location <0,15,-40>
    look_at <0,4,0>
    right     x*image_width/image_height
    angle 35
    rotate y*-33
}


light_source {
  <-50,80,-90>
    color rgb 1.5
    fade_distance 100 fade_power 7.5
    rotate y*-45/2
}

sphere {
  0,1
    pigment {
    image_map {
      png "sky01.png"
        map_type 1
        interpolate 2
    }
  }
  finish {
    ambient 0 diffuse 1
  }
  scale 225
}

#declare Balls=true;
#declare Plane=true;

#declare F=seed(213846);

#if (Balls)
#declare Y=-5;
#while (Y<5)
#declare X=-5;
#while (X<5)
#declare Z=-5;
#while (Z<5)
sphere {
  0,0.5
    material {
    texture {
      pigment {
        color rgb 0
      }
      finish {
        ambient 0
          diffuse 0
          specular 1.25
          roughness 0.01
          reflection 1
          conserve_energy
          montecarlo {
          mc_reflect {
            1 1 1 500
          }
        }
      }
      normal {
        //agate .1
        granite 1/20
          scale .5
          translate <rand(F),rand(F),rand(F)>
      }
    }
  }
  translate <X,Y,Z>
    translate y*5.5
}
#declare Z=Z+1;
#end
#declare X=X+1;
#end
#declare Y=Y+1;
#end
#end


#if (Plane)
#declare G=transform {
  scale <0.5,0.5,8>/2
}
plane {
  y,0
    material {
    texture {
      pigment {
        granite color_map {
          [0 color rgb 0]
            [1 color rgb .01]
        }
        turbulence 1 transform {
          G
        }
      }
      finish {
        ambient 0 diffuse 1 reflection {
          0,1
        }
        montecarlo {
          mc_reflect {
            1 1 1 1000
          }
        }
      }
      normal {
        granite 1 turbulence 1 transform {
          G
        }
      }
    }
  }
}


Post a reply to this message


Attachments:
Download 'ballgrid.prev.png' (805 KB)

Preview of image 'ballgrid.prev.png'
ballgrid.prev.png


 

From: H  Karsten
Subject: Re: something to play with
Date: 9 Feb 2011 20:50:00
Message: <web.4d5343b1db4ba44ba3bfeb720@news.povray.org>
Don't forget the texture

Ps.: Here again my resolution-file for the format:
http://news.povray.org/web.4aee24957b89836eda6353d60%40news.povray.org

Have fun!


Post a reply to this message


Attachments:
Download 'sky01.png.zip' (455 KB)

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