Skip to content

Commit aace8b5

Browse files
committed
max image exporting size now at 4k
1 parent d11a657 commit aace8b5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

NormalMapGeneratorTool/imgui.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Collapsed=0
2020

2121
[Window][Settings]
2222
Pos=0,42
23-
Size=280,733
23+
Size=288,951
2424
Collapsed=0
2525

2626
[Window][##Settings]
@@ -54,17 +54,17 @@ Size=520,600
5454
Collapsed=0
5555

5656
[Window][Bottom_Bar]
57-
Pos=0,775
58-
Size=1600,32
57+
Pos=0,993
58+
Size=1920,32
5959
Collapsed=0
6060

6161
[Window][Side_Bar]
62-
Pos=1595,42
63-
Size=32,733
62+
Pos=1915,42
63+
Size=32,951
6464
Collapsed=0
6565

6666
[Window][Preview_Bar]
67-
Pos=1295,42
68-
Size=300,733
67+
Pos=1615,42
68+
Size=300,951
6969
Collapsed=0
7070

NormalMapGeneratorTool/src/FrameBufferSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void FrameBufferSystem::init(int windowWidth, int windowHeight)
2121
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
2222
glGenTextures(1, &textureDepthBuffer);
2323
glBindTexture(GL_TEXTURE_2D, textureDepthBuffer);
24-
glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH24_STENCIL8, 1920, 1080, 0, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, NULL);
24+
glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH24_STENCIL8, 4096, 4096, 0, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, NULL); //Max image size limit is set here for now 4K
2525
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColorbuffer, 0);
2626
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_TEXTURE_2D, textureDepthBuffer, 0);
2727

NormalMapGeneratorTool/src/MainApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
//TODO : Add Uniform Buffers
4343
//TODO : Add shadows and an optional plane
4444
//TODO : Mouse control when preview maximize panel opens
45-
//TODO : Loading images with non-sqaure resolution causes crash
4645
//TODO : Add layers, Definition for layer type can be height map / direct normal map. | Use various blending methods |
4746
//TODO : Keep import and exporting to modal dialogs as well as provide additional options while doing so
4847
//TODO : Look into converting normal map to heightmap for editing purposes
4948
//TODO : Control directional light direction through 3D hemisphere sun object in preview screen
49+
//TODO : Some issue with blurring
5050

5151
enum class LoadingOption
5252
{

0 commit comments

Comments
 (0)