more tuts

This commit is contained in:
Mark Moser 2014-02-07 21:38:19 -06:00
parent 32b1458047
commit fd6d4450ad
13 changed files with 313 additions and 7 deletions

65
bicubic_demo.pov Normal file
View File

@ -0,0 +1,65 @@
#version 3.7;
global_settings { assumed_gamma 2.2 }
#include "colors.inc"
background {rgb <1,0.9,0.9>}
camera {right 1.78*x location <1.6,5,-6> look_at <1.5,0,1.5> angle 40}
light_source {<500,500,-500> rgb 1 }
#declare B11=<0,0,3>; #declare B12=<1,0,3>; //
#declare B13=<2,0,3>; #declare B14=<3,0,3>; // row 1
#declare B21=<0,0,2>; #declare B22=<1,0,2>; //
#declare B23=<2,0,2>; #declare B24=<3,0,2>; // row 2
#declare B31=<0,0,1>; #declare B32=<1,0,1>; //
#declare B33=<2,0,1>; #declare B34=<3,0,1>; // row 3
#declare B41=<0,0,0>; #declare B42=<1,0,0>; //
#declare B43=<2,0,0>; #declare B44=<3,0,0>; // row 4
bicubic_patch {
type 1 flatness 0.001
u_steps 4 v_steps 4
uv_vectors
<0,0> <1,0> <1,1> <0,1>
B11, B12, B13, B14
B21, B22, B23, B24
B31, B32, B33, B34
B41, B42, B43, B44
uv_mapping
texture {
pigment {
checker
color rgbf <1,1,1,0.5>
color rgbf <0,0,1,0.7>
scale 1/3
}
finish {phong 0.6 phong_size 20}
}
no_shadow
}
#declare Points=array[16]{
B11, B12, B13, B14
B21, B22, B23, B24
B31, B32, B33, B34
B41, B42, B43, B44
}
#declare I=0;
#while (I<16)
sphere {
Points[I],0.1
no_shadow
pigment{
#if (I=0|I=3|I=12|I=15)
color rgb <1,0,0>
#else
color rgb <0,1,1>
#end
}
}
#declare I=I+1;
#end

View File

@ -1,12 +1,61 @@
#version 3.7;
#include "colors.inc"
#include "shapes.inc"
#include "textures.inc"
global_settings {
assumed_gamma 1.8
assumed_gamma 2.2
}
camera {
right x*1280/720
location <-25, -75.1, -60>
look_at 0.1
angle 30
right 1.78*x
location <0.0, 0.2, -10.0>
look_at <0.0, 1.0, 0.0>
// focal_point <-6, 1, 30> // blue cylinder in focus
focal_point < 0, 1, 0> // green box in focus
// focal_point < 1, 1, -6> // pink sphere in focus
// aperture 0.4 // a nice compromise
// aperture 0.05 // almost everything is in focus
aperture 1.5 // much blurring
// blur_samples 4 // fewer samples, faster to render
blur_samples 20 // more samples, higher quality image
}
sphere {
<1, 0, -6>, 0.5
finish {
ambient 0.1
diffuse 0.6
}
pigment { NeonPink }
}
box {
<-1, -1, -1>, < 1, 1, 1>
rotate <0, -20, 0>
finish {
ambient 0.1
diffuse 0.6
}
pigment { Green }
}
cylinder {
<-6, 6, 30>, <-6, -1, 30>, 3
finish {
ambient 0.1
diffuse 0.6
}
pigment {NeonBlue}
}
plane {
y, -1.0
pigment {
checker color Gray65 color Gray30
}
}
light_source { <5, 30, -30> color White }
light_source { <-5, 30, -30> color White }

BIN
images/bicubic_demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
images/focal_demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 KiB

BIN
images/lathe_demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
images/prisim_demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
images/sor_demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

BIN
images/spline_demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

31
lathe_demo.pov Normal file
View File

@ -0,0 +1,31 @@
#version 3.7;
#include "colors.inc"
global_settings {
assumed_gamma 2.2
}
camera {
right 1.78*x
angle 10
location <1, 3, -50>
look_at <0, 2.2, 0>
}
background{White}
light_source {
<20, 20, -20> color White
}
lathe {
linear_spline
6,
<0,0>, <1,1>, <3,2>, <2,3>, <2,4>, <0,4>
pigment { Blue }
finish {
ambient .3
phong .75
}
}

View File

@ -18,11 +18,13 @@
; general documentation for full instructions on how to use INI options.
;
; Width of image in pixels. Accepts integer values.
;Width = 800
Width = 1280
;
; Height of image in pixels. Accepts integer values.
;Height = 600
Height = 720
;
; Sets minimum number of objects before auto bounding kicks in.
Bounding_Threshold = 3
;

75
prisim_demo.pov Normal file
View File

