ブログパーツ失敗

ブログにガラス玉のような飾りをつけたくて POV-Ray で自作。

GIMP で球体だけ切り取って影付け加工。

(影がきたないなあ。。。)
これを ImageMagic (convert)でサイズ調整。

$ convert -scale 30% green-glass-ball.png green-glass-ball-s.png

で、日記タイトル辺りに貼りつけようとしたんですが、画像を挿しこむ HTMLの適当なタグがなくて、位置や大きさが揃わないので今日は断念。また今度です。

この日記は POV-Ray シーンファイルのバックアップ場所でもあるので以下に貼りつけ。

#include "colors.inc"
#include "shapes.inc"
#include "textures.inc"
#include "glass.inc"
#include "metals.inc"
#include "golds.inc"

background { color rgb <0, 0.10, 0.05> }    // 背景色

// カメラ(定義)
#declare Camera1 = camera { location <0, 5,   -8>   look_at 0 }
#declare Camera2 = camera { location <0, 0.5, -8>   look_at 0 }
#declare Camera3 = camera { location <0, 5,    0 >  look_at 0 }

// 床(定義)
#declare Floor1 = plane  { y, -1 pigment { White } }
#declare Floor2 = plane  { y, -1 texture { Gold_Metal } }
#declare Floor3 = plane  { y, -1 texture { T_Gold_5E } }

// ガラス質感(定義)
#declare Glass = material {
    texture {
        pigment { color Clear }
        finish  { F_Glass1 reflection 0.7 }
    }
    interior { I_Glass1 fade_color Col_Emerald_04 }
}


// 配置
camera { Camera1 }                  // カメラ
object { Floor3 }                   // 床
sphere { 0 1 material { Glass } }   // 球


// 照明
light_source { < 300,     300,     0   > Blue       }
light_source { <-300,     500,    -300 > Yellow     }
light_source { < 30000,   30000,  -10  > White      }
light_source { < 3000000, 3000000, 0   > Green      }
light_source { < 0,       100,     0   > Green      }
light_source { < 1,       0,       1   > LightBlue  }
light_source { < 3,       5,      -3   > Green      }
light_source { <-5,       5,      -10  > Gold       }