ImGui Colors #3787
Replies: 5 comments 2 replies
-
Try messing with the gamma (e.g. powf(1/2.2f) in your vertex shader).
Something is wrong about your render state: blending or z-testing. |
Beta Was this translation helpful? Give feedback.
-
Update - The text artifacts turned out to be a draw order issue which I've corrected. |
Beta Was this translation helpful? Give feedback.
-
So applying a gamma correction seems to have pushed it further in the other direction, leading me to believe that maybe something in my pipeline is automatically applying a gamma correction? Which seems implausible because it's Vulkan so since I didn't sweat it out for a week I'm sure it didn't "give" it to me. |
Beta Was this translation helpful? Give feedback.
-
Ah ok, once I did what you said @ocornut, and UNDID the gamma correction (gamma = 1.f/2.2f), it now looks the same (see attached). So the question becomes - Why do I have to do this when nobody else does? What have I Done? If I like the "corrected/wrong" look better, will that make things render incorrectly? |
Beta Was this translation helpful? Give feedback.
-
Ok I think it's because I'm using VK_FORMAT_B8G8R8A8_SRGB for my requested VkSurfaceFormatKHR for my swapchain, whereas the examples are using VK_FORMAT_R8G8B8A8_UNORM. I feel better. Thanks again for your help! |
Beta Was this translation helpful? Give feedback.
-
Hi! I hope this is the right place for this question. I have a two part.
1 - My colors (right side of image) seem to look different than the examples (left side) using the same style. Is there any known reason why this would happen? I've been using ImGui for a while with no major issues so I think my Vulkan renderer is handling it properly.
2 - Sometimes I get artifacts around multi line text inputs when I have it open and then open a few menus. Has anyone ever seen this?
Thanks!!!
Beta Was this translation helpful? Give feedback.
All reactions