@ -0,0 +1,75 @@
#version 3.7;
global_settings { assumed_gamma 2.2 }
#include "colors.inc"
background{White}
camera {
right 1.78*x
angle 20
location <2, 10, -80>
look_at <0, 1, 0>
}
light_source { <20, 20, -20> color White }
// prism {
// linear_sweep
// linear_spline
// 0, // sweep the following shape from here ...
// 1, // ... up through here
// 7, // the number of points making up the shape ...
// <3,5>, <-3,5>, <-5,0>, <-3,-5>, <3, -5>, <5,0>, <3,5>
// pigment { Green }
// }
// prism {
// cubic_spline
// 0, // sweep the following shape from here ...
// 1, // ... up through here
// 6, // the number of points making up the shape ...
// < 3, -5>, // point#1 (control point... not on curve)
// < 3, 5>, // point#2 ... THIS POINT ...
// <-5, 0>, // point#3
// < 3, -5>, // point#4
// < 3, 5>, // point#5 ... MUST MATCH THIS POINT
// <-5, 0> // point#6 (control point... not on curve)
// pigment { Green }
// }
// prism {
// linear_sweep
// cubic_spline
// 0, // sweep the following shape from here ...
// 1, // ... up through here
// 18, // the number of points making up the shape ...
// <3,-5>, <3,5>, <-5,0>, <3, -5>, <3,5>, <-5,0>,//sub-shape #1
// <2,-4>, <2,4>, <-4,0>, <2,-4>, <2,4>, <-4,0>, //sub-shape #2
// <1,-3>, <1,3>, <-3,0>, <1, -3>, <1,3>, <-3,0> //sub-shape #3
// pigment { Green }
// }
// prism {
// conic_sweep
// linear_spline
// 0, // height 1
// 1, // height 2
// 5, // the number of points making up the shape...
// <4,4>,<-4,4>,<-4,-4>,<4,-4>,<4,4>
// rotate <180, 0, 0>
// translate <0, 1, 0>
// scale <1, 4, 1>
// pigment { gradient y scale .2 }
// }
sphere_sweep {
cubic_spline
6,
<-4, -5, 0>, 1
<-5, -5, 0>, 1
<-5, 5, 0>, 0.5
< 5, -5, 0>, 0.5
< 5, 5, 0>, 1
< 4, 5, 0>, 1
tolerance 0.1
pigment { Green }
}

31
sor_demo.pov Normal file
View File

@ -0,0 +1,31 @@
#version 3.7;
#include "colors.inc"
#include "golds.inc"
global_settings { assumed_gamma 2.2 }
camera {
right 1.78*x
location <10, 15, -20>
look_at <0, 5, 0>
angle 45
}
background { color rgb<0.2, 0.4, 0.8> }
light_source { <100, 100, -100> color rgb 1 }
plane {
y, 0
pigment { checker color Red, color Green scale 10 }
}
sor {
8,
<0.0, -0.5>,
<3.0, 0.0>,
<1.0, 0.2>,
<0.5, 0.4>,
<0.5, 4.0>,
<1.0, 5.0>,
<3.0, 10.0>,
<4.0, 11.0>
open
texture { T_Gold_1B }
}

53
spline_demo.pov Normal file
View File

@ -0,0 +1,53 @@
#version 3.7;
#include "colors.inc"
global_settings { assumed_gamma 2.2 }
camera {
orthographic
right 1.78*x
up <0, 7, 0>
right <7, 0, 0>
location <3.5, 4, -100>
look_at <3.5, 4, 0>
}
/* set the control points to be used */
#declare Red_Point = <2.00, 1.00>;
#declare Orange_Point = <1.00, 1.50>;
#declare Green_Point = <3.00, 3.50>;
#declare Blue_Point = <2.00, 4.00>;
#declare Green_Point2 = <1.00, 4.50>;
#declare Orange_Point2= <1.00, 6.50>;
#declare Red_Point2 = <2.00, 7.00>;
/* make the control points visible */
cylinder { Red_Point, Red_Point - <0,0,20>, .1
pigment { Red } finish { ambient 1 }
}
cylinder { Orange_Point, Orange_Point - <0,0,20>, .1
pigment { Orange } finish { ambient 1 }
}
cylinder { Green_Point, Green_Point - <0,0,20>, .1
pigment { Green } finish { ambient 1 }
}
cylinder { Blue_Point, Blue_Point- <0,0,20>, .1
pigment { Blue } finish { ambient 1 }
}
cylinder { Green_Point2, Green_Point2 - <0,0,20>, .1
pigment { Green } finish { ambient 1 }
}
cylinder { Orange_Point2, Orange_Point2 - <0,0,20>, .1
pigment { Orange } finish { ambient 1 }
}
cylinder { Red_Point2, Red_Point2 - <0,0,20>, .1
pigment { Red } finish { ambient 1 }
}
/* something to make the curve show up */
lathe {
bezier_spline
8,
Red_Point, Orange_Point, Green_Point, Blue_Point
Blue_Point, Green_Point2, Orange_Point2, Red_Point2
pigment { White }
finish { ambient 1 }
}