材質圖檔:PT_001.GIF   材質內容:木紋材質

                                                                                                            說明:使用spherical pattern球形格式在物     體的表面產生互相交替的同心圓,     再使用noise產生棕色和土黃色的班     點在同心圓上,然後調整scale大小     來顯示出一條紋(將scale的X調大),     即成為一有條紋的木頭材質。                                                                                                                        


/*

�歈���������������������������������������������������������������������������

��                                                               ��

��        PT_001.B = A seriously exciting image of Wood          ��

��   Requires : color.bc, black.map, cone.bo, block.bo, pole.bo  ��

��                                                               ��

�裺���������������������������������������������������������������������������

*/

//==========================================================

#include color.bc                                                        

                                                                         

studio   {                                                               

        from  6  13  3.5                                                 

        at   0 0 3                                                       

        up   0 0 1                                                       

        angle   40                                                       

        res   320 240                                                    

        antialias   adaptive                                             

        threshold   4                                                    

        aspect   1.3333                                                  

        background   black                                               

}                                                                        

                                                                         

light   {                                                                

        type   point                                                     

        falloff   1                                                      

        position   8  6  5                                               

        color   12 12 12                                                 

}                                                                        

                                                                         

light   {                                                                

        type   point                                                     

        falloff   1                                                      

        position   3  -6  6                                              

       color   10  10   10                                               

}                                                                        

                                                                         

//      neutral base                                                     

                                                                         

surf   { diff   white  }                                                 

ring   { center   0 0 0  normal   0 0 1  radius   100  }                 

                                                                         

//      wood surface                                                     

surface  {                                                               

        texture  {                                                       

                turbulence  {                                            

                        scale  .1 .9 1                                   

                        amp  .3                                          

                        terms  3                                         

                }                                                        

                pattern  spherical                                       

                scale  10 0.5 1                                          

                translate  5 0 0                                         

                blend   .5                                               

                radius  .9                                               

                radius  .3                                               

                                                                         

                surf {                                                   

                        texture {                                        

                                pattern noise                            

                                scale 5 .03 .03                          

                                terms 2                                  

                                surf { diff brown

                                       shine 100 white }

                                surf { diff medium_tan

                                       shine 100 white }

                        }                                                

                }                                                        

                surf {                                                   

                        texture {                                        

                                pattern noise                            

                                scale 5 .03 .03                          

                                terms 2                                  

                                surf { diff dim_brown

                                       shine 20 white }

                                surf { diff dark_tan

                                       shine 20 white }

                        }                                                

                }                                                        

        }                                                                

}                                                                        

                                                                         

//    pattern sample                                                     

                                                                         

#include cone.bo                                                         

                                                                         

#include block.bo                                                        

                                                                         

#include pole.bo

//========================================================