1.5 KiB
1.5 KiB
Troubleshooting
-
Shader compiler not found
- Ensure
glslangValidator(and/orglslcon Windows) is onPATH. - Re‑open your terminal after installing the Vulkan SDK.
- Ensure
-
Windows SDK version mismatch
CMakeLists.txtreferencesC:/VulkanSDK/1.3.296.0by default.- Update the path or set
VULKAN_SDKto your installed version.
-
Validation errors on startup
- Update GPU drivers and Vulkan SDK.
- Try running a Release build to confirm if the issue is validation‑only.
-
Black screen or out‑of‑date swapchain
- Resize the window once to force a swapchain rebuild.
- Check the ImGui “Targets” window for swapchain/draw formats and extent.
-
No models rendering
- Verify
assets/police_office.glbexists (seedocs/ASSETS.md). - Open the “Scene” window to confirm draw counts > 0.
- Verify
-
Shader changes not visible
- Confirm the
.spvfile changed (timestamp) and click “Reload Changed” in the Pipelines window. - Ensure you are editing the correct files referenced by
shaderPath().
- Confirm the
-
GLSL error:
no such field in structure 'materialData': extra- Ensure
shaders/input_structures.glsldefinesvec4 extra[14];insideGLTFMaterialDatato match C++MaterialConstants.
- Ensure
-
Normals look inverted when using normal maps
- The engine expects +Y (green up) tangent-space normals. Flip the green channel in your texture if needed.
-
Tangent seams or artifacts
- Build with MikkTSpace enabled:
-DENABLE_MIKKTS=ON. - Check that your mesh has non-degenerate UVs.
- Build with MikkTSpace enabled: