次の 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.3 石材

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

図14.3 石材
//-------------------- Fig. 14-3 stone // 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 stone #declare T1= pigment {Red_Marble scale 0.5} #declare T2= texture {T_Grnt9 scale 1} #declare T3= texture {T_Grnt29 scale 0.8} //------------------------------------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 {Jade}

pigment {Red_Marble}

pigment {White_Marble}

pigment {Blood_Marble}

pigment {Blue_Agate}

pigment {Sapphire_Agate}

pigment {Brown_Agate}

pigment {Pink_Granite}

texture {PinkAlabaster}
 

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

#include "stones.inc"


texture {T_Grnt0}

texture {T_Grnt1}

texture {T_Grnt2}

texture {T_Grnt3}

texture {T_Grnt4}

texture {T_Grnt5}

texture {T_Grnt6}

texture {T_Grnt7}

texture {T_Grnt8}

texture {T_Grnt9}

texture {T_Grnt10}

texture {T_Grnt11}

texture {T_Grnt12}

texture {T_Grnt13}

texture {T_Grnt14}

texture {T_Grnt15}

texture {T_Grnt16}

texture {T_Grnt17}

texture {T_Grnt18}

texture {T_Grnt19}

texture {T_Grnt20}

texture {T_Grnt21}

texture {T_Grnt22}

texture {T_Grnt23}

texture {T_Grnt24}

texture {T_Grnt25}

texture {T_Grnt26}

texture {T_Grnt27}

texture {T_Grnt28}

texture {T_Grnt29}

texture {T_Grnt0a}

texture {T_Grnt1a}

texture {T_Grnt2a}

texture {T_Grnt3a}

texture {T_Grnt4a}

texture {T_Grnt5a}

texture {T_Grnt6a}

texture {T_Grnt7a}

texture {T_Grnt8a}

texture {T_Grnt9a}

texture {T_Grnt10a}

texture {T_Grnt11a}

texture {T_Grnt12a}

texture {T_Grnt13a}

texture {T_Grnt14a}

texture {T_Grnt15a}

texture {T_Grnt16a}

texture {T_Grnt17a}

texture {T_Grnt18a}

texture {T_Grnt19a}

texture {T_Grnt20a}

texture {T_Grnt21a}

texture {T_Grnt22a}

texture {T_Grnt23a}

texture {T_Grnt24a}

texture {T_Crack1}

texture {T_Crack2}

texture {T_Crack3}

texture {T_Crack4}

texture {T_Stone1}

texture {T_Stone2}

texture {T_Stone3}

texture {T_Stone4}

texture {T_Stone5}

texture {T_Stone6}

texture {T_Stone7}

texture {T_Stone8}

texture {T_Stone9}

texture {T_Stone10}

texture {T_Stone11}

texture {T_Stone12}

texture {T_Stone13}

texture {T_Stone14}

texture {T_Stone15}

texture {T_Stone16}

texture {T_Stone17}

texture {T_Stone18}

texture {T_Stone19}

texture {T_Stone20}

texture {T_Stone21}

texture {T_Stone22}

texture {T_Stone23}

texture {T_Stone24}

texture {T_Stone25}

texture {T_Stone26}

texture {T_Stone27}

texture {T_Stone28}

texture {T_Stone29}

texture {T_Stone30}

texture {T_Stone31}

texture {T_Stone32}

texture {T_Stone33}

texture {T_Stone34}

texture {T_Stone35}

texture {T_Stone36}

texture {T_Stone37}

texture {T_Stone38}

texture {T_Stone39}

texture {T_Stone40}

texture {T_Stone41}

texture {T_Stone42}

texture {T_Stone43}

texture {T_Stone44}

 


(End) 14.3 石材