なつみの部屋/MAKING
POV-Rayでスマイルマークをつくってみよう!
 |
シリンダーで黄色い丸をつくります。 |
 |
黄色い丸のまわりに、黒い輪郭をつくります。 |
 |
ふたつの目をつくります。 |
 |
口を入れて、できあがりです。 |
cylinderのほかに、discでつくることもできるし、sphereでつくれば立体的に見えるでしょう。
あと、目の部分を、ハート型に変えるとか、星の形にするとか、シリンダーでCSG(集合演算)の差を利用して微笑む目にするとか、いろいろアレンジできると思います。
camera{
perspective
location <0,50,0>
look_at <0,0,0>
}
light_source{
<0,1000,0>
rgb 1
}
background{rgb 1}
#declare Smile_Mark = union{
cylinder{
<0,0,0>,<0,10,0>,10
pigment{rgb <1,1,0>}}//Face
cylinder{<0,0,0>,<0,9,0>,11}//FaceOut
cylinder{<3,0,2>,<3,11,2>,1}//leftEye
cylinder{<-3,0,2>,<-3,11,2>,1}//rightEye
difference{
cylinder{<0,0,-1>,<0,11,-1>,6}
cylinder{<0,0,-1>,<0,11.5,-1>,5.5}
box{<-7,0,-1>,<7,11.5,7>}
pigment{rgb <1,0,0>}}//Mouth
finish{ambient 0.5}
}
object{Smile_Mark}
【TOP】http://www.drhp.org/natsumi/