
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "大阪市交通局 新20系 先頭車(k)";
	PluginAuthor = "n";
	IconTexture = "icon.png";
	Description = "最高速度：70km/h(近鉄線内のみ95km/h)";
	Description = "";
	Description = "編成(2026年7月現在)";
	Description = "[21]01-18";
	Description = "[22]01-05,07-12,51-54,62,63";
	Description = "[23]01-20,56";
	Description = "[24]撤退（2022年時点で01-04,56）";
	Description = "[25]01-17";
	Description = "※全編成更新済・ナンバリング幕・LED前照灯";
	Description = "";
	Description = "転属編成データ";
	Description = "[22]606→[23]656";
	Description = "[23]606→[24]656→[23]606";
	Description = "[24]601-604→[22]651-654";
	Description = "[24]605-611→[22]655-661";
	Description = "[OTS]651→[]651→[22]662";
	Description = "[OTS]652→[]652→[22]663";
	Description = "";
	Description = "廃車済の編成";
	Description = "[22]13-19,55-61";
	Description = "[23]21,22";
	Description = "※全編成未更新";
	Description = "";
	Description = "当PIは、前頭部形状の修正やPBRスイッチ追加など部分的な修正を行ったほかは、初回公開版のモデル・定義ファイル構成を踏襲しています。";
	Description = "内外装の実車との相違点や再現していない仕様は、次回更新時に実装予定です。";
}
TrainInfo{
	FrontLimit = 9.55;
	TailLimit = -9.35;
	MaxVelocity = 95.0;
	MaxAcceleration = 2.5;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}
DefineSwitch "■基本設定"{
}
DefineSwitch "電源"{
GroupCommon = "nomtbn20電源";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "行先(往)"{
GroupCommon = "nomtbn20行先(往)";
	Entry = "自動";		//21系は幕仕様とロゴで表示する幕が変わります。
	Entry = "";
	Entry = "梅-大-国-四-南";
	Entry = "金-八-玉-森-野";
	Entry = "な-守-住-港-深";
	Entry = "千-文-西-長-今";
	Entry = "あ-都-北-駒-阿";
	Entry = "中-喜-＝-石-＝";
	Entry = "天-原-＝-コ-＝";
	Entry = "新-＝-＝-登-＝";
	Entry = "江-＝-＝-阿-＝";
	Entry = "箕";
	Entry = "";
	Entry = "回送";
	Entry = "試運転";
	Entry = "臨時";
}
DefineSwitch "行先(復)"{
GroupCommon = "nomtbn20行先(復)";
	Entry = "自動";		//24系は高速化対応有無と編成で表示する幕が変わります。
	Entry = "";
	Entry = "梅-大-国-四-南";
	Entry = "金-八-玉-森-野";
	Entry = "な-守-住-港-深";
	Entry = "千-文-西-長-今";
	Entry = "あ-都-北-駒-阿";
	Entry = "中-喜-＝-石-＝";
	Entry = "天-原-＝-コ-＝";
	Entry = "新-＝-＝-登-＝";
	Entry = "江-＝-＝-阿-＝";
	Entry = "箕";
	Entry = "";
	Entry = "回送";
	Entry = "試運転";
	Entry = "臨時";
}
DefineSwitch "■灯火類設定-"{
}
DefineSwitch "前照灯"{
GroupCommon = "nomtbn20前照灯";
	Entry = "自動";
	Entry = "入(終電)";
	Entry = "切(駅留置)";
}
DefineSwitch "尾灯"{
GroupCommon = "nomtbn20尾灯";
	Entry = "自動";
	Entry = "入(入替・駅留置)";
	Entry = "切";
}

DefineSwitch "運転室灯（自車）"{
	Entry = "自動(ツーマン)";
	Entry = "切(ワンマン・けいはんな線走行時)";
	Entry = "入";
}
DefineSwitch "遮光幕（自車）"{
	Entry = "自動";		//進行方向時に閉
	Entry = "開";
	Entry = "閉";
}
DefineSwitch "客室照明"{
GroupCommon = "nomtbn20客室灯";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "レンズフレア"{
GroupCommon = "nomtbn20LF";
	Entry = "入";
	Entry = "入(前照灯のみ)";
	Entry = "入(尾灯のみ)";
	Entry = "切";
}
DefineSwitch "■車両設定"{
}
DefineSwitch "編成"{
GroupCommon = "nomtbn20編成";
	Entry = "01";	
	Entry = "02";
	Entry = "03";
	Entry = "04";
	Entry = "05";
	Entry = "06";
	Entry = "07";
	Entry = "08";
	Entry = "09";
	Entry = "10";
	Entry = "11";	//24系ここまで
	Entry = "12";
	Entry = "13";
	Entry = "14";
	Entry = "15";
	Entry = "16";
	Entry = "17";	//25系ここまで
	Entry = "18";	//21系ここまで
	Entry = "19";	//22系直接投入車ここまで
	Entry = "20";
	Entry = "21";
	Entry = "22";	//23系ここまで
	Entry = "51";	//22系転属車ここから
	Entry = "52";
	Entry = "53";
	Entry = "54";
	Entry = "55";
	Entry = "56";	//23系(元22606F)・24系(元23606F・後に出戻り)
	Entry = "57";
	Entry = "58";
	Entry = "59";
	Entry = "60";
	Entry = "61";
	Entry = "62";	//OTS
	Entry = "63";	//OTS	22系転属車ここまで
}

DefineSwitch "帯"{
GroupCommon = "nomtbn20帯";
	Entry = "21系(御堂筋線)";
	Entry = "22系(谷町線)";
	Entry = "23系(四つ橋線)";
	Entry = "24系(中央線)";
	Entry = "25系(千日前線)";
}
DefineSwitch "連結位置"{
	Entry = "1両目(江坂/八尾南/西梅田/ｺｽﾓｽｸｴｱ/南巽方)";	//2600
	Entry = "4/5/6/9/10両目(反転)";				//2900
}
DefineSwitch "リニューアル"{
GroupCommon = "nomtbn20リニューアル";
	Entry = "施工済";
	Entry = "未施工";
}

DefineSwitch "■仕様設定(細部)"{
}
DefineSwitch "幕仕様-編成全体"{
GroupCommon = "nomtbn20幕仕様";
	Entry = "駅ナンバリング追加";
	Entry = "小文字";
	Entry = "登場時";
}
DefineSwitch "転落防止幌"{
GroupCommon = "nomtbn20転落防止幌";
	Entry = "有(2000〜)";
	Entry = "無";
	Entry = "無(中間車間)";
}
DefineSwitch "ロゴ"{
GroupCommon = "nomtbn20ロゴ";
	Entry = "Osaka Metro(2018.4.1〜)";
	Entry = "大阪市交通局";	
}
DefineSwitch "ベビーカーマーク"{
GroupCommon = "nomtbn20ベビーカーマーク";
	Entry = "有(2014〜)";
	Entry = "無";
}
DefineSwitch "側面幕板部車番"{
GroupCommon = "nomtbn20側面幕板部車番";
	Entry = "自動";	
	Entry = "無(一部編成)";
}
DefineSwitch "前照灯仕様"{			
GroupCommon = "nomtbn20前照灯仕様";
	Entry = "更新";	
	Entry = "原型";	
}
DefineSwitch "車外ステッカー広告"{			
GroupCommon = "nomtbn20車外ステッカー広告";
	Entry = "無";	
	Entry = "1(現行サイズ・2024?〜)";
	Entry = "2(旧サイズ)";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
}
DefineSwitch "■質感設定"{
}
DefineSwitch "簡易影"{
	GroupCommon = "nomtbn20簡易陰";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "PBR"{
	GroupCommon = "nomtbn208000pbr";
	Entry = "入";
	Entry = "切";
}

PrimaryAssembly{

/*---------------------------------------車輪定義ここから---------------------------------------*/

	Axle "wheel1"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		ApplySwitch "PBR"{
		Case 0:
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "../n_omtbn20_1/tex/車体2.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/yo.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/車体2.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/yo.png";
			ChangeTexture = 2, "", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/ho.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
		}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (7.3,0.43);
	}
	Axle "wheel2"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		ApplySwitch "PBR"{
		Case 0:
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "../n_omtbn20_1/tex/車体2.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/yo.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/車体2.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/yo.png";
			ChangeTexture = 2, "", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/ho.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
		}

		Diameter = 0.86;
		Symmetric = 16;
		Coord = (5.1,0.43);
	}
	Axle "wheel3"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		ApplySwitch "PBR"{
		Case 0:
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "../n_omtbn20_1/tex/車体2.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/yo.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/車体2.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/yo.png";
			ChangeTexture = 2, "", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/ho.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
		}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-5.1,0.43);
	}
	Axle "wheel4"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		ApplySwitch "PBR"{
		Case 0:
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "../n_omtbn20_1/tex/車体2.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/yo.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/車体2.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/yo.png";
			ChangeTexture = 2, "", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/ho.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
		}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-7.3,0.43);
	}
