microsoft / microsoft/DirectX-Graphics-Samples

[Question] A problem in rendering normal image by MiniEngine

Open
#746 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

miniengine question
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.