Compare commits

...

2 Commits

Author SHA1 Message Date
Matt McWilliams a6f57c5972 Run test 100000x as fast 2021-07-25 20:40:41 -04:00
Matt McWilliams e6d64e3490 Improve lighting and texture 2021-07-25 20:40:24 -04:00
2 changed files with 21 additions and 37 deletions

View File

@ -27,10 +27,8 @@
#declare plastic = texture{
pigment { rgb color1 }
finish {
ambient .01
ambient 0
diffuse .06
phong .025
phong_size 15
}
}
@ -45,33 +43,20 @@ global_settings {
#declare useDOF=false;
#ifdef(useDOF)
#if (useDOF)
#debug "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)
aperture 2.4
blur_samples 200
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
#if (useDOF)
#debug "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)
aperture 2.4
blur_samples 200
variance 1/10000
focal_point <0, 0, 0>
}
#else
#debug "Not using DOF rendering"
camera {
@ -85,10 +70,9 @@ global_settings {
}
#end
light_source {
<0, -60-Y, -100>
rgb <0.2, 0.2, 0.2>
rgb <0.1, 0.1, 0.1>
area_light x,y,6,6
area_illumination off
}

View File

@ -12,8 +12,8 @@ float ymax = 145.75;
float xscale = 1080.0 / (xmax * 2.0);
float yscale = 1920.0 / (ymax * 2.0);
float startx = 1;//566.0, 893.0
float starty = 1;
float startx = 0;//566.0, 893.0
float starty = 0;
float x = 0.0;
float y = 0.0;
@ -130,13 +130,13 @@ void draw () {
startx++;
if (startx >= 1079.0) {
startx = 0;
starty++;
starty+=100;
}
if (starty >= 1920.0) {
starty = 0;
frames++;
frames+=100;
}
if (angle == startangle && abs(x - startx) < 5 && abs(y - starty ) < 5 ) {
if (angle == startangle && abs(x - startx) < 100 && abs(y - starty ) < 100 ) {
ranOnce = true;
}
}