Skip to content

Instantly share code, notes, and snippets.

@kogcyc
Last active November 10, 2017 16:01
Show Gist options
  • Save kogcyc/0f6d4cd1b3f4f7667ae37c90956248a5 to your computer and use it in GitHub Desktop.
Save kogcyc/0f6d4cd1b3f4f7667ae37c90956248a5 to your computer and use it in GitHub Desktop.
a boilerplate POVRay scene, Linux variety
//while inotifywait -e close_write boiler.pov ; do povray boiler.pov -H1050 -W1680 +A0.1 -o- > /home/user/background.png ; done
camera {right 16/9*x look_at <0,-10,0> angle 48 location <1,1,-1>*50 }
light_source {<2,1,-0.5>*5000 color rgb 1}
light_source {<1,1,1>*5000 color rgb 1}
background { rgb <1,1,1>*0 }
#declare rkolor = rgb<90,30,30>/99;
#declare bkolor = rgb<30,40,99>/99;
// simple object
//box { -5 5 pigment {rkolor} }
//cylinder { <0,0,10> <0,0,-10> 5 pigment {bkolor} }
// filleted cylinder
//cylinder { y*10 y*1 3 pigment {bkolor} }
//difference {
//cylinder { y*1 y*0 4 pigment {bkolor} }
//torus { 4, 1 rotate <0,0,0> translate y*1 pigment {bkolor} }
//}
#declare Index = 0;
#declare End = 5;
#while(Index < End)
#declare Index = Index + 1;
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment