Last updated: March 2008. Kajiyama             [ 目次に戻る ]

教会の構成


サンプル cgs_00.pov

//church0.pov
// POV-Ray 3.6 scene file by Kajiyama


#include "colors.inc"
#include "shapes.inc"
#include "shapes2.inc"


//カメラ設定
camera{
location < 15,15,-15>
look_at <0,5,5>
angle 45
}
light_source{
<15,25,-8> color White*1.7
}


// XYZ座標空間
/* */
// チェック柄の床
object{
Plane_XZ
pigment{checker color Red color White*0.9}
translate <0,0,0>
}


//■座標系の表示
#declare coordinate =
union{
// Z軸
cylinder{<0,0,-5>,<0,0,17>,0.05
pigment{color Red}
finish{phong 1 reflection 0.1}
}
cone{<0,0,17>,0.3
<0,0,18.5>,0
pigment{color Red}
}
// Z文字
cylinder{<-0.5,0.5,0>,<0.5,0.5,0>,0.08
pigment{color Red}
finish{phong 1 reflection 0.1}
translate <0,1.1,19>
}
cylinder{<0.5,0.5,0>,<-0.5,-0.5,0>,0.08
pigment{color Red}
finish{phong 1 reflection 0.1}
translate <0,1.1,19>
}
cylinder{ <-0.5,-0.5,0>, <0.5,-0.5,0>,0.08
pigment{color Red}
finish{phong 1 reflection 0.1}
translate <0,1.1,19>
}
// X軸
cylinder{<-5,0,0>,<7,0,0>,0.05
pigment{color Green}
finish{phong 1 reflection 0.1}
}
cone{<7,0,0>,0.3
<8.5,0,0>,0
pigment{color Green}
}
// X文字
cylinder{<-0.5,-0.5,0>,<0.5,0.5,0>,0.08
pigment{color Green}
finish{phong 1 reflection 0.1}
rotate y*90
translate <9,1.1,0>
}
cylinder{ <-0.5,0.5,0>, <0.5,-0.5,0>,0.08
pigment{color Green}
finish{phong 1 reflection 0.1}
rotate y*90
translate <9,1.1,0>
}

// Y軸
cylinder{<0,-5,0>,<0,7,0>,0.05
pigment{color Blue}
finish{phong 1 reflection 0.1}
}
cone{<0,7,0>,0.3
<0,8.5,0>,0
pigment{color Blue}
}
// Y文字
cylinder{<-0.5,0.5,0>,<0,0,0>,0.08
pigment{color Blue}
finish{phong 1 reflection 0.1}
translate <0,9,0>
}
cylinder{<0.5,0.5,0>,<0,0,0>,0.08
finish{phong 1 reflection 0.1}
translate <0,9,0>
}
cylinder{ <0,0,0>, <0,-0.5,0>,0.08
pigment{color Blue}
finish{phong 1 reflection 0.1}
translate <0,9,0>
}
}
//■■■大屋根
#declare roof =
difference{
//■■■平面をスイープして作る
prism{linear_sweep//面を平行にスイープ
0, //スイープの始点のy座標、高さ
8, //スイープの終点のy座標、高さ
5, //頂点の総数
<-5,0>, <-5,3>,
<0,6> , <5,3>, <5,0>//頂点1--nのxz座標
pigment{color rgb<0.5,0.8,0.4>}
rotate x*-90
translate <0,0,8>
}
//■-左箱
box{<-5.1,0,-0.1>,<-3.5,4,8.1>
pigment{color rgb<0.5,0.8,0.4>}
}
//■-右箱
box{<5.1,-0.1,-0.1>,<3.5,4,6>
pigment{color rgb<0.5,0.8,0.4>}
}
//■-ドア
box{<-0.7,0.1,0.5>,<0.7,3,-0.1>
pigment{color rgb<0.5,0.8,0.4>}
}
}//difference


//■■■尖塔
#declare tower =
union{
//■角錐
object{Pyramid
pigment{color rgb<0.5,0.8,0.4>}
scale <1,2,1>
translate <0,6,0.1>
}
//■上土台
box{<-1,-0,-1>,<1,1,1>
pigment{color rgb<0.5,0.8,0.4>}
translate <0,3,0.1>
}
//■下土台
box{<-1.5,-0,-1.5>,<1.5,2,1.5>
pigment{color rgb<0.5,0.8,0.4>}
translate <0,1,0.1>
}
}//union


//■■■タイトル
text {
ttf "timrom.ttf"
"church" 0.05,0
pigment {color rgb<0.5,0.8,0.4> }
scale 2
rotate y*-40
translate <7,3,-1>
}

object { tower
translate <0,4,2>
}
object { roof
translate <0,0,0>
}
object { coordinate
translate <0,0,0>
}

background{color White}


[ 目次に戻る ]