2014-03-01から1ヶ月間の記事一覧
植木鉢と一輪の花の咲いた小枝の形状を、CSGにより造り、レンダリングします。
曲面の描画用マクロを用いて、帽子を描画します。 //********************************************************************************** object { Curved_surface4(,,0) texture { T_hat } scale 4 rotate translate } //******************************…
登録した曲面の式から、帽子の形状を描画します。 //********************************************************************************** #macro Curved_surface4(V1,V2,Func_no) mesh { #local V=V2.x; #while( V #local U=V1.x; #while( U #local Pd11=…
帽子の形状を生成する曲面の式を #case(0) に登録します。 //********************************************************************************** #macro Surface_func(Ut,Vt,Func_no) #switch(Func_no) #case(0) #local Rp=(pow(.2*4*Ut,2)+pow(.2*4*Vt,…
帽子の材質を指定します。 //********************************************************************************** #local Cv1=; #local Cv2=; #local Cv3=; #local T_hat = texture { pigment { ripples color_map { [ 0.0 color rgbt ] [ 0.5 color rgbt…
球の中に media を使用して空を描画します。 //********************************************************************************** #local Cv1=; #local Cv2=; #local Cv3=; #declare M_sky = media { emission 0.015 intervals 80 samples 1, 1 confide…
背景の色を指定します。 //********************************************************************************** background { color rgb } //**********************************************************************************
カメラや光源などの設定をします・ //********************************************************************************** global_settings { assumed_gamma 1.0 max_trace_level 5 } camera { angle 40 location -200*z look_at 0 } light_source { colo…
曲面の式を用いて、帽子をレンダリングします。
定義した群生の草を描画します。 //********************************************************************************** #local Cv1=; #local Cv2=; union { object { Area_grass scale 2 } plane{ y, 0 pigment { ripples color_map { [ 0.0 color rgb C…
設定した値から群生する草を定義します。 //********************************************************************************** #local Area_grass = union { #declare Ext_cnt = 0; #while ( Ext_cnt #declare Grs_count = 0; #while ( Grs_count #decl…
草を群生させるためのデフォルト値を指定します。 //********************************************************************************** #ifndef(Ground_level) #declare Ground_level = 0;#end // #ifndef(Grs_r) #declare Grs_r = 16; #end #ifndef(Gr…
葉の形状を使用して、草の形状を定義します。 //********************************************************************************** #declare Grass_seg = union { object { Ellip_seg rotate y*45*0 } object { Ellip_seg rotate y*45*1 } object { Ell…
葉の形状を生成します。 //********************************************************************************** #declare Grass_scale = 3;; #declare Ellip_seg = object { sphere { , Grass_length texture { Texture_grass } scale } clipped_by { pla…
葉の材質を指定します。 //********************************************************************************** #ifndef(Texture_grass) #declare Texture_grass = texture { pigment { gradient z color_map { [ 0.0 rgb ] [ 0.5 rgb ] [ 1.0 rgb ] } sc…
草の形状を生成するための、入力パラメータをチェックします。 //********************************************************************************** #ifndef(Grass_width) #declare Grass_width = 10; #end // degrees #ifndef(Grass_slop) #declare Gr…
背景の色を指定します。 //********************************************************************************** background { color rgb } //**********************************************************************************
レンダリングに必要なカメラや光源などを設定します。 //********************************************************************************** global_settings { assumed_gamma 1.0 max_trace_level 5 } camera { angle 60 location -100*z look_at 0 } l…
CSGにより生成した生えている草の画像をレンダリングします。
定義した湖面の色合いを使って、湖面を描画します。 //********************************************************************************** union { plane { y, 1 material { M_water } hollow } plane { y, 0 pigment { color rgb 1 } normal { bumps 0.…
湖面の色合いを定義します。 //********************************************************************************** #local Cv4 = ; #local Cv5 = ; #local Cv6 = ; #local Cv7 = ; #local P_water = pigment { bozo turbulence 0.65 octaves 6 omega 0.7…
月を描画します。 //********************************************************************************** #local Cv1 = ; #local Md_moon = media { emission rgb 0.03 intervals 40 samples on,1 confidence 0.9 variance 0.1 density { waves turbulenc…
霧を描画します。 //********************************************************************************** fog{ fog_type 2 fog_alt 4 fog_offset -160 distance 2 color rgbt turbulence omega 0.25 lambda 2.5 octaves 6 } //**************************…
雲を描画します。 //********************************************************************************** #local Cv1 = ; #local Cv2 = ; #local Cv3 = ; #local P_cloud = pigment { bozo turbulence 0.65 octaves 6 omega 0.7 lambda 2 color_map { [ 0…
背景の色を指定します。 //********************************************************************************** background { color rgb } //**********************************************************************************
レンダリングの環境を設定します。 //********************************************************************************** global_settings { assumed_gamma 2.2 max_trace_level 5 } camera { angle 50 location look_at } light_source { color rgb 1 f…
湖面の上にある月を、POV−Rayによりレンダリングします。
りんごの形状を向きや位置を指定して描画します。 //********************************************************************************** object { Apple_obj rotate translate } //*******************************************************************…
りんごの形状を定義します。 //********************************************************************************** #local Apple_obj = union { object { Apple_seg texture { T_apple } scale 4 } object { Apple_calyx pigment { P_calyx } translate …
りんごの材質を指定します。 //********************************************************************************** #local P_calyx = pigment { color rgbt } #local Cv1=; #local Cv2=; #local T_apple = texture { pigment { ripples turbulence 0.2 c…