#include "F1.inc" // F1 マシンの組み立て #declare MyF1 = merge { // マシン本体 merge { object { AeroBody } object { FrontLeg1(0) translate -0.3*z } object { RearLeg1 translate 0.2*z} object { AeroNose3 } object { RoundSide1 } object { FrontWing3 } object { RearWing2 } pigment { color Black } } // ドライバー merge { object { Driver } object { Helmet2 } object { Shield } translate 80*y } } #declare EnemyA = merge { // マシン本体 merge { object { AeroBody } object { FrontLeg1(0) translate -0.3*z } object { RearLeg1 translate 0.2*z} object { AeroNose3 } object { RoundSide1 } object { FrontWing3 } object { RearWing2 } pigment { color Black } } // ドライバー merge { object { Driver } object { Helmet2 } object { Shield } translate <0,-0.6,-10.5> pigment { color Gray85 } } } // F1 マシンの配置 object { MyF1 rotate 0*y // 方向の角度 translate <0, 0, -5> // 位置 } object { EnemyA rotate 0*y // 方向の角度 translate <-2.3, 0, 4.5> // 位置 } object { EnemyA rotate 0*y // 方向の角度 translate <2.3, 0, 4.5> // 位置 } object { EnemyA rotate 0*y // 方向の角度 translate <-4.6, 0, 12> // 位置 } object { EnemyA rotate 0*y // 方向の角度 translate <4.6, 0, 12> // 位置 } object { EnemyA rotate 0*y // 方向の角度 translate <0, 1.5, 30> // 位置 } object { EnemyA rotate 0*y // 方向の角度 translate <-2.3, 1.5, 45> // 位置 } object { EnemyA rotate 0*y // 方向の角度 translate <2.3, 1.5, 45> // 位置 } // 座標軸(完成時に削除) /* 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 0*x // 上下の首振の角度(下がプラス) translate -14*z // コース中心からの距離 rotate 2.8*x // 上下の移動の角度(上がプラス) rotate 0*y // 左右の移動の角度(左がプラス) angle 38.5 // 視野 } // 照明光源 light_source { <50, 100, -100> // 光源の位置 color Orange*0.7 // 色と明るさ parallel } // 背景 background { color LightBlue } Balloons(80)