From 1dbbf4aa2d8474ff1fedadabaa3581075013ce19 Mon Sep 17 00:00:00 2001
From: CatChow0 <thetrueshibadoggo@gmail.com>
Date: Fri, 29 Mar 2024 16:19:37 +0100
Subject: [PATCH] Start new terrain

---
 KhaoticDemo/KhaoticDemo.vcxproj         | 140 ++++++++
 KhaoticDemo/KhaoticDemo.vcxproj.filters |  22 ++
 KhaoticDemo/main.cpp                    |   0
 enginecustom.sln                        |  10 +
 enginecustom/applicationclass.cpp       |  53 ++--
 enginecustom/applicationclass.h         |   9 +-
 enginecustom/chunk.txt                  | 403 ++++++++++++++++++++++++
 enginecustom/enginecustom.vcxproj       |   2 +
 enginecustom/imgui.ini                  |   6 +-
 9 files changed, 609 insertions(+), 36 deletions(-)
 create mode 100644 KhaoticDemo/KhaoticDemo.vcxproj
 create mode 100644 KhaoticDemo/KhaoticDemo.vcxproj.filters
 create mode 100644 KhaoticDemo/main.cpp
 create mode 100644 enginecustom/chunk.txt

diff --git a/KhaoticDemo/KhaoticDemo.vcxproj b/KhaoticDemo/KhaoticDemo.vcxproj
new file mode 100644
index 0000000..d17dbb5
--- /dev/null
+++ b/KhaoticDemo/KhaoticDemo.vcxproj
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|Win32">
+      <Configuration>Debug</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|Win32">
+      <Configuration>Release</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x64">
+      <Configuration>Debug</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x64">
+      <Configuration>Release</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <VCProjectVersion>17.0</VCProjectVersion>
+    <Keyword>Win32Proj</Keyword>
+    <ProjectGuid>{9e5ef415-5337-4eed-ae23-edc4b1fff455}</ProjectGuid>
+    <RootNamespace>KhaoticDemo</RootNamespace>
+    <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>v143</PlatformToolset>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>v143</PlatformToolset>
+    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <PlatformToolset>v143</PlatformToolset>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <PlatformToolset>v143</PlatformToolset>
+    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings">
+  </ImportGroup>
+  <ImportGroup Label="Shared">
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <PropertyGroup Label="UserMacros" />
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <ClCompile>
+      <WarningLevel>Level3</WarningLevel>
+      <SDLCheck>true</SDLCheck>
+      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <ConformanceMode>true</ConformanceMode>
+    </ClCompile>
+    <Link>
+      <SubSystem>Console</SubSystem>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <ClCompile>
+      <WarningLevel>Level3</WarningLevel>
+      <FunctionLevelLinking>true</FunctionLevelLinking>
+      <IntrinsicFunctions>true</IntrinsicFunctions>
+      <SDLCheck>true</SDLCheck>
+      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <ConformanceMode>true</ConformanceMode>
+    </ClCompile>
+    <Link>
+      <SubSystem>Console</SubSystem>
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>
+      <OptimizeReferences>true</OptimizeReferences>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <ClCompile>
+      <WarningLevel>Level3</WarningLevel>
+      <SDLCheck>true</SDLCheck>
+      <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <ConformanceMode>true</ConformanceMode>
+    </ClCompile>
+    <Link>
+      <SubSystem>Console</SubSystem>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <ClCompile>
+      <WarningLevel>Level3</WarningLevel>
+      <FunctionLevelLinking>true</FunctionLevelLinking>
+      <IntrinsicFunctions>true</IntrinsicFunctions>
+      <SDLCheck>true</SDLCheck>
+      <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <ConformanceMode>true</ConformanceMode>
+    </ClCompile>
+    <Link>
+      <SubSystem>Console</SubSystem>
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>
+      <OptimizeReferences>true</OptimizeReferences>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\enginecustom\enginecustom.vcxproj">
+      <Project>{92cf56c4-76bb-40d4-8fe5-36c15f5f127a}</Project>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="main.cpp" />
+  </ItemGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets">
+  </ImportGroup>
+</Project>
\ No newline at end of file
diff --git a/KhaoticDemo/KhaoticDemo.vcxproj.filters b/KhaoticDemo/KhaoticDemo.vcxproj.filters
new file mode 100644
index 0000000..5d997ac
--- /dev/null
+++ b/KhaoticDemo/KhaoticDemo.vcxproj.filters
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup>
+    <Filter Include="Fichiers sources">
+      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
+      <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
+    </Filter>
+    <Filter Include="Fichiers d%27en-tête">
+      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
+      <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
+    </Filter>
+    <Filter Include="Fichiers de ressources">
+      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
+    </Filter>
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="main.cpp">
+      <Filter>Fichiers sources</Filter>
+    </ClCompile>
+  </ItemGroup>
+</Project>
\ No newline at end of file
diff --git a/KhaoticDemo/main.cpp b/KhaoticDemo/main.cpp
new file mode 100644
index 0000000..e69de29
diff --git a/enginecustom.sln b/enginecustom.sln
index 1ae2734..1248089 100644
--- a/enginecustom.sln
+++ b/enginecustom.sln
@@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34607.119
 MinimumVisualStudioVersion = 10.0.40219.1
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "enginecustom", "enginecustom\enginecustom.vcxproj", "{92CF56C4-76BB-40D4-8FE5-36C15F5F127A}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "KhaoticDemo", "KhaoticDemo\KhaoticDemo.vcxproj", "{9E5EF415-5337-4EED-AE23-EDC4B1FFF455}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|x64 = Debug|x64
@@ -21,6 +23,14 @@ Global
 		{92CF56C4-76BB-40D4-8FE5-36C15F5F127A}.Release|x64.Build.0 = Release|x64
 		{92CF56C4-76BB-40D4-8FE5-36C15F5F127A}.Release|x86.ActiveCfg = Release|Win32
 		{92CF56C4-76BB-40D4-8FE5-36C15F5F127A}.Release|x86.Build.0 = Release|Win32
