#include "F1.inc" // F1 マシンの組み立て #declare MyF1 = merge { // マシン本体 merge { object { RoundBody pigment { color OrangeRed }} object { FrontLeg1(40) translate -0.3*z} object { RearLeg1 translate 0.2*z} object { RoundNose1 } object { RoundSide2 } object { FrontWing2 } object { RearWing1 } pigment { color BrightGold } } // ドライバー merge { object { Driver } object { Helmet2 } object { Shield } } } #declare EnemyA = merge { // マシン本体 merge { object { AeroBody pigment { color Black}} object { FrontLeg2(10) translate -0.3*z} object { RearLeg2 translate 0.2*z} object { AeroNoseN2 } object { AeroSide1 } object { FrontWing3 } object { RearWing2 } pigment { color Red } } // ドライバー merge { object { Driver } object { Helmet2 } object { Shield } } } // F1 マシンの配置 object { EnemyA rotate -15*y // 方向の角度 translate <-2, 0, 5> // 位置 } object { MyF1 rotate 45*y // 方向の角度 translate <2, 0, -3> // 位置 } // 座標軸 //object { Cylinder_X scale 0.02 pigment { color Red } } // x軸 //object { Cylinder_Y scale 0.02 pigment { color Green } } // y軸 //object { Cylinder_Z scale 0.02 pigment { color Blue } } // z軸 // 舞台 object { Ground } // 地面 sky_sphere {Sunset } // 空 // カメラ camera { // location +0.03*x // 右目 location -0.03*x // 左目 rotate 2*x // 上下の首振の角度(下がプラス) translate -7*z // コース中心からの距離 rotate 20*x // 上下の移動の角度(上がプラス) rotate -15*y // 左右の移動の角度(左がプラス) angle 0 // 視野 } // 照明光源 light_source { <100, 50, -100> // 光源の位置 color Orange*1.0 // 色と明るさ parallel } // 背景 background { color Orange} Balloons(30)