/*---------------------------------------車輪定義ここまで---------------------------------------*/

/*---------------------------------------台車定義ここから---------------------------------------*/
	Body "Bogie1"{
		ModelFileName = "bogie_t.x";
		ApplySwitch "帯"{
		Case 1,2,3:
			ApplySwitch "連結位置"{
			Case 0:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		Case 4:
			ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
		}
		JointZY "wheel1"{
			AttachCoord = (0,0);
			LocalCoord = (1.1, 0.0);
		}
		JointZY "wheel2"{
			AttachCoord = (0,0);
			LocalCoord = (-1.1, 0.0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "bogie_t.x";
		ApplySwitch "帯"{
		Case 1,2,3:
			ApplySwitch "連結位置"{
			Case 0:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		Case 4:
			ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
		}
		JointZY "wheel3"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (1.1, 0.0);
		}
		JointZY "wheel4"{
			AttachCoord = (0,0);
			LocalCoord = (-1.1, 0.0);
		}
	}
/*---------------------------------------台車定義ここまで---------------------------------------*/

/*---------------------------------------ダミー車体定義ここから---------------------------------------*/
	Body "Dummy"{
		ModelFileName = "";
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (6.2, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (-6.2, 1.0);
		}
	}
/*---------------------------------------ダミー車体定義ここまで---------------------------------------*/

/*---------------------------------------内装定義ここから---------------------------------------*/
	Object3D "Interior"{
		ModelFileName = "in_20900.x";
		NoCastShadow = 16;
		If !"電源"{
			If !"客室照明"{
				ChangeMaterial{
					MaterialID = 0,1,2,3,4,5,6;
					Emissive = 1.0, 1.0, 1.0;
　　　　　	　　		}
			}
			If "運転室灯（自車）"==2 || ("運転室灯（自車）"==0 && "_FRONT"){
				ChangeMaterial{
					MaterialID = 7,8,9,10,11,12,13;
					Emissive = 1.0, 1.0, 1.0;
　　　　　	　　		}
			}
		}
		If ("遮光幕（自車）"==0 && !"_FRONT")||"遮光幕（自車）"==2{
			ShiftTexture = 14, 0.25, 0.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------内装定義ここまで---------------------------------------*/

/*---------------------------------------車内扉モデル定義ここから---------------------------------------*/


	Object3D "Doorll_i"{
		ModelFileName = "../n_omtbn20_1/doorill.x";
		NoCastShadow = 3,4,5;
		If !"電源"&&!"客室照明"{
			ChangeMaterial{
				MaterialID = 0,1,5,7;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		If "_DOOR1"{
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.3;
				PreReverseDelay = 2.2;
				ReverseTime = 0.3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorlr_i"{
		ModelFileName = "../n_omtbn20_1/doorilr.x";
		NoCastShadow = 3,4,5;
		If !"電源"&&!"客室照明"{
			ChangeMaterial{
				MaterialID = 0,1,5,7;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		If "_DOOR1" {
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.3;
				 PreReverseDelay = 2.2;
				ReverseTime = 0.3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl_i"{
		ModelFileName = "../n_omtbn20_1/doorirl.x";
		NoCastShadow = 3,4,5;
		If !"電源"&&!"客室照明"{
			ChangeMaterial{
				MaterialID = 0,1,5,7;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		If "_DOOR2"{
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.3;
				 PreReverseDelay = 2.2;
				ReverseTime = 0.3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrr_i"{
		ModelFileName = "../n_omtbn20_1/doorirr.x";
		NoCastShadow = 3,4,5;
		If !"電源"&&!"客室照明"{
			ChangeMaterial{
				MaterialID = 0,1,5,7;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		If "_DOOR2"{
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 2.7;
				AnimationTime = 0.3;
				 PreReverseDelay = 2.2;
				ReverseTime = 0.3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

/*---------------------------------------車内扉モデル定義ここまで---------------------------------------*/

/*---------------------------------------車体モデル定義ここから---------------------------------------*/
	Object3D "MainBody"{
		ModelFileName = "body_20900.x";
		NoCastShadow = 30;
		If !"電源"{
			If ("前照灯"==0 && !"_FRONT")||"前照灯"==1{
				ChangeAlpha = 1,1.0;
				NoShadow = 0,1;
　　　　　	　　	}
			If ("尾灯"==0 && "_FRONT"&&!"_CONNECT1")||"尾灯"==1{
				ChangeMaterial{
					MaterialID = 4;
					Emissive = 1.0, 1.0, 1.0;
　　　　　	　　		}
				NoReceiveShadow = 4;
				ShiftTexture = 4, 0.0, -0.03125;
			}
			If !"客室照明"{
				ChangeMaterial{
					MaterialID = 28;
					Emissive = 1.0, 1.0, 1.0;
　　　　　	　　		}
			}
		}
		ApplySwitch "帯"{
		Case 1:
			ChangeTexture = 5, "tex/body_22900.png";
			ChangeTexture = 6, "tex/body_22900.png";
			ChangeTexture = 7, "tex/body_22900.png";
		Case 2:
			ChangeTexture = 5, "tex/body_23900.png";
			ChangeTexture = 6, "tex/body_23900.png";
			ChangeTexture = 7, "tex/body_23900.png";
		Case 3:
			If "編成">=33{
				ChangeTexture = 5, "tex/body_900.png";
				ChangeTexture = 6, "tex/body_900.png";
				ChangeTexture = 7, "tex/body_900.png";
				ChangeTexture = 8, "tex/face1.png";
			}Else{
				ChangeTexture = 5, "tex/body_24900.png";
				ChangeTexture = 6, "tex/body_24900.png";
				ChangeTexture = 7, "tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 5, "tex/body_25900.png";
			ChangeTexture = 6, "tex/body_25900.png";
			ChangeTexture = 7, "tex/body_25900.png";
		}
		If !"リニューアル"{
			ApplySwitch "連結位置"{
			Case 0:
				ApplySwitch "帯"{
				Case 0:
					ShiftTexture = 7, -0.0625, 0.0;
				Case 1,4:
					ShiftTexture = 7, -0.625, 0.0;
				Case 2,3:
					ShiftTexture = 7, -0.3125, 0.0;
				}
			Case 1:
				ApplySwitch "帯"{
				Case 0,2,3:
					ShiftTexture = 7, -0.625, 0.0;
				Case 1:
					ShiftTexture = 7, -0.3125, 0.0;
				Case 4:
					ShiftTexture = 7, -0.4375, 0.0;
				}
			}
			ShiftTexture = 6, 0.0, 0.5625;
		}
		If !"前照灯仕様"{
			ShiftTexture = 0, 0.0, -0.25;
			ShiftTexture = 1, 0.0, -0.25;
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 3,5,6,7,8,10,11,12,31;
			BumpMap = 3,5,6,7,8,10,11,12,31;
			ChangeTexture = 3, "../n_omtbn20_1/tex/body_21900.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			ChangeTexture = 10, "../n_omtbn20_1/tex/妻面_0.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/妻面_0o.png";
			ChangeTexture = 11, "../n_omtbn20_1/tex/車内_101.png", "../n_omtbn20_1/tex/車内_101n.png", "../n_omtbn20_1/tex/車内_101o.png";
			ChangeTexture = 12, "../n_omtbn20_1/tex/車外手すりm.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/ho.png";
			ChangeTexture = 31, "../n_omtbn20_1/tex/妻面_0.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/妻面_0o.png";
			ChangeTexture = 8, "../n_omtbn20_1/tex/face0.png", "../n_omtbn20_1/tex/face0n.png", "../n_omtbn20_1/tex/face0o.png";
			ChangeMaterial{
				MaterialID = 3,5,6,7,10,11,31;
			//	Diffuse = 0.9, 0.9, 0.9, 1.0;
			//	Ambient = 0.8, 0.81, 0.82;
			//	Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 12;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.9, 0.9, 0.9;
				Specular = 0.9, 0.9, 0.9;
				Power = 2.0;
　　　　	　	}
			ApplySwitch "帯"{
			Case 0:
				ChangeTexture = 5, "../n_omtbn20_1/tex/body_21900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				ChangeTexture = 6, "../n_omtbn20_1/tex/body_21900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				ChangeTexture = 7, "../n_omtbn20_1/tex/body_21900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 1:
				ChangeTexture = 5, "../n_omtbn20_1/tex/body_22900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				ChangeTexture = 6, "../n_omtbn20_1/tex/body_22900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				ChangeTexture = 7, "../n_omtbn20_1/tex/body_22900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 2:
				ChangeTexture = 5, "../n_omtbn20_1/tex/body_23900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				ChangeTexture = 6, "../n_omtbn20_1/tex/body_23900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				ChangeTexture = 7, "../n_omtbn20_1/tex/body_23900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 3:
				If "編成">=33{
					ChangeTexture = 5, "../n_omtbn20_1/tex/body_900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/body_900o.jpg";
					ChangeTexture = 6, "../n_omtbn20_1/tex/body_900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/body_900o.jpg";
					ChangeTexture = 7, "../n_omtbn20_1/tex/body_900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/body_900o.jpg";
					ChangeTexture = 8, "../n_omtbn20_1/tex/face1.png", "../n_omtbn20_1/tex/face0n.png", "../n_omtbn20_1/tex/face0o.png";
				}Else{
					ChangeTexture = 5, "../n_omtbn20_1/tex/body_24900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
					ChangeTexture = 6, "../n_omtbn20_1/tex/body_24900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
					ChangeTexture = 7, "../n_omtbn20_1/tex/body_24900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				}
			Case 4:
				ChangeTexture = 5, "../n_omtbn20_1/tex/body_25900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				ChangeTexture = 6, "../n_omtbn20_1/tex/body_25900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				ChangeTexture = 7, "../n_omtbn20_1/tex/body_25900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------車体モデル定義ここまで---------------------------------------*/


/*---------------------------------------車外扉モデル定義ここから---------------------------------------*/
	Object3D "Doorll"{
		ModelFileName = "Doorll.x";
		NoCastShadow = 1;
		ApplySwitch "帯"{
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			If "編成">=33{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_900.png";
			}Else{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900.png";
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0,1;
			BumpMap = 0,1;
			ChangeTexture = 1, "../n_omtbn20_1/tex/window.png", "../n_omtbn20_1/tex/windown.png", "../n_omtbn20_1/tex/windowo.png";
			ChangeMaterial{
				MaterialID = 0;
			//	Diffuse = 0.9, 0.9, 0.9, 1.0;
			//	Ambient = 0.8, 0.81, 0.82;
			//	Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 1.0;
　　　　　		}
			ApplySwitch "帯"{
			Case 0:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 1:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 2:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 3:
				If "編成">=33{
					ChangeTexture = 0, "../n_omtbn20_1/tex/body_900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/body_900o.jpg";
				}Else{
					ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				}
			Case 4:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			}
		}
		Joint3D "Doorll_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorlr"{
		ModelFileName = "Doorlr.x";
		NoCastShadow = 1;
		ApplySwitch "帯"{
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			If "編成">=33{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_900.png";
			}Else{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900.png";
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0,1;
			BumpMap = 0,1;
			ChangeTexture = 1, "../n_omtbn20_1/tex/window.png", "../n_omtbn20_1/tex/windown.png", "../n_omtbn20_1/tex/windowo.png";
			ChangeMaterial{
				MaterialID = 0;
			//	Diffuse = 0.9, 0.9, 0.9, 1.0;
			//	Ambient = 0.8, 0.81, 0.82;
			//	Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 1.0;
　　　　　		}
			ApplySwitch "帯"{
			Case 0:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 1:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 2:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 3:
				If "編成">=33{
					ChangeTexture = 0, "../n_omtbn20_1/tex/body_900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/body_900o.jpg";
				}Else{
					ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				}
			Case 4:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			}
		}
		Joint3D "Doorlr_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "Doorrl.x";
		NoCastShadow = 1;
		ApplySwitch "帯"{
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			If "編成">=33{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_900.png";
			}Else{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900.png";
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0,1;
			BumpMap = 0,1;
			ChangeTexture = 1, "../n_omtbn20_1/tex/window.png", "../n_omtbn20_1/tex/windown.png", "../n_omtbn20_1/tex/windowo.png";
			ChangeMaterial{
				MaterialID = 0;
			//	Diffuse = 0.9, 0.9, 0.9, 1.0;
			//	Ambient = 0.8, 0.81, 0.82;
			//	Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 1.0;
　　　　　		}
			ApplySwitch "帯"{
			Case 0:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 1:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 2:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 3:
				If "編成">=33{
					ChangeTexture = 0, "../n_omtbn20_1/tex/body_900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/body_900o.jpg";
				}Else{
					ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				}
			Case 4:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			}
		}
		Joint3D "Doorrl_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrr"{
		ModelFileName = "Doorrr.x";
		NoCastShadow = 1;
		ApplySwitch "帯"{
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			If "編成">=33{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_900.png";
			}Else{
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900.png";
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0,1;
			BumpMap = 0,1;
			ChangeTexture = 1, "../n_omtbn20_1/tex/window.png", "../n_omtbn20_1/tex/windown.png", "../n_omtbn20_1/tex/windowo.png";
			ChangeMaterial{
				MaterialID = 0;
			//	Diffuse = 0.9, 0.9, 0.9, 1.0;
			//	Ambient = 0.8, 0.81, 0.82;
			//	Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 1.0;
　　　　　		}
			ApplySwitch "帯"{
			Case 0:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 1:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 2:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			Case 3:
				If "編成">=33{
					ChangeTexture = 0, "../n_omtbn20_1/tex/body_900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/body_900o.jpg";
				}Else{
					ChangeTexture = 0, "../n_omtbn20_1/tex/body_24900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
				}
			Case 4:
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_25900m.png", "../n_omtbn20_1/tex/bodyn.png", "../n_omtbn20_1/tex/bodyo.jpg";
			}
		}
		Joint3D "Doorrr_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------車外扉モデル定義ここまで---------------------------------------*/

/*---------------------------------------側面幕定義ここから---------------------------------------*/

	Object3D "roll"{
		ModelFileName = "roll_f.x";
		ApplySwitch "帯"{
		Case 0:
			If( !"_FRONT" && !"連結位置" )||( "_FRONT" && "連結位置" ){
				ApplySwitch "行先(往)"{
				Case 0:
					If !"幕仕様-編成全体"&&!"ロゴ"{
						ShiftTexture = 0, 0.5, -0.4375;
						ShiftTexture = 1, 0.5, -0.4375;
						ShiftTexture = 2, 0.5, -0.46484375;
					}Else{
						ShiftTexture = 0, 0.0, -0.4375;
						ShiftTexture = 1, 0.0, -0.4375;
						ShiftTexture = 2, 0.0, -0.46484375;
					}
				Case 2:
					ShiftTexture = 0, -0.25, -0.4375;
					ShiftTexture = 1, -0.25, -0.4375;
					ShiftTexture = 2, -0.25, -0.46484375;
				Case 3:
					ShiftTexture = 0, -0.25, -0.375;
					ShiftTexture = 1, -0.25, -0.375;
					ShiftTexture = 2, -0.25, -0.3984375;
				Case 4:
					ShiftTexture = 0, -0.25, -0.3125;
					ShiftTexture = 1, -0.25, -0.3125;
					ShiftTexture = 2, -0.25, -0.33203125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.4375;
					ShiftTexture = 1, 0.0, -0.4375;
					ShiftTexture = 2, 0.0, -0.46484375;
				Case 6:
					ShiftTexture = 0, 0.0, -0.375;
					ShiftTexture = 1, 0.0, -0.375;
					ShiftTexture = 2, 0.0, -0.3984375;
				Case 7:
					ShiftTexture = 0, 0.0, -0.3125;
					ShiftTexture = 1, 0.0, -0.3125;
					ShiftTexture = 2, 0.0, -0.33203125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.4375;
					ShiftTexture = 1, 0.25, -0.4375;
					ShiftTexture = 2, 0.25, -0.46484375;
				Case 9:
					ShiftTexture = 0, 0.25, -0.375;
					ShiftTexture = 1, 0.25, -0.375;
					ShiftTexture = 2, 0.25, -0.3984375;
				Case 10:
					ShiftTexture = 0, 0.25, -0.3125;
					ShiftTexture = 1, 0.25, -0.3125;
					ShiftTexture = 2, 0.25, -0.33203125;
				Case 11:
					If "幕仕様-編成全体"!=1{
						ShiftTexture = 0, 0.5, -0.4375;
						ShiftTexture = 1, 0.5, -0.4375;
						ShiftTexture = 2, 0.5, -0.46484375;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
						ShiftTexture = 2, 0.5, 0.5;
					}
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.265625;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
					ShiftTexture = 2, 0.5, 0.33203125;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.3984375;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
					ShiftTexture = 2, 0.5, 0.46484375;
				}
			}Else{
				ApplySwitch "行先(復)"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.4375;
					ShiftTexture = 1, -0.25, -0.4375;
					ShiftTexture = 2, -0.25, -0.46484375;
				Case 3:
					ShiftTexture = 0, -0.25, -0.375;
					ShiftTexture = 1, -0.25, -0.375;
					ShiftTexture = 2, -0.25, -0.3984375;
				Case 0,4:
					ShiftTexture = 0, -0.25, -0.3125;
					ShiftTexture = 1, -0.25, -0.3125;
					ShiftTexture = 2, -0.25, -0.33203125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.4375;
					ShiftTexture = 1, 0.0, -0.4375;
					ShiftTexture = 2, 0.0, -0.46484375;
				Case 6:
					ShiftTexture = 0, 0.0, -0.375;
					ShiftTexture = 1, 0.0, -0.375;
					ShiftTexture = 2, 0.0, -0.3984375;
				Case 7:
					ShiftTexture = 0, 0.0, -0.3125;
					ShiftTexture = 1, 0.0, -0.3125;
					ShiftTexture = 2, 0.0, -0.33203125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.4375;
					ShiftTexture = 1, 0.25, -0.4375;
					ShiftTexture = 2, 0.25, -0.46484375;
				Case 9:
					ShiftTexture = 0, 0.25, -0.375;
					ShiftTexture = 1, 0.25, -0.375;
					ShiftTexture = 2, 0.25, -0.3984375;
				Case 10:
					ShiftTexture = 0, 0.25, -0.3125;
					ShiftTexture = 1, 0.25, -0.3125;
					ShiftTexture = 2, 0.25, -0.33203125;
				Case 11:
					If "幕仕様-編成全体"!=1{
						ShiftTexture = 0, 0.5, -0.4375;
						ShiftTexture = 1, 0.5, -0.4375;
						ShiftTexture = 2, 0.5, -0.46484375;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
						ShiftTexture = 2, 0.5, 0.46484375;
					}
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.265625;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
					ShiftTexture = 2, 0.5, 0.33203125;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.3984375;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
					ShiftTexture = 2, 0.5, 0.46484375;
				}
			}
		Case 1:
			If( !"_FRONT" && !"連結位置" )||( "_FRONT" && "連結位置" ){
				ApplySwitch "行先(往)"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.25;
					ShiftTexture = 1, -0.25, -0.25;
					ShiftTexture = 2, -0.25, -0.265625;
				Case 0,3:
					ShiftTexture = 0, -0.25, -0.1875;
					ShiftTexture = 1, -0.25, -0.1875;
					ShiftTexture = 2, -0.25, -0.19921875;
				Case 4:
					ShiftTexture = 0, -0.25, -0.125;
					ShiftTexture = 1, -0.25, -0.125;
					ShiftTexture = 2, -0.25, -0.1328125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.25;
					ShiftTexture = 1, 0.0, -0.25;
					ShiftTexture = 2, 0.0, -0.265625;
				Case 6:
					ShiftTexture = 0, 0.0, -0.1875;
					ShiftTexture = 1, 0.0, -0.1875;
					ShiftTexture = 2, 0.0, -0.19921875;
				Case 7:
					ShiftTexture = 0, 0.0, -0.125;
					ShiftTexture = 1, 0.0, -0.125;
					ShiftTexture = 2, 0.0, -0.1328125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.25;
					ShiftTexture = 1, 0.25, -0.25;
					ShiftTexture = 2, 0.25, -0.265625;
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.265625;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
					ShiftTexture = 2, 0.5, 0.33203125;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.3984375;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
					ShiftTexture = 2, 0.5, 0.46484375;
				}
			}Else{
				ApplySwitch "行先(復)"{
				Case 0,2:
					ShiftTexture = 0, -0.25, -0.25;
					ShiftTexture = 1, -0.25, -0.25;
					ShiftTexture = 2, -0.25, -0.265625;
				Case 3:
					ShiftTexture = 0, -0.25, -0.1875;
					ShiftTexture = 1, -0.25, -0.1875;
					ShiftTexture = 2, -0.25, -0.19921875;
				Case 4:
					ShiftTexture = 0, -0.25, -0.125;
					ShiftTexture = 1, -0.25, -0.125;
					ShiftTexture = 2, -0.25, -0.1328125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.25;
					ShiftTexture = 1, 0.0, -0.25;
					ShiftTexture = 2, 0.0, -0.265625;
				Case 6:
					ShiftTexture = 0, 0.0, -0.1875;
					ShiftTexture = 1, 0.0, -0.1875;
					ShiftTexture = 2, 0.0, -0.19921875;
				Case 7:
					ShiftTexture = 0, 0.0, -0.125;
					ShiftTexture = 1, 0.0, -0.125;
					ShiftTexture = 2, 0.0, -0.1328125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.25;
					ShiftTexture = 1, 0.25, -0.25;
					ShiftTexture = 2, 0.25, -0.265625;
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.265625;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
					ShiftTexture = 2, 0.5, 0.33203125;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.3984375;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
					ShiftTexture = 2, 0.5, 0.46484375;
				}
			}
		Case 2:
			If( !"_FRONT" && !"連結位置" )||( "_FRONT" && "連結位置" ){
				ApplySwitch "行先(往)"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.0625;
					ShiftTexture = 1, -0.25, -0.0625;
					ShiftTexture = 2, -0.25, -0.06640625;
				Case 3:
					ShiftTexture = 0, -0.25, 0.0;
					ShiftTexture = 1, -0.25, 0.0;
					ShiftTexture = 2, -0.25, 0.0;
				Case 4:
					ShiftTexture = 0, -0.25, 0.0625;
					ShiftTexture = 1, -0.25, 0.0625;
					ShiftTexture = 2, -0.25, 0.06640625;
				Case 0,5:
					ShiftTexture = 0, 0.0, -0.0625;
					ShiftTexture = 1, 0.0, -0.0625;
					ShiftTexture = 2, 0.0, -0.06640625;
				Case 6:
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.265625;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
					ShiftTexture = 2, 0.5, 0.33203125;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.3984375;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
					ShiftTexture = 2, 0.5, 0.46484375;
				}
			}Else{
				ApplySwitch "行先(復)"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.0625;
					ShiftTexture = 1, -0.25, -0.0625;
					ShiftTexture = 2, -0.25, -0.06640625;
				Case 3:
					ShiftTexture = 0, -0.25, 0.0;
					ShiftTexture = 1, -0.25, 0.0;
					ShiftTexture = 2, -0.25, 0.0;
				Case 0,4:
					ShiftTexture = 0, -0.25, 0.0625;
					ShiftTexture = 1, -0.25, 0.0625;
					ShiftTexture = 2, -0.25, 0.06640625;
				Case 5:
					ShiftTexture = 0, 0.0, -0.0625;
					ShiftTexture = 1, 0.0, -0.0625;
					ShiftTexture = 2, 0.0, -0.06640625;
				Case 6:
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.265625;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
					ShiftTexture = 2, 0.5, 0.33203125;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.3984375;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
					ShiftTexture = 2, 0.5, 0.46484375;
				}
			}
		Case 3:
			If( !"_FRONT" && !"連結位置" )||( "_FRONT" && "連結位置" ){
				ApplySwitch "行先(往)"{
				Case 0:
					ShiftTexture = 0, 0.25, 0.125;
					ShiftTexture = 1, 0.25, 0.125;
					ShiftTexture = 2, 0.25, 0.1328125;
				Case 2:
					ShiftTexture = 0, -0.25, 0.125;
					ShiftTexture = 1, -0.25, 0.125;
					ShiftTexture = 2, -0.25, 0.1328125;
				Case 3:
					ShiftTexture = 0, -0.25, 0.1875;
					ShiftTexture = 1, -0.25, 0.1875;
					ShiftTexture = 2, -0.25, 0.19921875;
				Case 4:
					ShiftTexture = 0, -0.25, 0.25;
					ShiftTexture = 1, -0.25, 0.25;
					ShiftTexture = 2, -0.25, 0.265625;
				Case 5:
					ShiftTexture = 0, 0.0, 0.125;
					ShiftTexture = 1, 0.0, 0.125;
					ShiftTexture = 2, 0.0, 0.1328125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.1875;
					ShiftTexture = 1, 0.0, 0.1875;
					ShiftTexture = 2, 0.0, 0.19921875;
				Case 7:
					ShiftTexture = 0, 0.0, 0.25;
					ShiftTexture = 1, 0.0, 0.25;
					ShiftTexture = 2, 0.0, 0.265625;
				Case 8:
					ShiftTexture = 0, 0.25, 0.125;
					ShiftTexture = 1, 0.25, 0.125;
					ShiftTexture = 2, 0.25, 0.1328125;
				Case 9:
					If "幕仕様-編成全体"<2{
						ShiftTexture = 0, 0.25, 0.1875;
						ShiftTexture = 1, 0.25, 0.1875;
						ShiftTexture = 2, 0.25, 0.19921875;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
						ShiftTexture = 2, 0.5, 0.46484375;
					}
				Case 10:
					If "幕仕様-編成全体"<2{
						ShiftTexture = 0, 0.25, 0.25;
						ShiftTexture = 1, 0.25, 0.25;
						ShiftTexture = 2, 0.25, 0.265625;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
						ShiftTexture = 2, 0.5, 0.46484375;
					}
				Case 11:
					If "幕仕様-編成全体"!=1{
						ShiftTexture = 0, 0.5, 0.125;
						ShiftTexture = 1, 0.5, 0.125;
						ShiftTexture = 2, 0.5, 0.1328125;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
						ShiftTexture = 2, 0.5, 0.46484375;
					}
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.265625;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
					ShiftTexture = 2, 0.5, 0.33203125;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.3984375;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
					ShiftTexture = 2, 0.5, 0.46484375;
				}
			}Else{
				ApplySwitch "行先(復)"{
				Case 0:
					If "編成"<4||"編成"==27{
						ShiftTexture = 0, 0.25, 0.1875;
						ShiftTexture = 1, 0.25, 0.1875;
						ShiftTexture = 2, 0.25, 0.19921875;
					}Else{
						ShiftTexture = 0, 0.0, 0.1875;
						ShiftTexture = 1, 0.0, 0.1875;
						ShiftTexture = 2, 0.0, 0.19921875;
					}
				Case 2:
					ShiftTexture = 0, -0.25, 0.125;
					ShiftTexture = 1, -0.25, 0.125;
					ShiftTexture = 2, -0.25, 0.1328125;
				Case 3:
					ShiftTexture = 0, -0.25, 0.1875;
					ShiftTexture = 1, -0.25, 0.1875;
					ShiftTexture = 2, -0.25, 0.19921875;
				Case 4:
					ShiftTexture = 0, -0.25, 0.25;
					ShiftTexture = 1, -0.25, 0.25;
					ShiftTexture = 2, -0.25, 0.265625;
				Case 5:
					ShiftTexture = 0, 0.0, 0.125;
					ShiftTexture = 1, 0.0, 0.125;
					ShiftTexture = 2, 0.0, 0.1328125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.1875;
					ShiftTexture = 1, 0.0, 0.1875;
					ShiftTexture = 2, 0.0, 0.19921875;
				Case 7:
					ShiftTexture = 0, 0.0, 0.25;
					ShiftTexture = 1, 0.0, 0.25;
					ShiftTexture = 2, 0.0, 0.265625;
				Case 8:
					ShiftTexture = 0, 0.25, 0.125;
					ShiftTexture = 1, 0.25, 0.125;
					ShiftTexture = 2, 0.25, 0.1328125;
				Case 9:
					If "幕仕様-編成全体"<2{
						ShiftTexture = 0, 0.25, 0.1875;
						ShiftTexture = 1, 0.25, 0.1875;
						ShiftTexture = 2, 0.25, 0.19921875;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
						ShiftTexture = 2, 0.5, 0.46484375;
					}
				Case 10:
					If "幕仕様-編成全体"<2{
						ShiftTexture = 0, 0.25, 0.25;
						ShiftTexture = 1, 0.25, 0.25;
						ShiftTexture = 2, 0.25, 0.265625;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
						ShiftTexture = 2, 0.5, 0.46484375;
					}
				Case 11:
					If "幕仕様-編成全体"!=1{
						ShiftTexture = 0, 0.5, 0.125;
						ShiftTexture = 1, 0.5, 0.125;
						ShiftTexture = 2, 0.5, 0.1328125;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
						ShiftTexture = 2, 0.5, 0.46484375;
					}
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.265625;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
					ShiftTexture = 2, 0.5, 0.33203125;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.3984375;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
					ShiftTexture = 2, 0.5, 0.46484375;
				}
			}
		Case 4:
			If( !"_FRONT" && !"連結位置" )||( "_FRONT" && "連結位置" ){
				ApplySwitch "行先(往)"{
				Case 0,2:
					ShiftTexture = 0, -0.25, 0.3125;
					ShiftTexture = 1, -0.25, 0.3125;
					ShiftTexture = 2, -0.25, 0.33203125;
				Case 3:
					ShiftTexture = 0, -0.25, 0.375;
					ShiftTexture = 1, -0.25, 0.375;
					ShiftTexture = 2, -0.25, 0.3984375;
				Case 4:
					ShiftTexture = 0, -0.25, 0.4375;
					ShiftTexture = 1, -0.25, 0.4375;
					ShiftTexture = 2, -0.25, 0.46484375;
				Case 5:
					ShiftTexture = 0, 0.0, 0.3125;
					ShiftTexture = 1, 0.0, 0.3125;
					ShiftTexture = 2, 0.0, 0.33203125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.375;
					ShiftTexture = 1, 0.0, 0.375;
					ShiftTexture = 2, 0.0, 0.3984375;
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.265625;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
					ShiftTexture = 2, 0.5, 0.33203125;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.3984375;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
					ShiftTexture = 2, 0.5, 0.46484375;
				}
			}Else{
				ApplySwitch "行先(復)"{
				Case 2:
					ShiftTexture = 0, -0.25, 0.3125;
					ShiftTexture = 1, -0.25, 0.3125;
					ShiftTexture = 2, -0.25, 0.33203125;
				Case 0,3:
					ShiftTexture = 0, -0.25, 0.375;
					ShiftTexture = 1, -0.25, 0.375;
					ShiftTexture = 2, -0.25, 0.3984375;
				Case 4:
					ShiftTexture = 0, -0.25, 0.4375;
					ShiftTexture = 1, -0.25, 0.4375;
					ShiftTexture = 2, -0.25, 0.46484375;
				Case 5:
					ShiftTexture = 0, 0.0, 0.3125;
					ShiftTexture = 1, 0.0, 0.3125;
					ShiftTexture = 2, 0.0, 0.33203125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.375;
					ShiftTexture = 1, 0.0, 0.375;
					ShiftTexture = 2, 0.0, 0.3984375;
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.265625;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
					ShiftTexture = 2, 0.5, 0.33203125;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
					ShiftTexture = 2, 0.5, 0.3984375;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
					ShiftTexture = 2, 0.5, 0.46484375;
				}
			}
		}
		ApplySwitch "幕仕様-編成全体"{
		Case 0:
			ChangeTexture = 0, "tex/roll_7.png";
			ChangeTexture = 1, "tex/roll_7.png";
			ChangeTexture = 2, "tex/roll_1.png";
		Case 1:
			ChangeTexture = 0, "tex/roll_6.png";
			ChangeTexture = 1, "tex/roll_6.png";
			ChangeTexture = 2, "tex/roll_1.png";
		Case 2:
			ChangeTexture = 0, "tex/roll_5.png";
			ChangeTexture = 1, "tex/roll_5.png";
			ChangeTexture = 2, "tex/roll_0.png";
		}
		If !"電源"{
			ChangeMaterial{
				MaterialID = 0,1,2;
				Emissive = 1.0, 1.0, 1.0;
　　　			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------側面幕定義ここまで---------------------------------------*/

/*---------------------------------------前マーク定義ここから---------------------------------------*/

	Object3D "mark_f"{
		ModelFileName = "mark_vvvf.x";
		CastShadow = no;
		If "帯"==3 && "編成">=33{
			If !"ロゴ" {
				ChangeModel = "mark_ots_f.x", 1.0;
			}Else{
				ChangeModel = "mark_vvvf_ots.x", 1.0;
			}
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0;
			BumpMap = 0;
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------前マーク定義ここまで---------------------------------------*/

/*---------------------------------------側マーク定義ここから---------------------------------------*/

	Object3D "mark_s"{
		ModelFileName = "mark_om.x";
		CastShadow = no;
		If !"ロゴ"{
			If "帯"==3 && "編成">=33{
				ChangeModel = "mark_ots_s.x", 1.0;
			}
		}Else{
			ApplySwitch "帯"{
			Case 0:
				ShiftTexture = 0, -0.125, 0.0;
			Case 1:
				ShiftTexture = 0, -0.0625, 0.0;
			Case 2:
			Case 3:
				ShiftTexture = 0, 0.0625, 0.0;
			Case 4:
				ShiftTexture = 0, 0.125, 0.0;
			}
			ChangeModel = "mark_omtb.x", 1.0;
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0;
			BumpMap = 0;
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------側マーク定義ここまで---------------------------------------*/

/*---------------------------------------前車番定義ここから---------------------------------------*/

	Object3D "number_f"{
		ModelFileName = "number_20900.x";
		CastShadow = no;
		If ("帯"==1 && "編成"<=6)||("帯"==2 && ("編成"<=6||"編成"==27))||("帯"==3 && "編成"==27){
			ChangeModel = "number_22901.x", 1.0;
		}
		ApplySwitch "帯"{
		Case 0:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.5625;
			Case 1:
			}
		Case 1:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.9375;
			Case 1:
				ShiftTexture = 0, 0.0, 0.625;
			}
		Case 2:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.3125;
			Case 1:
				ShiftTexture = 0, 0.25, 0.0;
			}
		Case 3:
			If "編成">=33{
				ChangeModel = "number_951.x", 1.0;
			}
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.6875;
			Case 1:
				ShiftTexture = 0, 0.25, 0.375;
			}
		Case 4:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.9375;
			Case 1:
				ShiftTexture = 0, 0.25, 0.75;
			}
		}
		ApplySwitch "編成"{
		Case 0:	
		Case 1:
			ShiftTexture = 1, 0.0, 0.0625;
		Case 2:
			ShiftTexture = 1, 0.0, 0.125;
		Case 3:
			ShiftTexture = 1, 0.0, 0.1875;
		Case 4:
			ShiftTexture = 1, 0.0, 0.25;
		Case 5:
			ShiftTexture = 1, 0.0, 0.3125;
		Case 6:
			ShiftTexture = 1, 0.0, 0.375;
		Case 7:
			ShiftTexture = 1, 0.0, 0.4375;
		Case 8:
			ShiftTexture = 1, 0.0, 0.5;
		Case 9:
			ShiftTexture = 1, 0.0, 0.5625;
		Case 10:
			ShiftTexture = 1, 0.0, 0.625;
		Case 11:
			ShiftTexture = 1, 0.0, 0.6875;
		Case 12:
			ShiftTexture = 1, 0.0, 0.75;
		Case 13:
			ShiftTexture = 1, 0.0, 0.8125;
		Case 14:
			ShiftTexture = 1, 0.0, 0.875;
		Case 15:
			ShiftTexture = 1, 0.0, 0.9375;
		Case 16:
			ShiftTexture = 1, 0.25, 0.0;
		Case 17:
			ShiftTexture = 1, 0.25, 0.0625;
		Case 18:
			ShiftTexture = 1, 0.25, 0.125;
		Case 19:
			ShiftTexture = 1, 0.25, 0.1875;
		Case 20:
			ShiftTexture = 1, 0.25, 0.25;
		Case 21:
			ShiftTexture = 1, 0.25, 0.3125;
		Case 22:
			ShiftTexture = 1, 0.25, 0.375;
		Case 23:
			ShiftTexture = 1, 0.25, 0.4375;
		Case 24:
			ShiftTexture = 1, 0.25, 0.5;
		Case 25:
			ShiftTexture = 1, 0.25, 0.5625;
		Case 26:
			ShiftTexture = 1, 0.25, 0.625;
		Case 27:
			ShiftTexture = 1, 0.25, 0.6875;
		Case 28:
			ShiftTexture = 1, 0.25, 0.75;
		Case 29:
			ShiftTexture = 1, 0.25, 0.8125;
		Case 30:
			ShiftTexture = 1, 0.25, 0.875;
		Case 31:
			ShiftTexture = 1, 0.25, 0.9375;
		Case 32:
			ShiftTexture = 1, 0.5, 0.0;
		Case 33:
			ShiftTexture = 1, 0.5, 0.0625;
		Case 34:
			ShiftTexture = 1, 0.5, 0.125;
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0,1;
			BumpMap = 0,1;
			ChangeTexture = 0, "../n_omtbn20_1/tex/Number.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/Number.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------前車番定義ここまで---------------------------------------*/

/*---------------------------------------側車番定義ここから---------------------------------------*/

	Object3D "number_s"{
		ModelFileName = "number_20200.x";
		CastShadow = no;
		If "帯"==3&& "編成">=33{
			ChangeModel = "number_251.x", 1.0;
		}
		ApplySwitch "帯"{
		Case 0:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.5625;
			Case 1:
			}
		Case 1:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.9375;
			Case 1:
				ShiftTexture = 0, 0.0, 0.625;
			}
		Case 2:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.3125;
			Case 1:
				ShiftTexture = 0, 0.25, 0.0;
			}
		Case 3:
			If "編成">=33{
				ChangeModel = "number_951.x", 1.0;
			}
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.6875;
			Case 1:
				ShiftTexture = 0, 0.25, 0.375;
			}
		Case 4:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.9375;
			Case 1:
				ShiftTexture = 0, 0.25, 0.75;
			}
		}
		ApplySwitch "編成"{
		Case 0:	
		Case 1:
			ShiftTexture = 1, 0.0, 0.0625;
		Case 2:
			ShiftTexture = 1, 0.0, 0.125;
		Case 3:
			ShiftTexture = 1, 0.0, 0.1875;
		Case 4:
			ShiftTexture = 1, 0.0, 0.25;
		Case 5:
			ShiftTexture = 1, 0.0, 0.3125;
		Case 6:
			ShiftTexture = 1, 0.0, 0.375;
		Case 7:
			ShiftTexture = 1, 0.0, 0.4375;
		Case 8:
			ShiftTexture = 1, 0.0, 0.5;
		Case 9:
			ShiftTexture = 1, 0.0, 0.5625;
		Case 10:
			ShiftTexture = 1, 0.0, 0.625;
		Case 11:
			ShiftTexture = 1, 0.0, 0.6875;
		Case 12:
			ShiftTexture = 1, 0.0, 0.75;
		Case 13:
			ShiftTexture = 1, 0.0, 0.8125;
		Case 14:
			ShiftTexture = 1, 0.0, 0.875;
		Case 15:
			ShiftTexture = 1, 0.0, 0.9375;
		Case 16:
			ShiftTexture = 1, 0.25, 0.0;
		Case 17:
			ShiftTexture = 1, 0.25, 0.0625;
		Case 18:
			ShiftTexture = 1, 0.25, 0.125;
		Case 19:
			ShiftTexture = 1, 0.25, 0.1875;
		Case 20:
			ShiftTexture = 1, 0.25, 0.25;
		Case 21:
			ShiftTexture = 1, 0.25, 0.3125;
		Case 22:
			ShiftTexture = 1, 0.25, 0.375;
		Case 23:
			ShiftTexture = 1, 0.25, 0.4375;
		Case 24:
			ShiftTexture = 1, 0.25, 0.5;
		Case 25:
			ShiftTexture = 1, 0.25, 0.5625;
		Case 26:
			ShiftTexture = 1, 0.25, 0.625;
		Case 27:
			ShiftTexture = 1, 0.25, 0.6875;
		Case 28:
			ShiftTexture = 1, 0.25, 0.75;
		Case 29:
			ShiftTexture = 1, 0.25, 0.8125;
		Case 30:
			ShiftTexture = 1, 0.25, 0.875;
		Case 31:
			ShiftTexture = 1, 0.25, 0.9375;
		Case 32:
			ShiftTexture = 1, 0.5, 0.0;
		Case 33:
			ShiftTexture = 1, 0.5, 0.0625;
		Case 34:
			ShiftTexture = 1, 0.5, 0.125;
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0,1;
			BumpMap = 0,1;
			ChangeTexture = 0, "../n_omtbn20_1/tex/Number.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/Number.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------側車番定義ここまで---------------------------------------*/

/*---------------------------------------側幕板車番定義ここから---------------------------------------*/

	Object3D "number_sr"{
		ModelFileName = "";
		CastShadow = no;
		If !"リニューアル"&&"帯"!=3&&!("側面幕板部車番"&&(("帯"==0&&"編成"<=8)||("帯"==1&&"編成"<=6)||("帯"==2&&("編成"<=8||"編成"==27)))){
			ChangeModel = "number_20200r.x", 1.0;
		}
		ApplySwitch "帯"{
		Case 0:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.5625;
			Case 1:
			}
		Case 1:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.9375;
			Case 1:
				ShiftTexture = 0, 0.0, 0.625;
			}
		Case 2:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.3125;
			Case 1:
				ShiftTexture = 0, 0.25, 0.0;
			}
		Case 3:
			If "編成">=33{
				ChangeModel = "number_951.x", 1.0;
			}
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.6875;
			Case 1:
				ShiftTexture = 0, 0.25, 0.375;
			}
		Case 4:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.9375;
			Case 1:
				ShiftTexture = 0, 0.25, 0.75;
			}
		}
		ApplySwitch "編成"{
		Case 0:	
		Case 1:
			ShiftTexture = 1, 0.0, 0.0625;
		Case 2:
			ShiftTexture = 1, 0.0, 0.125;
		Case 3:
			ShiftTexture = 1, 0.0, 0.1875;
		Case 4:
			ShiftTexture = 1, 0.0, 0.25;
		Case 5:
			ShiftTexture = 1, 0.0, 0.3125;
		Case 6:
			ShiftTexture = 1, 0.0, 0.375;
		Case 7:
			ShiftTexture = 1, 0.0, 0.4375;
		Case 8:
			ShiftTexture = 1, 0.0, 0.5;
		Case 9:
			ShiftTexture = 1, 0.0, 0.5625;
		Case 10:
			ShiftTexture = 1, 0.0, 0.625;
		Case 11:
			ShiftTexture = 1, 0.0, 0.6875;
		Case 12:
			ShiftTexture = 1, 0.0, 0.75;
		Case 13:
			ShiftTexture = 1, 0.0, 0.8125;
		Case 14:
			ShiftTexture = 1, 0.0, 0.875;
		Case 15:
			ShiftTexture = 1, 0.0, 0.9375;
		Case 16:
			ShiftTexture = 1, 0.25, 0.0;
		Case 17:
			ShiftTexture = 1, 0.25, 0.0625;
		Case 18:
			ShiftTexture = 1, 0.25, 0.125;
		Case 19:
			ShiftTexture = 1, 0.25, 0.1875;
		Case 20:
			ShiftTexture = 1, 0.25, 0.25;
		Case 21:
			ShiftTexture = 1, 0.25, 0.3125;
		Case 22:
			ShiftTexture = 1, 0.25, 0.375;
		Case 23:
			ShiftTexture = 1, 0.25, 0.4375;
		Case 24:
			ShiftTexture = 1, 0.25, 0.5;
		Case 25:
			ShiftTexture = 1, 0.25, 0.5625;
		Case 26:
			ShiftTexture = 1, 0.25, 0.625;
		Case 27:
			ShiftTexture = 1, 0.25, 0.6875;
		Case 28:
			ShiftTexture = 1, 0.25, 0.75;
		Case 29:
			ShiftTexture = 1, 0.25, 0.8125;
		Case 30:
			ShiftTexture = 1, 0.25, 0.875;
		Case 31:
			ShiftTexture = 1, 0.25, 0.9375;
		Case 32:
			ShiftTexture = 1, 0.5, 0.0;
		Case 33:
			ShiftTexture = 1, 0.5, 0.0625;
		Case 34:
			ShiftTexture = 1, 0.5, 0.125;
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0,1;
			BumpMap = 0,1;
			ChangeTexture = 0, "../n_omtbn20_1/tex/Number.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/Number.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------側幕板車番定義ここまで---------------------------------------*/



/*---------------------------------------車外ピクトグラム定義ここから---------------------------------------*/
	Object3D "sticker"{
		ModelFileName = "";
		CastShadow = no;
		If "リニューアル"{
			If !"ベビーカーマーク"{
				ChangeModel = "sticker_1.x", 1.0;
			}Else{
				ChangeModel = "sticker_0.x", 1.0;
			}
		}Else{
			If "ロゴ"{
				ChangeModel = "sticker_2.x", 1.0;
			}Else{
				ChangeModel = "sticker_3.x", 1.0;
			}
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0;
			BumpMap = 0;
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------車外ピクトグラム定義ここまで---------------------------------------*/


/*---------------------------------------側窓号車ステッカー定義ここから---------------------------------------*/
	Object3D "wsticker_c"{
		ModelFileName = "";
		If !"電源"&&!"客室照明"{
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 1.0, 1.0, 1.0;
　　　			}
		}

			ChangeModel = "sticker_w_c.x", 1.0;

		If (("帯"==0||"帯"==2||"帯"==3)&&"連結位置")||(("帯"==1||"帯"==4)&&!"連結位置"){
			ShiftTexture = 0, -0.0625, 0.0;
			ShiftTexture = 1, -0.0625, 0.0;
		}	//1
		If "帯"==0&&!"連結位置"{	//10
			ShiftTexture = 0, 0.0625, 0.03125;
			ShiftTexture = 1, 0.0625, 0.03125;
		}
		If ("帯"==1&&"連結位置")||(("帯"==2||"帯"==3)&&!"連結位置"){
			ShiftTexture = 0, -0.0625, 0.03125;
			ShiftTexture = 1, -0.0625, 0.03125;
		}
		If "帯"==4&&"連結位置"{	//4
			ShiftTexture = 0, 0.03125, 0.0;
			ShiftTexture = 1, 0.03125, 0.0;
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0,1;
			BumpMap = 0,1;
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/body_21900.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";

		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------側窓号車ステッカー定義ここまで---------------------------------------*/

/*---------------------------------------車体ステッカー広告定義ここから---------------------------------------*/
	Object3D "sticker_ad_body"{
		ModelFileName = "";
		ApplySwitch "車外ステッカー広告"{
		Case 1:
			ChangeModel = "../n_omtbn20_1/ad/ad_body_1.x", 1.0;
		Case 2:
			ChangeModel = "../n_omtbn20_1/ad/ad_body_2.x", 1.0;
		
	/*追加例

		Case 3:
			ChangeModel = "../n_omtbn20_1/ad/ad_body_3.x", 1.0;
		Case 4:
			ChangeModel = "../n_omtbn20_1/ad/ad_body_4.x", 1.0;

	例ここまで*/


		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0;
			BumpMap = 0;
			ApplySwitch "車外ステッカー広告"{
			Case 1:
				ChangeTexture = 0, "../n_omtbn20_1/ad/ad_bodyn_0.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";

			Case 2:
				ChangeTexture = 0, "../n_omtbn20_1/ad/ad_bodyo_0.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/so.png";

			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------車体ステッカー広告定義ここまで---------------------------------------*/

/*---------------------------------------前面窓定義ここから---------------------------------------*/

	Object3D "window"{
		ModelFileName = "window_20900.x";
		CastShadow = no;
		NoCastShadow = 2,3;
		If "帯"==4&&!"リニューアル"{
			ShiftTexture = 3, 0.0, 0.28125;
		}
		ApplySwitch "PBR"{
		Case 0:
			EnvMap = 0,1,2,3;
			BumpMap = 0,1,2,3;
			ChangeTexture = 0, "../n_omtbn20_1/tex/window.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/windowo.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/window.png", "../n_omtbn20_1/tex/n.png", "../n_omtbn20_1/tex/windowo.png";
			ChangeTexture = 2, "../n_omtbn20_1/tex/window.png", "../n_omtbn20_1/tex/windown.png", "../n_omtbn20_1/tex/windowo.png";
			ChangeTexture = 3, "../n_omtbn20_1/tex/face1.png", "../n_omtbn20_1/tex/face1n.png", "../n_omtbn20_1/tex/wo.png";
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 1.0;
　　　　　		}
			ChangeMaterial{
				MaterialID = 3;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　　		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------前面窓定義ここまで---------------------------------------*/

/*---------------------------------------床下モデル定義ここから---------------------------------------*/
	Object3D "yuka"{
		ModelFileName = "yuka_20600.x";
		If "連結位置"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------床下モデル定義ここまで---------------------------------------*/

/*---------------------------------------連結器モデル定義ここから---------------------------------------*/
	Object3D "yuka_c"{
		ModelFileName = "yuka_g.x";
		ApplySwitch "帯"{
		Case 1,3,4:
			ChangeModel = "yuka_f.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------連結器モデル定義ここまで---------------------------------------*/

/*---------------------------------------転防モデル定義ここから---------------------------------------*/
	Object3D "Horo-z"{
		ModelFileName = "";
		ApplySwitch "転落防止幌"{
		Case 0,2:
			ChangeModel = "horo.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------転防モデル定義ここまで---------------------------------------*/

/*---------------------------------------ワイパーモデル定義ここから---------------------------------------*/
	Object3D "wiper"{
		ModelFileName = "wiper0.x";
		If !"リニューアル"&&("帯"==0||"帯">2){
			ChangeModel = "wiper1.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------ワイパーモデル定義ここまで---------------------------------------*/

/*---------------------------------------戸閉灯モデル定義ここから---------------------------------------*/
	Object3D "Doorl"{
		ModelFileName = "tojime.x";
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180;
		}
		If "_DOOR2"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 1.0;
				AnimationTime = 0.0;
				 PreReverseDelay = 2.5;
				ReverseTime = 0.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (1.41, 3.14, -0.43);
		}
	}
	Object3D "Doorr"{
		ModelFileName = "tojime.x";
		If "_DOOR1"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 1.0;
				AnimationTime = 0.0;
				 PreReverseDelay = 2.5;
				ReverseTime = 0.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (-1.41, 3.14, 0.43);
		}
	}
/*---------------------------------------戸閉灯モデル定義ここまで---------------------------------------*/

/*---------------------------------------簡易影モデル定義ここから---------------------------------------*/
	Object3D "Shadow"{
		ModelFileName = "";
		If!"簡易影"&&!"_SHADOW" { 
			ChangeModel = "Shadow.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------簡易影モデル定義ここまで---------------------------------------*/

	If !"電源" && ((!"前照灯" && !"_FRONT")|| "前照灯"==1) && "レンズフレア"<=1 {
		If !"前照灯仕様" {
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (0.13, 1.84, 9.18);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
				LensFlare{
				    StartAngle = 90.0;
				    Twinkle = 0.1;
					Texture{
					    Distance = 0.005;
					    Radius = 0.5;
					    TexFileName = "../n_omtbn20_1/tex/フレア.png";
					    Color = #FFe2d4b4;
					}
				}
			}
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (-0.13, 1.84, 9.18);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
			}
		}Else{
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (0.13, 1.78, 9.18);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
				LensFlare{
				    StartAngle = 90.0;
				    Twinkle = 0.1;
					Texture{
					    Distance = 0.005;
					    Radius = 0.5;
					    TexFileName = "tex/フレア.png";
					   // Color = #FFe2d4b4;
					    Color = #FFCCA88A;
					}
				}
			}
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (-0.13, 1.78, 9.18);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
			}
		}
	}
	If !"電源" && ((!"尾灯" && "_FRONT")|| "尾灯"==1) && (!"レンズフレア"||"レンズフレア"==2) && !"_CONNECT1" {
		Headlight{
		    AttachObject = "Dummy";
		    SourceCoord = (1.375, 2.53, 9.13);
		    Direction = (0.0, 0.0, 1.0);
		    MaxDistance = 10.0;
			LensFlare{
			    StartAngle = 30.0;
			    Twinkle = 0.1;
				Texture{
				    Distance = 0.005;
				    Radius = 0.5;
				    TexFileName = "tex/フレア1.png";
				    Color = #FFd20026;
				}
			}
		}
		Headlight{
		    AttachObject = "Dummy";
		    SourceCoord = (-1.375, 2.53, 9.13);
		    Direction = (0.0, 0.0, 1.0);
		    MaxDistance = 10.0;
		}
	}
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