+		{9E5EF415-5337-4EED-AE23-EDC4B1FFF455}.Debug|x64.ActiveCfg = Debug|x64
+		{9E5EF415-5337-4EED-AE23-EDC4B1FFF455}.Debug|x64.Build.0 = Debug|x64
+		{9E5EF415-5337-4EED-AE23-EDC4B1FFF455}.Debug|x86.ActiveCfg = Debug|Win32
+		{9E5EF415-5337-4EED-AE23-EDC4B1FFF455}.Debug|x86.Build.0 = Debug|Win32
+		{9E5EF415-5337-4EED-AE23-EDC4B1FFF455}.Release|x64.ActiveCfg = Release|x64
+		{9E5EF415-5337-4EED-AE23-EDC4B1FFF455}.Release|x64.Build.0 = Release|x64
+		{9E5EF415-5337-4EED-AE23-EDC4B1FFF455}.Release|x86.ActiveCfg = Release|Win32
+		{9E5EF415-5337-4EED-AE23-EDC4B1FFF455}.Release|x86.Build.0 = Release|Win32
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
diff --git a/enginecustom/applicationclass.cpp b/enginecustom/applicationclass.cpp
index 31e80bd..5cfad25 100644
--- a/enginecustom/applicationclass.cpp
+++ b/enginecustom/applicationclass.cpp
@@ -153,12 +153,12 @@ void ApplicationClass::Shutdown()
 	m_cubes.clear();
 
 	// Liberez la memoire pour chaque cube du terrain
-	for (auto cube : m_terrainCubes)
+	for (auto cube : m_terrainChunk)
 	{
 		cube->Shutdown();
 		delete cube;
 	}
-	m_terrainCubes.clear();
+	m_terrainChunk.clear();
 
 	return;
 }
@@ -236,7 +236,7 @@ bool ApplicationClass::Render(float rotation)
 		srMatrix = XMMatrixMultiply(scaleMatrix, rotateMatrix);
 		worldMatrix = XMMatrixMultiply(srMatrix, translateMatrix);
 
-		result = m_LightShader->Render(m_Direct3D->GetDeviceContext(), m_Model->GetIndexCount(), worldMatrix, viewMatrix, projectionMatrix, m_Model->GetTexture(),
+		result = m_LightShader->Render(m_Direct3D->GetDeviceContext(), cube->GetIndexCount(), worldMatrix, viewMatrix, projectionMatrix, cube->GetTexture(),
                                    diffuseColor, lightPosition);
 		if (!result)
 		{
@@ -244,14 +244,15 @@ bool ApplicationClass::Render(float rotation)
 		}
 	}
 
