次の include文で、ここで示しているすべてのものを使用することができる。

#include "colors.inc" #include "textures.inc" #include "Woods.inc" #include "stones.inc" #include "glass.inc" #include "metals.inc" #include "skies.inc" #include "stars.inc" #include "chars.inc" #include "shapes.inc" #include "shapes2.inc" #include "shapes3.inc"


14.2 木材

木材のテクスチャは、textures.incWoods.inc に定義されている。木材のテクスチャ一覧を以下に示す。

図14.2 木材
//-------------------- Fig. 14-2 wood // screen size : // command line Input // +w400 +H160 +A #version 3.7 #include "colors.inc" #include "textures.inc" #include "Woods.inc" #include "stones.inc" #include "glass.inc" #include "metals.inc" #include "skies.inc" #include "stars.inc" #include "chars.inc" global_settings { assumed_gamma 2.2 } //-----------------------------camera - light camera{ location <0,-14,8> sky <0, 0, 1> right <-image_width/image_height,0,0> look_at <0, 0, 0> angle 25 } light_source{ <100, -400, 500> color rgb 1.5} //=================================== <<<<< inc wood #declare T1= pigment {White_Wood scale 0.3} #declare T2= texture {T_Wood7 scale 1} #declare T3= texture {T_Wood35 scale 1} //------------------------------------object sphere{ 0,1 texture{T1} rotate -25*z translate -2*x} cylinder{-z,z,1 texture{T2} rotate -25*z scale 0.75} box{-1,1 texture{T3} rotate -25*z scale .75 translate 2*x} //---------------------------------floor #declare CA1=rgb<0.85,0.85,0.8>; #declare CA2=rgb<0.85,0.85,0.8>*1.2; plane{ z, -1.01 pigment{ checker color CA1, color CA2 scale 0.3 } }

次の木材のテクスチャを使うために必要なインクルード文

#include "textures.inc"


pigment {Cherry_Wood}

pigment {Pine_Wood }

pigment {Dark_Wood}

pigment {Tan_Wood}

pigment {White_Wood}

pigment {Tom_Wood}

pigment {DMFWood1}

pigment {DMFWood2}

pigment {DMFWood3}

pigment {DMFWood4}

pigment {DMFWood5}

texture {DMFWood6}

texture {EMBWood1}

pigment {DMFLightOak}

pigment {DMFDarkOak}

texture {Yellow_Pine}

texture {Rosewood}

texture {Sandalwood}

texture {Cork}
 

次の木材のテクスチャを使うために必要なインクルード文

#include "Woods.inc"


texture {T_Wood1}

texture {T_Wood2}

texture {T_Wood3}

texture {T_Wood4}

texture {T_Wood5}

texture {T_Wood6}

texture {T_Wood7}

texture {T_Wood8}

texture {T_Wood9}

texture {T_Wood10}

texture {T_Wood11}

texture {T_Wood12}

texture {T_Wood13}

texture {T_Wood14}

texture {T_Wood15}

texture {T_Wood16}

texture {T_Wood17}

texture {T_Wood18}

texture {T_Wood19}

texture {T_Wood20}

texture {T_Wood21}

texture {T_Wood22}

texture {T_Wood23}

texture {T_Wood24}

texture {T_Wood25}

texture {T_Wood26}

texture {T_Wood27}

texture {T_Wood28}

texture {T_Wood29}

texture {T_Wood30}

texture {T_Wood31}

texture {T_Wood32}

texture {T_Wood33}

texture {T_Wood34}

texture {T_Wood35}
 


(End) 14.2 木材