Compare commits
No commits in common. "a6f57c5972bf5dff48d442c4b8da11a6386f338a" and "2293577b5a5104c42c078159b7c853e19d08fac1" have entirely different histories.
a6f57c5972
...
2293577b5a
48
bounce.pov
48
bounce.pov
|
@ -27,8 +27,10 @@
|
||||||
#declare plastic = texture{
|
#declare plastic = texture{
|
||||||
pigment { rgb color1 }
|
pigment { rgb color1 }
|
||||||
finish {
|
finish {
|
||||||
ambient 0
|
ambient .01
|
||||||
diffuse .06
|
diffuse .06
|
||||||
|
phong .025
|
||||||
|
phong_size 15
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,20 +45,33 @@ global_settings {
|
||||||
|
|
||||||
#declare useDOF=false;
|
#declare useDOF=false;
|
||||||
|
|
||||||
#if (useDOF)
|
#ifdef(useDOF)
|
||||||
#debug "Using DOF rendering"
|
#if (useDOF)
|
||||||
camera {
|
#debug "Using DOF rendering"
|
||||||
//orthographic
|
camera {
|
||||||
sky <0,0,1>
|
//orthographic
|
||||||
location <0, 0, CAM_Z>
|
sky <0,0,1>
|
||||||
look_at <0, 0, 0>
|
location <0, 0, CAM_Z>
|
||||||
angle 50
|
look_at <0, 0, 0>
|
||||||
right -x*(image_width/image_height)
|
angle 50
|
||||||
aperture 2.4
|
right -x*(image_width/image_height)
|
||||||
blur_samples 200
|
aperture 2.4
|
||||||
variance 1/10000
|
blur_samples 200
|
||||||
focal_point <0, 0, 0>
|
variance 1/10000
|
||||||
}
|
focal_point <0, 0, 0>
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
#debug "Not using DOF rendering"
|
||||||
|
camera {
|
||||||
|
//orthographic
|
||||||
|
sky <0,0,1>
|
||||||
|
location <0, 0, CAM_Z>
|
||||||
|
look_at <0, 0, 0>
|
||||||
|
angle 50
|
||||||
|
right -x*(image_width/image_height)
|
||||||
|
focal_point <0, 0, 0>
|
||||||
|
}
|
||||||
|
#end
|
||||||
#else
|
#else
|
||||||
#debug "Not using DOF rendering"
|
#debug "Not using DOF rendering"
|
||||||
camera {
|
camera {
|
||||||
|
@ -70,9 +85,10 @@ global_settings {
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
|
||||||
light_source {
|
light_source {
|
||||||
<0, -60-Y, -100>
|
<0, -60-Y, -100>
|
||||||
rgb <0.1, 0.1, 0.1>
|
rgb <0.2, 0.2, 0.2>
|
||||||
area_light x,y,6,6
|
area_light x,y,6,6
|
||||||
area_illumination off
|
area_illumination off
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,8 @@ float ymax = 145.75;
|
||||||
float xscale = 1080.0 / (xmax * 2.0);
|
float xscale = 1080.0 / (xmax * 2.0);
|
||||||
float yscale = 1920.0 / (ymax * 2.0);
|
float yscale = 1920.0 / (ymax * 2.0);
|
||||||
|
|
||||||
float startx = 0;//566.0, 893.0
|
float startx = 1;//566.0, 893.0
|
||||||
float starty = 0;
|
float starty = 1;
|
||||||
|
|
||||||
float x = 0.0;
|
float x = 0.0;
|
||||||
float y = 0.0;
|
float y = 0.0;
|
||||||
|
@ -130,13 +130,13 @@ void draw () {
|
||||||
startx++;
|
startx++;
|
||||||
if (startx >= 1079.0) {
|
if (startx >= 1079.0) {
|
||||||
startx = 0;
|
startx = 0;
|
||||||
starty+=100;
|
starty++;
|
||||||
}
|
}
|
||||||
if (starty >= 1920.0) {
|
if (starty >= 1920.0) {
|
||||||
starty = 0;
|
starty = 0;
|
||||||
frames+=100;
|
frames++;
|
||||||
}
|
}
|
||||||
if (angle == startangle && abs(x - startx) < 100 && abs(y - starty ) < 100 ) {
|
if (angle == startangle && abs(x - startx) < 5 && abs(y - starty ) < 5 ) {
|
||||||
ranOnce = true;
|
ranOnce = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue