Patch - Update

This commit is contained in:
CatChow0 2024-09-29 18:19:49 +02:00
parent c9ece7b9b9
commit 3e3620d925
7 changed files with 17 additions and 53 deletions

View File

@ -126,6 +126,7 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd)
// Set the sprite info file we will be using.
//
strcpy_s(spriteFilename, "sprite_data_01.txt");
// Create and initialize the sprite object.
@ -158,7 +159,7 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd)
}
// Set the file name of the bitmap file.
strcpy_s(bitmapFilename, "stone01.tga");
strcpy_s(bitmapFilename, "assets/Texture/stone01.tga");
// Create and initialize the bitmap object.
m_Bitmap = new BitmapClass;
@ -171,16 +172,11 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd)
}
// Set the file name of the model.
strcpy_s(modelFilename, "cube.txt");
strcpy_s(modelFilename, "assets/Model/TXT/cube.txt");
// Charger les textures
std::vector<std::wstring> textureFilenames = {
L"stone01.png",
L"normal01.png",
L"spec02.png",
L"alpha01.png",
L"light01.png",
L"moss01.png"
L"assets/Texture/stone01.png"
};
for (const auto& textureFilename : textureFilenames)
@ -278,16 +274,9 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd)
m_ModelList = new ModelListClass;
m_ModelList->Initialize(25);
// Set the file names of the bath model.
strcpy_s(modelFilename, "bath.txt");
// Charger les textures initiales pour m_BathModel
std::vector<std::wstring> bathTextures = {
L"marble01.png",
L"normal01.png",
L"spec02.png",
L"alpha01.png",
L"light01.png",
L"moss01.png"
L"assets/Texture/marble01.png"
};
textures.clear();
@ -304,7 +293,7 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd)
}
// Set the file name of the bath model.
strcpy_s(modelFilename, "bath.txt");
strcpy_s(modelFilename, "assets/Model/TXT/bath.txt");
// Create and initialize the bath model object.
m_BathModel = new ModelClass;
@ -317,15 +306,10 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd)
}
// Set the file names of the water model.
strcpy_s(modelFilename, "water.txt");
strcpy_s(modelFilename, "assets/Model/TXT/water.txt");
// replace first element with the new filename
std::vector<std::wstring> waterTextures = {
L"water01.png",
L"normal01.png",
L"spec02.png",
L"alpha01.png",
L"light01.png",
L"moss01.png"
L"assets/Texture/water01.png"
};
textures.clear();
@ -1597,13 +1581,13 @@ void ApplicationClass::GenerateTerrain()
scaleMatrix = XMMatrixScaling(scaleX, scaleY, scaleZ);
// Set the file name of the model.
strcpy_s(modelFilename, "plane.txt");
strcpy_s(modelFilename, "assets/Model/TXT/plane.txt");
// Liste des fichiers de texture
std::vector<std::wstring> terrainTexture = {
L"Bricks2K.png",
L"Bricks2K_normal.png",
L"Bricks2K_specular.png"
L"assets/Texture/Bricks2K.png",
L"assets/Texture/BricksNRM2K.png",
L"assets/Texture/BricksGLOSS2K.png"
};
@ -1679,11 +1663,7 @@ void ApplicationClass::AddKobject(WCHAR* filepath)
/// Liste des fichiers de texture
std::vector<std::wstring> kobjTexture = {
L"moss01.png",
L"normal01.png",
L"spec02.png",
L"alpha01.png",
L"light01.png"
L"assets/Texture/moss01.png"
};
@ -1722,15 +1702,11 @@ void ApplicationClass::AddCube()
bool result;
// Set the file name of the model.
strcpy_s(modelFilename, "cube.txt");
strcpy_s(modelFilename, "assets/Model/TXT/cube.txt");
// Liste des fichiers de texture
std::vector<std::wstring> cubeTexture = {
L"moss01.png",
L"normal01.png",
L"spec02.png",
L"alpha01.png",
L"light01.png"
L"assets/Texture/Bricks2K.png"
};

View File

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -250,7 +250,6 @@
<CopyFileToFolders Include="sprite02.tga" />
<CopyFileToFolders Include="sprite03.tga" />
<CopyFileToFolders Include="sprite04.tga" />
<Image Include="stone01.tga" />
</ItemGroup>
<ItemGroup>
<CopyFileToFolders Include="font01.txt" />
@ -291,11 +290,9 @@
<FileType>Text</FileType>
</CopyFileToFolders>
<CopyFileToFolders Include="assets\Model\TXT\cube.txt" />
<CopyFileToFolders Include="assets\Model\TXT\font01.txt" />
<CopyFileToFolders Include="assets\Model\TXT\ground.txt" />
<CopyFileToFolders Include="assets\Model\TXT\plane.txt" />
<CopyFileToFolders Include="assets\Model\TXT\sphere.txt" />
<CopyFileToFolders Include="assets\Model\TXT\sprite_data_01.txt" />
<CopyFileToFolders Include="assets\Model\TXT\square.txt" />
<CopyFileToFolders Include="assets\Model\TXT\wall.txt" />
<CopyFileToFolders Include="assets\Model\TXT\water.txt" />

View File

@ -376,9 +376,6 @@
<Image Include="KhaoticIcon.ico">
<Filter>Assets</Filter>
</Image>
<Image Include="stone01.tga">
<Filter>Assets\Texture</Filter>
</Image>
<Image Include="assets\Texture\BricksGLOSS2K.png">
<Filter>Assets\Texture</Filter>
</Image>
@ -566,9 +563,6 @@
<CopyFileToFolders Include="assets\Model\TXT\cube.txt">
<Filter>Assets\Model\TXT</Filter>
</CopyFileToFolders>
<CopyFileToFolders Include="assets\Model\TXT\font01.txt">
<Filter>Assets\Model\TXT</Filter>
</CopyFileToFolders>
<CopyFileToFolders Include="assets\Model\TXT\ground.txt">
<Filter>Assets\Model\TXT</Filter>
</CopyFileToFolders>
@ -578,9 +572,6 @@
<CopyFileToFolders Include="assets\Model\TXT\sphere.txt">
<Filter>Assets\Model\TXT</Filter>
</CopyFileToFolders>
<CopyFileToFolders Include="assets\Model\TXT\sprite_data_01.txt">
<Filter>Assets\Model\TXT</Filter>
</CopyFileToFolders>
<CopyFileToFolders Include="assets\Model\TXT\square.txt">
<Filter>Assets\Model\TXT</Filter>
</CopyFileToFolders>

View File

@ -15,8 +15,8 @@ Pos=60,60
Size=342,82
[Window][Light]
Pos=1564,17
Size=345,519
Pos=1551,17
Size=358,535
[Window][Shader Manager]
Pos=34,253