-	// Render terrainCube after all the cubes have been combined
-	for (auto cube : m_terrainCubes)
+	// Render terrain
+	for (auto chunk : m_terrainChunk)
 	{
-		cube->Render(m_Direct3D->GetDeviceContext());
+		chunk->Render(m_Direct3D->GetDeviceContext());
+
+		scaleMatrix = chunk->GetScaleMatrix();
+		rotateMatrix = chunk->GetRotateMatrix();
+		translateMatrix = chunk->GetTranslateMatrix();
 
-		scaleMatrix = cube->GetScaleMatrix();
-		rotateMatrix = cube->GetRotateMatrix();
-		translateMatrix = cube->GetTranslateMatrix();
 		srMatrix = XMMatrixMultiply(scaleMatrix, rotateMatrix);
 		worldMatrix = XMMatrixMultiply(srMatrix, translateMatrix);
 
@@ -264,7 +265,6 @@ bool ApplicationClass::Render(float rotation)
 	}
 
 
-
 	// Present the rendered scene to the screen.
 	m_Direct3D->EndScene();
 
@@ -288,33 +288,28 @@ int ApplicationClass::GetScreenHeight() const
 
 void ApplicationClass::GenerateTerrain()
 {
-	char modelFilename[128];
-	char textureFilename[128];
-
 	// Set the file name of the model.
-	strcpy_s(modelFilename, "cube.txt");
+	char modelFilename[128];
+
+	// check if a chunk file already exists
+	strcpy_s(modelFilename, "chunk.txt");
 
 	// Set the name of the texture file that we will be loading.
+	char textureFilename[128];
 	strcpy_s(textureFilename, "stone01.tga");
 
-	// Create cube objects to fill a 10x10 grid of cubes
-	for (int i = -10; i < 10; i++)
-	{
-		for (int j = -10; j < 10; j++)
-		{
-			Object* newCube = new Object();
-			newCube->Initialize(m_Direct3D->GetDevice(), m_Direct3D->GetDeviceContext(), modelFilename, textureFilename);
+	Object* newTerrain = new Object();
+	newTerrain->Initialize(m_Direct3D->GetDevice(), m_Direct3D->GetDeviceContext(), modelFilename, textureFilename);
 
-			newCube->SetTranslateMatrix(XMMatrixTranslation(i * 2.0f, -4.0f, j * 2.0f));
+	newTerrain->SetTranslateMatrix(XMMatrixTranslation(0.0f, -1.0f, 0.0f));
+	newTerrain->SetRotateMatrix(XMMatrixRotationY(180.0f));
 
-			m_terrainCubes.push_back(newCube);
-		}
-	}
+	m_cubes.push_back(newTerrain);
 
-	
-	
 }
 
+
+
 void ApplicationClass::AddCube()
 {
 	char modelFilename[128];
@@ -347,10 +342,10 @@ void ApplicationClass::DeleteCube(int index)
 
 void ApplicationClass::DeleteTerrain()
 {
-	for (auto cube : m_terrainCubes)
+	for (auto cube : m_terrainChunk)
 	{
 		cube->Shutdown();
 		delete cube;
 	}
-	m_terrainCubes.clear();
+	m_terrainChunk.clear();
 }
\ No newline at end of file
diff --git a/enginecustom/applicationclass.h b/enginecustom/applicationclass.h
index 787539f..a78e80d 100644
--- a/enginecustom/applicationclass.h
+++ b/enginecustom/applicationclass.h
@@ -12,6 +12,7 @@
 #include "lightclass.h"
 #include <vector>
 
+
 /////////////
 // GLOBALS //
 /////////////
@@ -45,9 +46,9 @@ public:
 	void AddCube();
 	void DeleteCube(int index);
 	int GetCubeCount() const { return m_cubes.size(); };
-	int GetTerrainCubeCount() const { return m_terrainCubes.size(); };
+	int GetTerrainCubeCount() const { return m_terrainChunk.size(); };
 	std::vector<Object*> GetCubes() const { return m_cubes; };
-	std::vector<Object*> GetTerrainCubes() const { return m_terrainCubes; };
+	std::vector<Object*> GetTerrainCubes() const { return m_terrainChunk; };
 
 	void GenerateTerrain();
 	void DeleteTerrain();
@@ -68,7 +69,7 @@ private:
 	LightClass* m_Lights;
 	int m_numLights;
 	std::vector<Object*> m_cubes;
-	std::vector<Object*> m_terrainCubes;
+	std::vector<Object*> m_terrainChunk;
 };
 
-#endif
+#endif
\ No newline at end of file
diff --git a/enginecustom/chunk.txt b/enginecustom/chunk.txt
new file mode 100644
index 0000000..2717f8e
--- /dev/null
+++ b/enginecustom/chunk.txt
@@ -0,0 +1,403 @@
+Vertex Count: 400
+
+Data:
+0 0.0 0 0.0 0.0 0.0 1.0 0.0
+1 0.0 0 1.0 0.0 0.0 1.0 0.0
+1 0.0 1 1.0 1.0 0.0 1.0 0.0
+0 0.0 1 0.0 1.0 0.0 1.0 0.0
+0 0.0 1 0.0 0.0 0.0 1.0 0.0
+1 0.0 1 1.0 0.0 0.0 1.0 0.0
+1 0.0 2 1.0 1.0 0.0 1.0 0.0
+0 0.0 2 0.0 1.0 0.0 1.0 0.0
+0 0.0 2 0.0 0.0 0.0 1.0 0.0
+1 0.0 2 1.0 0.0 0.0 1.0 0.0
+1 0.0 3 1.0 1.0 0.0 1.0 0.0
+0 0.0 3 0.0 1.0 0.0 1.0 0.0
+0 0.0 3 0.0 0.0 0.0 1.0 0.0
+1 0.0 3 1.0 0.0 0.0 1.0 0.0
+1 0.0 4 1.0 1.0 0.0 1.0 0.0
+0 0.0 4 0.0 1.0 0.0 1.0 0.0
+0 0.0 4 0.0 0.0 0.0 1.0 0.0
+1 0.0 4 1.0 0.0 0.0 1.0 0.0
+1 0.0 5 1.0 1.0 0.0 1.0 0.0
+0 0.0 5 0.0 1.0 0.0 1.0 0.0
+0 0.0 5 0.0 0.0 0.0 1.0 0.0
+1 0.0 5 1.0 0.0 0.0 1.0 0.0
+1 0.0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0.0 1.0 0.0 1.0 0.0
+9 0.0 4 0.0 0.0 0.0 1.0 0.0
+10 0.0 4 1.0 0.0 0.0 1.0 0.0
+10 0.0 5 1.0 1.0 0.0 1.0 0.0
+9 0.0 5 0.0 1.0 0.0 1.0 0.0
+9 0.0 5 0.0 0.0 0.0 1.0 0.0
+10 0.0 5 1.0 0.0 0.0 1.0 0.0
+10 0.0 6 1.0 1.0 0.0 1.0 0.0
+9 0.0 6 0.0 1.0 0.0 1.0 0.0
+9 0.0 6 0.0 0.0 0.0 1.0 0.0
+10 0.0 6 1.0 0.0 0.0 1.0 0.0
+10 0.0 7 1.0 1.0 0.0 1.0 0.0
+9 0.0 7 0.0 1.0 0.0 1.0 0.0
+9 0.0 7 0.0 0.0 0.0 1.0 0.0
+10 0.0 7 1.0 0.0 0.0 1.0 0.0
+10 0.0 8 1.0 1.0 0.0 1.0 0.0
+9 0.0 8 0.0 1.0 0.0 1.0 0.0
+9 0.0 8 0.0 0.0 0.0 1.0 0.0
+10 0.0 8 1.0 0.0 0.0 1.0 0.0
+10 0.0 9 1.0 1.0 0.0 1.0 0.0
+9 0.0 9 0.0 1.0 0.0 1.0 0.0
+9 0.0 9 0.0 0.0 0.0 1.0 0.0
+10 0.0 9 1.0 0.0 0.0 1.0 0.0
+10 0.0 10 1.0 1.0 0.0 1.0 0.0
+9 0.0 10 0.0 1.0 0.0 1.0 0.0
diff --git a/enginecustom/enginecustom.vcxproj b/enginecustom/enginecustom.vcxproj
index eaa80c3..3781146 100644
--- a/enginecustom/enginecustom.vcxproj
+++ b/enginecustom/enginecustom.vcxproj
@@ -87,9 +87,11 @@
     </None>
   </ItemGroup>
   <ItemGroup>
+    <Image Include="..\..\..\..\Downloads\grass.tga" />
     <Image Include="stone01.tga" />
   </ItemGroup>
   <ItemGroup>
+    <Text Include="..\..\..\..\Downloads\chunk.txt" />
     <Text Include="cube.txt" />
   </ItemGroup>
   <PropertyGroup Label="Globals">
diff --git a/enginecustom/imgui.ini b/enginecustom/imgui.ini
index 9149254..102e49b 100644
--- a/enginecustom/imgui.ini
+++ b/enginecustom/imgui.ini
@@ -3,14 +3,14 @@ Pos=60,60
 Size=400,400
 
 [Window][Khaotic Engine]
-Pos=586,8
+Pos=129,554
 Size=694,183
 
 [Window][Objects]
-Pos=11,5
+Pos=5,7
 Size=492,353
 
 [Window][Terrain]
-Pos=1297,54
+Pos=1223,101
 Size=418,94