切り取り文字

 文字の画像から、ハイト・フィールドにより造った形状の背景を、平面で切り取ったものです。

 //**********************************************************************************
  #macro Jdisp(Fn,Fm)
  #local Type=substr(Fn,strlen(Fn)+1-3,3);
  #local Typ=asc(substr(Type,1,1))-asc("a")+1;
  #switch(Typ)
   #case( 2)
    height_field { sys Fn clipped_by { plane { y, 1e-4 } }
          translate <-Fm,0,-1/2> hollow no_reflection no_shadow }
   #break
   #case(10)
    height_field { jpeg Fn clipped_by { plane { y, 1e-4 } }
          translate <-Fm,0,-1/2> hollow no_reflection no_shadow }
   #break
   #case(16)
    height_field { png Fn clipped_by { plane { y, 1e-4 } }
          translate <-Fm,0,-1/2> hollow no_reflection no_shadow }
   #break
  #end
  #end
 //**********************************************************************************
  #local Tex = texture { pigment { color rgb <1,0,1> } }
  #local Text = Jdisp("jinruiboku_text.png",1/2)
  object { Text texture { Tex } scale 36*<600/120,1,1> rotate -90*x translate -z }
  #local N=0; #while(N<8)
   object { Text pigment { color rgb <0,abs(N-3)/4,(N+3)/8> }
        scale 36*<600/120,1,1>*0.75 rotate -90*x rotate (-60+N*17)*z }
  #local N=N+1; #end
 //**********************************************************************************