Start on scene loader
This commit is contained in:
parent
05e311f042
commit
384185ab4a
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -331,13 +331,12 @@ namespace FirstPlugin
|
||||
for (int v = 0; v < mesh.VertexCount; v++)
|
||||
{
|
||||
Vertex vert = new Vertex();
|
||||
uint Unknown = reader.ReadUInt32(); //Bone index?
|
||||
vert.pos = reader.ReadVec3();
|
||||
vert.nrm = reader.ReadVec3();
|
||||
vert.uv0 = reader.ReadVec2();
|
||||
vert.uv1 = reader.ReadVec2();
|
||||
|
||||
Vertices.Add(vert);
|
||||
Unknowns.Add(Unknown);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
43
Switch_FileFormatsMain/Scenes/SMO_Scene.cs
Normal file
43
Switch_FileFormatsMain/Scenes/SMO_Scene.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FirstPlugin
|
||||
{
|
||||
public class SMO_Scene
|
||||
{
|
||||
public Dictionary<string, string> OdysseyStages = new Dictionary<string, string>()
|
||||
{
|
||||
//Main
|
||||
{ "CapWorldHomeStage","Cap Kingdom" },
|
||||
{ "WaterfallWorldHomeStage","Cascade Kingdom" },
|
||||
{ "SandWorldHomeStage","Sand Kindom" },
|
||||
{ "SnowWorldHomeStage","Snow Kingdom" },
|
||||
{ "SeaWorldHomeStage", "Seaside Kingdom" },
|
||||
{ "ClashWorldHomeStage","Lost Kingdom" },
|
||||
{ "CityWorldHomeStage","Metro Kingdom" },
|
||||
{ "LakeWorldHomeStage","Lake Kingdom(Starting Area)" },
|
||||
{ "SkyWorldHomeStage","Bowser\'s Kingdom" },
|
||||
{ "BossRaidWorldHomeStage","Ruined Kingdom" },
|
||||
{ "MoonWorldHomeStage","Moon Kingdom" },
|
||||
{ "LavaWorldHomeStage","Luncheon Kingdom" },
|
||||
{"PeachWorldHomeStage", "Mushroom Kingdom" },
|
||||
|
||||
{"Special1WorldHomeStage", "Dark Side of the Moon"},
|
||||
{"Special2WorldHomeStage", "Darker Side of the Moon"},
|
||||
|
||||
//Sub areas
|
||||
{ "MeganeLiftExStage","MoEye moving Platform" },
|
||||
{ "SandWorldPyramid000Stage","Pyramid(Starting Area)" },
|
||||
{ "SandWorldPyramid001Stage","Pyramid(Bullet Bill Parkour)" },
|
||||
{ "SandWorldUnderground000Stage","Ice Underground before Boss" },
|
||||
{ "SandWorldUnderground001Stage","Ice Underground Boss" },
|
||||
{ "LakeWorldTownZone","LakeKingdom (Town Area)" },
|
||||
{ "ForestWorldHomeStage","Wodded Kingdom" },
|
||||
{ "DemoCrashHomeFallStage","Cloud Kingdom(1. Bowser Fight)" },
|
||||
{ "Theater2DExStage","Theater (smb 1-1)" },
|
||||
};
|
||||
}
|
||||
}
|
67
Switch_FileFormatsMain/Scenes/ztp_Scene.cs
Normal file
67
Switch_FileFormatsMain/Scenes/ztp_Scene.cs
Normal file
@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Switch_Toolbox.Library;
|
||||
|
||||
namespace FirstPlugin.Scenes
|
||||
{
|
||||
public class ZTP_Scene
|
||||
{
|
||||
private readonly Dictionary<string, string> TwilightPrincessObjectFiles = new Dictionary<string, string>()
|
||||
{
|
||||
{ "@bg0000","" },
|
||||
};
|
||||
|
||||
private void LoadStage()
|
||||
{
|
||||
string StageDirectory = $"{Runtime.TpGamePath}/res/Stage/";
|
||||
}
|
||||
|
||||
//List from https://github.com/magcius/noclip.website/blob/7c8443aab5228811157c30d8985707d23d64ee53/src/j3d/ztp_scenes.ts#L344
|
||||
private readonly Dictionary<string, string> TwilightPrincessStageFiles = new Dictionary<string, string>()
|
||||
{
|
||||
{ "F_SP102","Hyrule Field Map 1"},
|
||||
{ "F_SP121","Hyrule Field Map 2" },
|
||||
{ "F_SP122","Hyrule Field Map 3" },
|
||||
{ "F_SP123","Lake Hylia" },
|
||||
|
||||
{ "F_SP00","Ordon Ranch" },
|
||||
{ "F_SP103","Link's House Area" },
|
||||
{ "F_SP104","Ordon Woods" },
|
||||
{ "F_SP108","Faron Woods" },
|
||||
{ "F_SP109","Kakariko Village" },
|
||||
{ "F_SP110","Death Mountain Trail" },
|
||||
{ "F_SP111","Kakariko Graveyard" },
|
||||
{ "F_SP112","Rapids Ride" },
|
||||
{ "F_SP113","Zora's Domain" },
|
||||
{ "F_SP114","Snowpeak Mountain" },
|
||||
{ "F_SP115","Lanayru's Spring" },
|
||||
{ "F_SP116","Castle Town" },
|
||||
{ "F_SP117","Sacred Grove" },
|
||||
{ "F_SP118","Gerudo Desert Bulblin Base" },
|
||||
{ "F_SP124","Gerudo Desert" },
|
||||
{ "F_SP125","Arbiter's Grounds Mirror Chamber" },
|
||||
{ "F_SP126","Zora's River" },
|
||||
{ "F_SP127","Fishing Pond" },
|
||||
{ "F_SP128","Hidden Village" },
|
||||
{ "F_SP200","Wolf Howling Cutscene Map"},
|
||||
|
||||
//Dungeons
|
||||
{ "D_MN05","Forest Temple"},
|
||||
{ "D_MN05A","Forest Temple Boss Arena"},
|
||||
{ "D_MN05B","Forest Temple Mini-Boss Arena"},
|
||||
|
||||
{ "D_MN04","Goron Mines"},
|
||||
{ "D_MN04A","Goron Mines Boss Arena"},
|
||||
{ "D_MN04B","Goron Mines Mini-Boss Arena"},
|
||||
|
||||
{ "D_MN01","Lakebed Temple"},
|
||||
{ "D_MN01A","Lakebed Temple Boss Arena"},
|
||||
{ "D_MN01B","Lakebed Temple Mini-Boss Arena"},
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}
|
@ -322,6 +322,8 @@
|
||||
<Compile Include="GUI\BFRES\SmoothNormalsMultiMeshForm.Designer.cs">
|
||||
<DependentUpon>SmoothNormalsMultiMeshForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Scenes\SMO_Scene.cs" />
|
||||
<Compile Include="Scenes\ZTP_Scene.cs" />
|
||||
<Compile Include="YAML\YamlAamp.cs" />
|
||||
<Compile Include="GUI\BCRES\BcresEditor.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
|
Binary file not shown.
Binary file not shown.
@ -360,10 +360,10 @@ namespace Switch_Toolbox.Library.Rendering
|
||||
|
||||
// GL.ActiveTexture(TextureUnit.Texture0 + texid);
|
||||
GL.BindTexture(TextureTarget.Texture2D, texture.RenderableTex.TexID);
|
||||
GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureWrapS, (int)STGenericMatTexture.wrapmode[tex.wrapModeS]);
|
||||
GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureWrapT, (int)STGenericMatTexture.wrapmode[tex.wrapModeT]);
|
||||
GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureMinFilter, (int)STGenericMatTexture.minfilter[tex.minFilter]);
|
||||
GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureMagFilter, (int)STGenericMatTexture.magfilter[tex.magFilter]);
|
||||
GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureWrapS, (int)tex.wrapModeS);
|
||||
GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureWrapT, (int)tex.wrapModeT);
|
||||
GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureMinFilter, (int)tex.minFilter);
|
||||
GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureMagFilter, (int)tex.magFilter);
|
||||
GL.TexParameter(TextureTarget.Texture2D, (TextureParameterName)ExtTextureFilterAnisotropic.TextureMaxAnisotropyExt, 0.0f);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user