a little tidy
@ -1,65 +0,0 @@
|
|||||||
#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
|
|
@ -13,7 +13,7 @@
|
|||||||
angle 30
|
angle 30
|
||||||
}
|
}
|
||||||
|
|
||||||
background { color rgb <.46, .09, .06> }
|
background { color rgb <.25, .63, 1> }
|
||||||
|
|
||||||
light_source { <300, 300, -1000> White }
|
light_source { <300, 300, -1000> White }
|
||||||
|
|
||||||
@ -63,5 +63,6 @@
|
|||||||
//======= RENDER
|
//======= RENDER
|
||||||
object { chain scale .45 texture { chain_texture } }
|
object { chain scale .45 texture { chain_texture } }
|
||||||
object { chain scale .45 texture { chain_texture } translate < 10, -10, -20 > rotate y*20 }
|
object { chain scale .45 texture { chain_texture } translate < 10, -10, -20 > rotate y*20 }
|
||||||
|
object { chain scale .45 texture { chain_texture } translate < 18, -30, -20 > rotate y*22 }
|
||||||
object { chain scale .45 texture { chain_texture } translate < 10, 30, 20 > rotate y*30 }
|
object { chain scale .45 texture { chain_texture } translate < 10, 30, 20 > rotate y*30 }
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 49 KiB |
BIN
images/chain.png
Before Width: | Height: | Size: 177 KiB |
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 270 KiB |
Before Width: | Height: | Size: 269 KiB |
BIN
images/demo.png
Before Width: | Height: | Size: 243 KiB |
BIN
images/first.png
Before Width: | Height: | Size: 252 KiB |
Before Width: | Height: | Size: 364 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 806 KiB |
Before Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 190 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 66 KiB |
@ -56,9 +56,9 @@ Verbose=On
|
|||||||
;; found in the current directory. New directories are added to the
|
;; found in the current directory. New directories are added to the
|
||||||
;; search path, up to a maximum of 25.
|
;; search path, up to a maximum of 25.
|
||||||
|
|
||||||
Library_Path="/usr/local/Cellar/povray/3.7.0.0/share/povray-3.7"
|
Library_Path="/usr/local/share/povray-3.7"
|
||||||
Library_Path="/usr/local/Cellar/povray/3.7.0.0/share/povray-3.7/ini"
|
Library_Path="/usr/local/share/povray-3.7/ini"
|
||||||
Library_Path="/usr/local/Cellar/povray/3.7.0.0/share/povray-3.7/include"
|
Library_Path="/usr/local/share/povray-3.7/include"
|
||||||
Library_Path="./inc"
|
Library_Path="./inc"
|
||||||
|
|
||||||
;; File output type control.
|
;; File output type control.
|
||||||
@ -77,5 +77,3 @@ Dither_Method=B4
|
|||||||
|
|
||||||
Antialias=true
|
Antialias=true
|
||||||
Sampling_Method=2
|
Sampling_Method=2
|
||||||
|
|
||||||
|
|
||||||
|
65
tuts/bicubic_demo.pov
Normal 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
|