
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "大阪市交通局 新20系 中間車(k)";
	PluginAuthor = "n";
	IconTexture = "icon.png";
	Description = "";
	Description = "列車パターン";
	Description = "-基本-";
	Description = "[21]箕面萱野 - なかもず※2024年3月22日まで千里中央行";
	Description = "[21]新大阪 - 天王寺";
	Description = "[22]大日 - 八尾南";
	Description = "[23]西梅田 - 住之江公園";
	Description = "[24]コスモスクエア - 生駒/学研奈良登美ヶ丘";
	Description = "[25]野田阪神 - 南巽";
	Description = "-ラッシュ時-";
	Description = "[21]新大阪 - 新金岡";
	Description = "[21]中津 - 天王寺";
	Description = "[22]都島 - 文の里/喜連瓜破";
	Description = "[23]西梅田 - 北加賀屋";
	Description = "[24]コスモスクエア - 森ノ宮";
	Description = "-ラッシュ前後の出入庫回送-";
	Description = "[25]野田阪神 - 阿波座 - 本町 - 森ノ宮";
	Description = "";
	Description = "全面広告車両について";
	Description = "2002年の女性専用車両導入に前後して、車体全面に広告を施された車両が御堂筋線に登場しました。";
	Description = "全面広告は主に御堂筋線の女性専用車両に設定された一方、他路線でも企画等で一部号車、あるいは全車にラッピングが施されることもありました。";
	Description = "御堂筋線へのホームドア設置完了後の2024年、食品会社の広告を最後に21系での全面広告車両は見られなくなりました。";
}
TrainInfo{
	FrontLimit = 9.35;
	TailLimit = -9.35;
	MaxVelocity = 95.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";
	Entry = "19";
	Entry = "20";
	Entry = "21";
	Entry = "22";
	Entry = "51";	
	Entry = "52";
	Entry = "53";
	Entry = "54";
	Entry = "55";
	Entry = "56";
	Entry = "57";
	Entry = "58";
	Entry = "59";
	Entry = "60";
	Entry = "61";
	Entry = "62";
	Entry = "63";
}
DefineSwitch "帯"{
GroupCommon = "nomtbn20帯";
	Entry = "21系(御堂筋線)";
	Entry = "22系(谷町線)";
	Entry = "23系(四つ橋線)";
	Entry = "24系(中央線)";
	Entry = "25系(千日前線)";
}
DefineSwitch "連結位置"{										/*  M  / TYC /  S  */
	Entry = "2両目(江坂/八尾南/西梅田/ｺｽﾓｽｸｴｱ/南巽方)";	/* 000 / 100 / 100 */
	Entry = "3両目(23系5両時脱車)";				/* 100 /(800)/ 300 */
	Entry = "4両目";					/* 700 / 300 */	
	Entry = "5両目";					/* 400 / 200 */
	Entry = "6両目";					/* 800 */
	Entry = "7両目(21系9両時脱車)";				/* 500 */
	Entry = "8両目";					/* 300 */
	Entry = "9両目";					/* 200 */
}
DefineSwitch "リニューアル"{
GroupCommon = "nomtbn20リニューアル";
	Entry = "施工済";
	Entry = "未施工";
}
DefineSwitch "女性専用車"{
GroupCommon = "nomtbn20女性専用車";
	Entry = "ラッピング無";
	Entry = "ラッピング-1";
	Entry = "ラッピング-2";
	Entry = "ラッピング-3";
}
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.6.18〜)";
	Entry = "無";
}
DefineSwitch "女性専用車ステッカー"{
GroupCommon = "nomtbn2023系女性専用車ステッカー";
	Entry = "21系更新車での貼付位置変更(201X〜)";
	Entry = "御堂筋線で終日設定開始(2004〜)";
	Entry = "設定開始(御2002〜・谷2003〜)";
	Entry = "無";
}

/*
	2025年以降ステッカーが更新されていますが、当版では再現を見送っています。（次回更新で実装予定）

	2024年前後より、21602Fと21604Fのステッカーの配置が変更されています。
	当PIでも上2つのスイッチ適用時にこの2編成を選択している場合、実車での配置を再現します。
*/

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 = (-7.3,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 = (-5.1,0.43);
	}
	Body "Bogie1"{
		ModelFileName = "../n_omtbn20_1/bogie_t.x";
		ApplySwitch "帯"{
		Case 0:
			ApplySwitch "連結位置"{
			Case 0,2,3,6,7:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		Case 1,2,3:
			ApplySwitch "連結位置"{
			Case 2,3:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		Case 4:
			ApplySwitch "連結位置"{
			Case 1:
				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 = "../n_omtbn20_1/bogie_t.x";
		Turn = yes;
		ApplySwitch "帯"{
		Case 0:
			ApplySwitch "連結位置"{
			Case 0,1,3,7:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		Case 1,2,3:
			ApplySwitch "連結位置"{
			Case 0,3:
				ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
			}
		Case 4:
			ApplySwitch "連結位置"{
			Case 0:
				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 = "";
		ModelScale = 1.0;
		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 = "../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;
　　　　　	　　		}
			}
		}
		If "帯"==0 && "連結位置"==3{
			ApplySwitch "女性専用車"{
			Case 1:
				ChangeModel = "../n_omtbn20_1/body_21400.x", 1.0;
			Case 2:
				ChangeModel = "../n_omtbn20_1/body_21400.x", 1.0;
				ShiftTexture = 5, 0.0, 0.3125;
			Case 3:
				ChangeModel = "../n_omtbn20_1/body_21400.x", 1.0;
				ShiftTexture = 5, 0.0, 0.625;
			}
		}
		ApplySwitch "帯"{
		Case 1:
			ChangeTexture = 5, "../n_omtbn20_1/tex/body_22900.png";
			ChangeTexture = 6, "../n_omtbn20_1/tex/body_22900.png";
			ChangeTexture = 7, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 5, "../n_omtbn20_1/tex/body_23900.png";
			ChangeTexture = 6, "../n_omtbn20_1/tex/body_23900.png";
			ChangeTexture = 7, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			If "編成">=33{
				ChangeTexture = 5, "../n_omtbn20_1/tex/body_900.png";
				ChangeTexture = 6, "../n_omtbn20_1/tex/body_900.png";
				ChangeTexture = 7, "../n_omtbn20_1/tex/body_900.png";
			}Else{
				ChangeTexture = 5, "../n_omtbn20_1/tex/body_24900.png";
				ChangeTexture = 6, "../n_omtbn20_1/tex/body_24900.png";
				ChangeTexture = 7, "../n_omtbn20_1/tex/body_24900.png";
			}
		Case 4:
			ChangeTexture = 5, "../n_omtbn20_1/tex/body_25900.png";
			ChangeTexture = 6, "../n_omtbn20_1/tex/body_25900.png";
			ChangeTexture = 7, "../n_omtbn20_1/tex/body_25900.png";
		}
		If !"リニューアル"{
			ApplySwitch "帯"{
			Case 0:
				ApplySwitch "連結位置"{
				Case 0:
					ShiftTexture = 7, -0.125, 0.0;
				Case 1:
					ShiftTexture = 7, -0.1875, 0.0;
				Case 2:
					ShiftTexture = 7, -0.25, 0.0;
				Case 3:
					ShiftTexture = 7, -0.3125, 0.0;
				Case 4:
					ShiftTexture = 7, -0.375, 0.0;
				Case 5:
					ShiftTexture = 7, -0.4375, 0.0;
				Case 6:
					ShiftTexture = 7, -0.5, 0.0;
				Case 7:
					ShiftTexture = 7, -0.5625, 0.0;
				}
			Case 1,4:
				ApplySwitch "連結位置"{
				Case 0:
					ShiftTexture = 7, -0.5625, 0.0;
				Case 1:
					ShiftTexture = 7, -0.5, 0.0;
				Case 2:
					ShiftTexture = 7, -0.4375, 0.0;
				Case 3:
					ShiftTexture = 7, -0.375, 0.0;
				}
			Case 2,3:
				ApplySwitch "連結位置"{
				Case 0:
					ShiftTexture = 7, -0.375, 0.0;
				Case 1:
					ShiftTexture = 7, -0.4375, 0.0;
				Case 2:
					ShiftTexture = 7, -0.5, 0.0;
				Case 3:
					ShiftTexture = 7, -0.5625, 0.0;
				}
			}
			ShiftTexture = 6, 0.0, 0.375;
		}
		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";
				}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";
			}
			If "帯"==0 && "連結位置"==3{
				ApplySwitch "女性専用車"{
				Case 1:
					ChangeTexture = 5, "../n_omtbn20_1/ad/body_21400.png", "../n_omtbn20_1/ad/body_21400n.png", "../n_omtbn20_1/ad/body_21400o.png";
				Case 2:
					ChangeTexture = 5, "../n_omtbn20_1/ad/body_21400.png", "../n_omtbn20_1/ad/body_21400n.png", "../n_omtbn20_1/ad/body_21400o.png";
				Case 3:
					ChangeTexture = 5, "../n_omtbn20_1/ad/body_21400.png", "../n_omtbn20_1/ad/body_21400n.png", "../n_omtbn20_1/ad/body_21400o.png";
				}
			}
		}

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



/*---------------------------------------車外扉モデル定義ここから---------------------------------------*/
	Object3D "Doorll"{
		ModelFileName = "../n_omtbn20_1/Doorll.x";
		NoCastShadow = 1;
		ApplySwitch "帯"{
		Case 0:
			If "連結位置"==3{
				ApplySwitch "女性専用車"{
				Case 1:
					ChangeModel = "../n_omtbn20_1/doorll_21400.x", 1.0;
				Case 2:
					ChangeModel = "../n_omtbn20_1/doorll_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.125;
				Case 3:
					ChangeModel = "../n_omtbn20_1/doorll_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.25;
				}
			}
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_22900.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/body_23900.png";
		Case 3:
			ApplySwitch "編成"{
			Case 33,34:
				ShiftTexture = 1, -0.25, 0.0;
				ChangeTexture = 0, "../n_omtbn20_1/tex/body_900.png";
			Default:
				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";
			}
			If "帯"==0 && "連結位置"==3{
				ApplySwitch "女性専用車"{
				Case 1:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				Case 2:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				Case 3:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				}
			}
		}
		Joint3D "Doorll_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorlr"{
		ModelFileName = "../n_omtbn20_1/Doorlr.x";
		NoCastShadow = 1;
		ApplySwitch "帯"{
		Case 0:
			If "連結位置"==3{
				ApplySwitch "女性専用車"{
				Case 1:
					ChangeModel = "../n_omtbn20_1/doorlr_21400.x", 1.0;
				Case 2:
					ChangeModel = "../n_omtbn20_1/doorlr_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.125;
				Case 3:
					ChangeModel = "../n_omtbn20_1/doorlr_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.25;
				}
			}
		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";
			}
			If "帯"==0 && "連結位置"==3{
				ApplySwitch "女性専用車"{
				Case 1:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				Case 2:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				Case 3:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				}
			}
		}
		Joint3D "Doorlr_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "../n_omtbn20_1/Doorrl.x";
		NoCastShadow = 1;
		ApplySwitch "帯"{
		Case 0:
			If "連結位置"==3{
				ApplySwitch "女性専用車"{
				Case 1:
					ChangeModel = "../n_omtbn20_1/doorrl_21400.x", 1.0;
				Case 2:
					ChangeModel = "../n_omtbn20_1/doorrl_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.125;
				Case 3:
					ChangeModel = "../n_omtbn20_1/doorrl_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.25;
				}
			}
		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";
			}
			If "帯"==0 && "連結位置"==3{
				ApplySwitch "女性専用車"{
				Case 1:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				Case 2:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				Case 3:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				}
			}
		}
		Joint3D "Doorrl_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrr"{
		ModelFileName = "../n_omtbn20_1/Doorrr.x";
		NoCastShadow = 1;
		ApplySwitch "帯"{
		Case 0:
			If "連結位置"==3{
				ApplySwitch "女性専用車"{
				Case 1:
					ChangeModel = "../n_omtbn20_1/doorrr_21400.x", 1.0;
				Case 2:
					ChangeModel = "../n_omtbn20_1/doorrr_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.125;
				Case 3:
					ChangeModel = "../n_omtbn20_1/doorrr_21400.x", 1.0;
					ShiftTexture = 0, 0.0, 0.25;
				}
			}
		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";
			}
			If "帯"==0 && "連結位置"==3{
				ApplySwitch "女性専用車"{
				Case 1:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				Case 2:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				Case 3:
					ChangeTexture = 0, "../n_omtbn20_1/ad/door_21400.png", "../n_omtbn20_1/ad/door_21400n.png", "../n_omtbn20_1/ad/door_21400o.png";
				}
			}
		}
		Joint3D "Doorrr_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------車外扉モデル定義ここまで---------------------------------------*/


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

	Object3D "roll"{
		ModelFileName = "../n_omtbn20_1/roll_s.x";
		ApplySwitch "帯"{
		Case 0:
			If!"_FRONT"{
				ApplySwitch "行先(往)"{
				Case 0:
					If !"幕仕様-編成全体"&&!"ロゴ"{
						ShiftTexture = 0, 0.5, -0.4375;
						ShiftTexture = 1, 0.5, -0.4375;
					}Else{
						ShiftTexture = 0, 0.0, -0.4375;
						ShiftTexture = 1, 0.0, -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:
					If "幕仕様-編成全体"!=1{
						ShiftTexture = 0, 0.5, -0.4375;
						ShiftTexture = 1, 0.5, -0.4375;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}

				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:
					If "幕仕様-編成全体"!=1{
						ShiftTexture = 0, 0.5, -0.4375;
						ShiftTexture = 1, 0.5, -0.4375;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				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;
				}
			}
		Case 1:
			If!"_FRONT"{
				ApplySwitch "行先(往)"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.25;
					ShiftTexture = 1, -0.25, -0.25;
				Case 0,3:
					ShiftTexture = 0, -0.25, -0.1875;
					ShiftTexture = 1, -0.25, -0.1875;
				Case 4:
					ShiftTexture = 0, -0.25, -0.125;
					ShiftTexture = 1, -0.25, -0.125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.25;
					ShiftTexture = 1, 0.0, -0.25;
				Case 6:
					ShiftTexture = 0, 0.0, -0.1875;
					ShiftTexture = 1, 0.0, -0.1875;
				Case 7:
					ShiftTexture = 0, 0.0, -0.125;
					ShiftTexture = 1, 0.0, -0.125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.25;
					ShiftTexture = 1, 0.25, -0.25;
				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 0,2:
					ShiftTexture = 0, -0.25, -0.25;
					ShiftTexture = 1, -0.25, -0.25;
				Case 3:
					ShiftTexture = 0, -0.25, -0.1875;
					ShiftTexture = 1, -0.25, -0.1875;
				Case 4:
					ShiftTexture = 0, -0.25, -0.125;
					ShiftTexture = 1, -0.25, -0.125;
				Case 5:
					ShiftTexture = 0, 0.0, -0.25;
					ShiftTexture = 1, 0.0, -0.25;
				Case 6:
					ShiftTexture = 0, 0.0, -0.1875;
					ShiftTexture = 1, 0.0, -0.1875;
				Case 7:
					ShiftTexture = 0, 0.0, -0.125;
					ShiftTexture = 1, 0.0, -0.125;
				Case 8:
					ShiftTexture = 0, 0.25, -0.25;
					ShiftTexture = 1, 0.25, -0.25;
				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;
				}
			}
		Case 2:
			If!"_FRONT"{
				ApplySwitch "行先(往)"{
				Case 2:
					ShiftTexture = 0, -0.25, -0.0625;
					ShiftTexture = 1, -0.25, -0.0625;
				Case 3:
					ShiftTexture = 0, -0.25, 0.0;
					ShiftTexture = 1, -0.25, 0.0;
				Case 4:
					ShiftTexture = 0, -0.25, 0.0625;
					ShiftTexture = 1, -0.25, 0.0625;
				Case 0,5:
					ShiftTexture = 0, 0.0, -0.0625;
					ShiftTexture = 1, 0.0, -0.0625;
				Case 6:
				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.0625;
					ShiftTexture = 1, -0.25, -0.0625;
				Case 3:
					ShiftTexture = 0, -0.25, 0.0;
					ShiftTexture = 1, -0.25, 0.0;
				Case 0,4:
					ShiftTexture = 0, -0.25, 0.0625;
					ShiftTexture = 1, -0.25, 0.0625;
				Case 5:
					ShiftTexture = 0, 0.0, -0.0625;
					ShiftTexture = 1, 0.0, -0.0625;
				Case 6:
				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;
				}
			}
		Case 3:
			If!"_FRONT"{
				ApplySwitch "行先(往)"{
				Case 0:
					ShiftTexture = 0, 0.25, 0.125;
					ShiftTexture = 1, 0.25, 0.125;
				Case 2:
					ShiftTexture = 0, -0.25, 0.125;
					ShiftTexture = 1, -0.25, 0.125;
				Case 3:
					ShiftTexture = 0, -0.25, 0.1875;
					ShiftTexture = 1, -0.25, 0.1875;
				Case 4:
					ShiftTexture = 0, -0.25, 0.25;
					ShiftTexture = 1, -0.25, 0.25;
				Case 5:
					ShiftTexture = 0, 0.0, 0.125;
					ShiftTexture = 1, 0.0, 0.125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.1875;
					ShiftTexture = 1, 0.0, 0.1875;
				Case 7:
					ShiftTexture = 0, 0.0, 0.25;
					ShiftTexture = 1, 0.0, 0.25;
				Case 8:
					ShiftTexture = 0, 0.25, 0.125;
					ShiftTexture = 1, 0.25, 0.125;
				Case 9:
					If "幕仕様-編成全体"<2{
						ShiftTexture = 0, 0.25, 0.1875;
						ShiftTexture = 1, 0.25, 0.1875;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 10:
					If "幕仕様-編成全体"<2{
						ShiftTexture = 0, 0.25, 0.25;
						ShiftTexture = 1, 0.25, 0.25;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 11:
					If "幕仕様-編成全体"!=1{
						ShiftTexture = 0, 0.5, 0.125;
						ShiftTexture = 1, 0.5, 0.125;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				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 0:
					If "編成"<4||"編成"==27{
						ShiftTexture = 0, 0.25, 0.1875;
						ShiftTexture = 1, 0.25, 0.1875;
					}Else{
						ShiftTexture = 0, 0.0, 0.1875;
						ShiftTexture = 1, 0.0, 0.1875;
					}
				Case 2:
					ShiftTexture = 0, -0.25, 0.125;
					ShiftTexture = 1, -0.25, 0.125;
				Case 3:
					ShiftTexture = 0, -0.25, 0.1875;
					ShiftTexture = 1, -0.25, 0.1875;
				Case 4:
					ShiftTexture = 0, -0.25, 0.25;
					ShiftTexture = 1, -0.25, 0.25;
				Case 5:
					ShiftTexture = 0, 0.0, 0.125;
					ShiftTexture = 1, 0.0, 0.125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.1875;
					ShiftTexture = 1, 0.0, 0.1875;
				Case 7:
					ShiftTexture = 0, 0.0, 0.25;
					ShiftTexture = 1, 0.0, 0.25;
				Case 8:
					ShiftTexture = 0, 0.25, 0.125;
					ShiftTexture = 1, 0.25, 0.125;
				Case 9:
					If "幕仕様-編成全体"<2{
						ShiftTexture = 0, 0.25, 0.1875;
						ShiftTexture = 1, 0.25, 0.1875;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 10:
					If "幕仕様-編成全体"<2{
						ShiftTexture = 0, 0.25, 0.25;
						ShiftTexture = 1, 0.25, 0.25;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				Case 11:
					If "幕仕様-編成全体"!=1{
						ShiftTexture = 0, 0.5, 0.125;
						ShiftTexture = 1, 0.5, 0.125;
					}Else{
						ShiftTexture = 0, 0.5, 0.5;
						ShiftTexture = 1, 0.5, 0.5;
					}
				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;
				}
			}
		Case 4:
			If!"_FRONT"{
				ApplySwitch "行先(往)"{
				Case 0,2:
					ShiftTexture = 0, -0.25, 0.3125;
					ShiftTexture = 1, -0.25, 0.3125;
				Case 3:
					ShiftTexture = 0, -0.25, 0.375;
					ShiftTexture = 1, -0.25, 0.375;
				Case 4:
					ShiftTexture = 0, -0.25, 0.4375;
					ShiftTexture = 1, -0.25, 0.4375;
				Case 5:
					ShiftTexture = 0, 0.0, 0.3125;
					ShiftTexture = 1, 0.0, 0.3125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.375;
					ShiftTexture = 1, 0.0, 0.375;
				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.3125;
					ShiftTexture = 1, -0.25, 0.3125;
				Case 0,3:
					ShiftTexture = 0, -0.25, 0.375;
					ShiftTexture = 1, -0.25, 0.375;
				Case 4:
					ShiftTexture = 0, -0.25, 0.4375;
					ShiftTexture = 1, -0.25, 0.4375;
				Case 5:
					ShiftTexture = 0, 0.0, 0.3125;
					ShiftTexture = 1, 0.0, 0.3125;
				Case 6:
					ShiftTexture = 0, 0.0, 0.375;
					ShiftTexture = 1, 0.0, 0.375;
				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;
				}
			}
		}
		ApplySwitch "幕仕様-編成全体"{
		Case 0:
			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";
		Case 1:
			ChangeTexture = 0, "../n_omtbn20_1/tex/roll_6.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/roll_6.png";
			ChangeTexture = 2, "../n_omtbn20_1/tex/roll_1.png";
		Case 2:
			ChangeTexture = 0, "../n_omtbn20_1/tex/roll_5.png";
			ChangeTexture = 1, "../n_omtbn20_1/tex/roll_5.png";
			ChangeTexture = 2, "../n_omtbn20_1/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_s"{
		ModelFileName = "../n_omtbn20_1/mark_om.x";
		CastShadow = no;
		If !"ロゴ"{
			If "帯"==3 && "編成">=33{
				ChangeModel = "../n_omtbn20_1/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 = "../n_omtbn20_1/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"{
		ModelFileName = "../n_omtbn20_1/number_20200.x";
		CastShadow = no;
		If "帯"==3&& "編成">=33{
			ChangeModel = "../n_omtbn20_1/number_251.x", 1.0;
		}
		ApplySwitch "帯"{
		Case 0:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.5;
			Case 1:
				ShiftTexture = 0, 0.0, 0.4375;
			Case 2:
				ShiftTexture = 0, 0.0, 0.375;
			Case 3:
				ShiftTexture = 0, 0.0, 0.3125;
			Case 4:
				ShiftTexture = 0, 0.0, 0.25;
			Case 5:
				ShiftTexture = 0, 0.0, 0.1875;
			Case 6:
				ShiftTexture = 0, 0.0, 0.125;
			Case 7:
				ShiftTexture = 0, 0.0, 0.0625;
			}
		Case 1:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.875;
			Case 1:
				ShiftTexture = 0, 0.0, 0.8125;
			Case 2:
				ShiftTexture = 0, 0.0, 0.75;
			Case 3:
				ShiftTexture = 0, 0.0, 0.6875;
			}
		Case 2:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.25;
			Case 1:
				ShiftTexture = 0, 0.25, 0.1875;
			Case 2:
				ShiftTexture = 0, 0.25, 0.125;
			Case 3:
				ShiftTexture = 0, 0.25, 0.0625;
			}
		Case 3:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.625;
			Case 1:
				ShiftTexture = 0, 0.25, 0.5625;
			Case 2:
				ShiftTexture = 0, 0.25, 0.5;
			Case 3:
				ShiftTexture = 0, 0.25, 0.43725;
		}
		Case 4:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.875;
			Case 1:
				ShiftTexture = 0, 0.25, 0.8125;
			}
		}
		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 "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
/*---------------------------------------車番定義ここまで---------------------------------------*/

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

	Object3D "number_sr"{
		ModelFileName = "";
		CastShadow = no;
		If !"リニューアル"&&"帯"!=3&&!("側面幕板部車番"&&(("帯"==0&&"編成"<=8)||("帯"==1&&"編成"<=6)||("帯"==2&&("編成"<=8||"編成"==27)))){
			ChangeModel = "../n_omtbn20_1/number_20200r.x", 1.0;
		}
		ApplySwitch "帯"{
		Case 0:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.5;
			Case 1:
				ShiftTexture = 0, 0.0, 0.4375;
			Case 2:
				ShiftTexture = 0, 0.0, 0.375;
			Case 3:
				ShiftTexture = 0, 0.0, 0.3125;
			Case 4:
				ShiftTexture = 0, 0.0, 0.25;
			Case 5:
				ShiftTexture = 0, 0.0, 0.1875;
			Case 6:
				ShiftTexture = 0, 0.0, 0.125;
			Case 7:
				ShiftTexture = 0, 0.0, 0.0625;
			}
		Case 1:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.0, 0.875;
			Case 1:
				ShiftTexture = 0, 0.0, 0.8125;
			Case 2:
				ShiftTexture = 0, 0.0, 0.75;
			Case 3:
				ShiftTexture = 0, 0.0, 0.6875;
			}
		Case 2:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.25;
			Case 1:
				ShiftTexture = 0, 0.25, 0.1875;
			Case 2:
				ShiftTexture = 0, 0.25, 0.125;
			Case 3:
				ShiftTexture = 0, 0.25, 0.0625;
			}
		Case 3:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.625;
			Case 1:
				ShiftTexture = 0, 0.25, 0.5625;
			Case 2:
				ShiftTexture = 0, 0.25, 0.5;
			Case 3:
				ShiftTexture = 0, 0.25, 0.43725;
		}
		Case 4:
			ApplySwitch "連結位置"{
			Case 0:
				ShiftTexture = 0, 0.25, 0.875;
			Case 1:
				ShiftTexture = 0, 0.25, 0.8125;
			}
		}
		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 !("帯"==0 && "連結位置"==3&&"女性専用車">0) {
			If "リニューアル"{
				If !"ベビーカーマーク"{
					ChangeModel = "../n_omtbn20_1/sticker_1.x", 1.0;
				}Else{
					ChangeModel = "../n_omtbn20_1/sticker_0.x", 1.0;
				}
			}Else{
				If "ロゴ"{
					ChangeModel = "../n_omtbn20_1/sticker_2.x", 1.0;
				}Else{
					ChangeModel = "../n_omtbn20_1/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 "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
/*---------------------------------------ピクトグラムステッカー定義ここまで---------------------------------------*/

/*---------------------------------------女性専用車ステッカー定義ここから---------------------------------------*/
	Object3D "stickerw1"{	//戸袋部
		ModelFileName = "";
		CastShadow = no;
		If "帯"==0 && "連結位置"==3 && "女性専用車"==0 {
			ApplySwitch "女性専用車ステッカー"{
			Case 0:
				If "リニューアル"{
					ChangeModel = "../n_omtbn20_1/sticker_w1.x", 1.0;
				}Else{
					If "編成"==1 || "編成"==3 {
						StaticMove{
							Displacement = (0.0, -0.04, 0.0);
						}
						ChangeModel = "../n_omtbn20_1/sticker_w1.x", 1.0;
					}Else{
						ChangeModel = "../n_omtbn20_1/sticker_w2.x", 1.0;
					}
				}
			Case 1:
				ChangeModel = "../n_omtbn20_1/sticker_w1.x", 1.0;
			Case 2:
				ChangeModel = "../n_omtbn20_1/sticker_w0.x", 1.0;	//このモデルは上部も含む
			}
		}
		If "帯"==1 && "連結位置"==1 && "女性専用車ステッカー"!=3 {
			If !"リニューアル"{
				ChangeModel = "../n_omtbn20_1/sticker_w3.x", 1.0;
			}Else{
				ChangeModel = "../n_omtbn20_1/sticker_w0.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 "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.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 0:
				ApplySwitch "連結位置"{
				Case 0:
					ShiftTexture = 0, 0.03125, 0.03125;
					ShiftTexture = 1, 0.03125, 0.03125;
				Case 1:
					ShiftTexture = 0, -0.0, 0.03125;
					ShiftTexture = 1, -0.0, 0.03125;
				Case 2:
					ShiftTexture = 0, -0.03125, 0.03125;
					ShiftTexture = 1, -0.03125, 0.03125;
				Case 3:
					ShiftTexture = 0, -0.0625, 0.03125;
					ShiftTexture = 1, -0.0625, 0.03125;
				Case 4:
					ShiftTexture = 0, 0.0625, 0.0;
					ShiftTexture = 1, 0.0625, 0.0;
				Case 5:
					ShiftTexture = 0, 0.03125, 0.0;
					ShiftTexture = 1, 0.03125, 0.0;
				Case 7:
					ShiftTexture = 0, -0.03125, 0.0;
					ShiftTexture = 1, -0.03125, 0.0;
				}
			Case 1,4:
				ApplySwitch "連結位置"{
				Case 0:
					ShiftTexture = 0, -0.03125, 0.0;
					ShiftTexture = 1, -0.03125, 0.0;
				Case 2:
					ShiftTexture = 0, 0.03125, 0.0;
					ShiftTexture = 1, 0.03125, 0.0;
				Case 3:
					ShiftTexture = 0, 0.0625, 0.0;
					ShiftTexture = 1, 0.0625, 0.0;
				}
			Case 2,3:
				ApplySwitch "連結位置"{
				Case 0:
					ShiftTexture = 0, 0.0625, 0.0;
					ShiftTexture = 1, 0.0625, 0.0;
				Case 1:
					ShiftTexture = 0, 0.03125, 0.0;
					ShiftTexture = 1, 0.03125, 0.0;
				Case 3:
					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 = "";
		If !("帯"==0 && "連結位置"==3 && "女性専用車">0) {
		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 "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 = "";
		ApplySwitch "帯"{
		Case 0:
			ApplySwitch "連結位置"{
			Case 0,1,3,6,7:
				ChangeModel = "../n_omtbn20_1/yuka_20100.x", 1.0;
			Case 2:
				ChangeModel = "../n_omtbn20_1/yuka_20700.x", 1.0;
			Case 4,5:
				ChangeModel = "../n_omtbn20_1/yuka_20500.x", 1.0;
			}
		Case 1,2,3:
			ApplySwitch "連結位置"{
			Case 0,2,3:
				ChangeModel = "../n_omtbn20_1/yuka_20100.x", 1.0;
			Case 1:
				ChangeModel = "../n_omtbn20_1/yuka_20500.x", 1.0;
			}
		Case 4:
			ChangeModel = "../n_omtbn20_1/yuka_20100.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

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

/*---------------------------------------転防モデル定義ここから---------------------------------------*/

	Object3D "Horo"{
		ModelFileName = "";
		ApplySwitch "転落防止幌"{
			Case 0:
				ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
			Case 2:
				If ("帯"==0 && "連結位置"==7) || (("帯"==1 || "帯"==2 || "帯"==3) &&"連結位置"==3) || ("帯"==4 && "連結位置"==1){
					ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
				}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Horo1"{
		ModelFileName = "";
		ApplySwitch "転落防止幌"{
			Case 0:
				ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
			Case 2:
				ApplySwitch "連結位置"{
					Case 0:
						ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
				}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.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);
		}
	}
}

