microsoft / microsoft/DirectX-Graphics-Samples
[Question] A problem in rendering normal image by MiniEngine
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 6.8k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
I try to render a normal image in miniengine. So I modify the last line in function [shader("closesthit")] void Hit in file D3D12RaytracingMiniEngineSample/DiffuseHitShaderLib.hlsl as: g_screenOutput[DispatchRaysIndex().xy] = float4(normal, 1);. However, there are always large black squares on the output image. How can I fix this problem?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading D3D12RaytracingMiniEngineSample/DiffuseHitShaderLib.hlsl, especially the [shader("closesthit")] Hit function and its modified output assignment. Reproduce the normal-image output and investigate the large black squares; done means the normal image renders without those artifacts.
Written by the indexing model from the issue text.
Assessment
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100