
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "大阪市交通局 新20系 低床中間車(k)";
	PluginAuthor = "n";
	IconTexture = "icon.png";
	Description = "2025年に登場した、一部号車に低床整備が施工された仕様の21系中間車です。";
}
TrainInfo{
	FrontLimit = 9.35;
	TailLimit = -9.35;
	MaxVelocity = 70.0;
	MaxAcceleration = 3.0;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}
DefineSwitch "■基本設定"{
}
DefineSwitch "電源"{
GroupCommon = "nomtbn20電源";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "行先(往)"{
GroupCommon = "nomtbn20行先(往)";
	Entry = "自動（箕面萱野）";
	Entry = "";
	Entry = "梅田";
	Entry = "新金岡";
	Entry = "なかもず";
	Entry = "千里中央";
	Entry = "あびこ";
	Entry = "中津";
	Entry = "天王寺";
	Entry = "新大阪";
	Entry = "江坂";
	Entry = "箕面萱野";
	Entry = "";
	Entry = "回送";
	Entry = "試運転";
	Entry = "臨時";
}
DefineSwitch "行先(復)"{
GroupCommon = "nomtbn20行先(復)";
	Entry = "自動（なかもず）";
	Entry = "";
	Entry = "梅田";
	Entry = "新金岡";
	Entry = "なかもず";
	Entry = "千里中央";
	Entry = "あびこ";
	Entry = "中津";
	Entry = "天王寺";
	Entry = "新大阪";
	Entry = "江坂";
	Entry = "箕面萱野";
	Entry = "";
	Entry = "回送";
	Entry = "試運転";
	Entry = "臨時";
}
DefineSwitch "■灯火類設定-"{
}
DefineSwitch "客室照明"{
GroupCommon = "nomtbn20客室灯";
	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";
	Entry = "12";
	Entry = "13";
	Entry = "14";
	Entry = "15";
	Entry = "16";
	Entry = "17";
	Entry = "18";
}
DefineSwitch "連結位置"{										/*  M  / TYC /  S  */
	Entry = "3両目(江坂/八尾南/西梅田/ｺｽﾓｽｸｴｱ/南巽方)";	/* 100 */
	Entry = "6両目";					/* 800 */
	Entry = "8両目";					/* 300 */
}
DefineSwitch "■仕様設定(細部)"{
}
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 = "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.82;
		Symmetric = 16;
		Coord = (7.3,0.41);
	}
	Axle "wheel2"{
		ModelFileName = "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.82;
		Symmetric = 16;
		Coord = (5.1,0.41);
	}
	Axle "wheel3"{
		ModelFileName = "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.82;
		Symmetric = 16;
		Coord = (-7.3,0.41);
	}
	Axle "wheel4"{
		ModelFileName = "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.82;
		Symmetric = 16;
		Coord = (-5.1,0.41);
	}
	Body "Bogie1"{
		ModelFileName = "../n_omtbn20_1/bogie_t.x";
		If "連結位置"==6{
			ChangeModel = "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 = "../n_omtbn20_1/bogie_t.x";
		Turn = yes;
		If "連結位置"==1{
			ChangeModel = "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 = "";
		ModelScale = 1.0;
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.563);
			LocalCoord = (6.2, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.563);
			LocalCoord = (-6.2, 1.0);
		}
	}

/*---------------------------------------内装定義ここから---------------------------------------*/
	Object3D "Interior"{
		ModelFileName = "../n_omtbn20_1/in_20200.x";
		NoCastShadow = 6;
		If !"電源"&& !"客室照明"{
			ChangeMaterial{
				MaterialID = 0,1,2,3,4;
				Emissive = 1.0, 1.0, 1.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 = "../n_omtbn20_1/body_20200.x";
		NoCastShadow = 30;
		If !"電源"&&!"客室照明"{
			If !"客室照明"{
				ChangeMaterial{
					MaterialID = 28;
					Emissive = 1.0, 1.0, 1.0;
　　　　　	　　		}
			}
		}
		ApplySwitch "連結位置"{
		Case 0:
			ShiftTexture = 7, -0.1875, 0.0;
		Case 1:
			ShiftTexture = 7, -0.375, 0.0;
		Case 2:
			ShiftTexture = 7, -0.5, 0.0;
		}
		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;
　　　　	　	}
				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";
		}

		ShiftTexture = 6, 0.0, 0.375;
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------車体モデル定義ここまで---------------------------------------*/



/*---------------------------------------車外扉モデル定義ここから---------------------------------------*/
	Object3D "Doorll"{
		ModelFileName = "../n_omtbn20_1/Doorll.x";
		NoCastShadow = 1;
		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;
　　　　　		}

				ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900m.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 = "../n_omtbn20_1/Doorlr.x";
		NoCastShadow = 1;
		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;
　　　　　		}

				ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900m.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 = "../n_omtbn20_1/Doorrl.x";
		NoCastShadow = 1;
		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;
　　　　　		}

				ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900m.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 = "../n_omtbn20_1/Doorrr.x";
		NoCastShadow = 1;
		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;
　　　　　		}

				ChangeTexture = 0, "../n_omtbn20_1/tex/body_21900m.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 = "../n_omtbn20_1/roll_s.x";
			If!"_FRONT"{
				ApplySwitch "行先(往)"{
				Case 0:
					ShiftTexture = 0, 0.5, -0.4375;
					ShiftTexture = 1, 0.5, -0.4375;
				Case 2:
					ShiftTexture = 0, -0.25, -0.4375;
					ShiftTexture = 1, -0.25, -0.4375;
				Case 3:
					ShiftTexture = 0, -0.25, -0.375;
					ShiftTexture = 1, -0.25, -0.375;
				Case 4:
					ShiftTexture = 0, -0.25, -0.3125;
					ShiftTexture = 1, -0.25, -0.3125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.4375;
					ShiftTexture = 1, 0.0, -0.4375;
				Case 6:
					ShiftTexture = 0, 0.0, -0.375;
					ShiftTexture = 1, 0.0, -0.375;
				Case 7:
					ShiftTexture = 0, 0.0, -0.3125;
					ShiftTexture = 1, 0.0, -0.3125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.4375;
					ShiftTexture = 1, 0.25, -0.4375;
				Case 9:
					ShiftTexture = 0, 0.25, -0.375;
					ShiftTexture = 1, 0.25, -0.375;
				Case 10:
					ShiftTexture = 0, 0.25, -0.3125;
					ShiftTexture = 1, 0.25, -0.3125;
				Case 11:
					ShiftTexture = 0, 0.5, -0.4375;
					ShiftTexture = 1, 0.5, -0.4375;
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}Else{
				ApplySwitch "行先(復)"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.4375;
					ShiftTexture = 1, -0.25, -0.4375;
				Case 3:
					ShiftTexture = 0, -0.25, -0.375;
					ShiftTexture = 1, -0.25, -0.375;
				Case 0,4:
					ShiftTexture = 0, -0.25, -0.3125;
					ShiftTexture = 1, -0.25, -0.3125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.4375;
					ShiftTexture = 1, 0.0, -0.4375;
				Case 6:
					ShiftTexture = 0, 0.0, -0.375;
					ShiftTexture = 1, 0.0, -0.375;
				Case 7:
					ShiftTexture = 0, 0.0, -0.3125;
					ShiftTexture = 1, 0.0, -0.3125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.4375;
					ShiftTexture = 1, 0.25, -0.4375;
				Case 9:
					ShiftTexture = 0, 0.25, -0.375;
					ShiftTexture = 1, 0.25, -0.375;
				Case 10:
					ShiftTexture = 0, 0.25, -0.3125;
					ShiftTexture = 1, 0.25, -0.3125;
				Case 11:
					ShiftTexture = 0, 0.5, -0.4375;
					ShiftTexture = 1, 0.5, -0.4375;
				Case 13:
					ShiftTexture = 0, -0.25, 0.5;
					ShiftTexture = 1, -0.25, 0.5;
				Case 14:
					ShiftTexture = 0, 0.0, 0.5;
					ShiftTexture = 1, 0.0, 0.5;
				Case 15:
					ShiftTexture = 0, 0.25, 0.5;
					ShiftTexture = 1, 0.25, 0.5;
				Default:
					ShiftTexture = 0, 0.5, 0.5;
					ShiftTexture = 1, 0.5, 0.5;
				}
			}
			ChangeTexture = 0, "../n_omtbn20_1/tex/roll_7.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/roll_7.png";
			ChangeTexture = 2, "../n_omtbn20_1/tex/roll_1.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_s"{
		ModelFileName = "../n_omtbn20_1/mark_om.x";
		CastShadow = no;
		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"{
		ModelFileName = "../n_omtbn20_1/number_20200.x";
		CastShadow = no;
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.4375;
			Case 1:
				ShiftTexture = 0, 0.0, 0.25;
			Case 2:
				ShiftTexture = 0, 0.0, 0.125;
			}
		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;
		}
		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 "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------車番定義ここまで---------------------------------------*/

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

	Object3D "number_sr"{
		ModelFileName = "";
		CastShadow = no;

			ChangeModel = "../n_omtbn20_1/number_20200r.x", 1.0;


			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.4375;
			Case 1:
				ShiftTexture = 0, 0.0, 0.25;
			Case 2:
				ShiftTexture = 0, 0.0, 0.125;
			}
		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;
		}
		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 = "../n_omtbn20_1/sticker_3.x";
		CastShadow = no;
		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 "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.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;
		}
		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 "wsticker_c"{
		ModelFileName = "";
		If !"電源"&&!"客室照明"{
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 1.0, 1.0, 1.0;
　　　			}
		}

			ChangeModel = "../n_omtbn20_1/sticker_w_c.x", 1.0;

				ApplySwitch "連結位置"{
				Case 1:
					ShiftTexture = 0, -0.0, 0.03125;
					ShiftTexture = 1, -0.0, 0.03125;
				Case 4:
					ShiftTexture = 0, 0.0625, 0.0;
					ShiftTexture = 1, 0.0625, 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 "windowo"{
		ModelFileName = "../n_omtbn20_1/window_20200.x";
		NoCastShadow = 2;
		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";
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 1.0;
　　　　　		}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------車外窓定義ここまで---------------------------------------*/


/*---------------------------------------床下モデル定義ここから---------------------------------------*/
	Object3D "yuka"{
		ModelFileName = "../n_omtbn20_1/yuka_20100.x";
			ApplySwitch "連結位置"{
			Case 1:
				ChangeModel = "../n_omtbn20_1/yuka_20500.x", 1.0;
			}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

/*---------------------------------------床下モデル定義ここまで---------------------------------------*/



/*---------------------------------------戸閉灯モデル定義ここから---------------------------------------*/
	Object3D "Doorl"{
		ModelFileName = "../n_omtbn20_1/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 = "../n_omtbn20_1/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 = "../n_omtbn20_1/Shadow.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------簡易影モデル定義ここまで---------------------------------------*/

	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

