Immediate-Mode-UI / Immediate-Mode-UI/Nuklear

D3D9 Hook in EndScene

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

Nobody has claimed this yet.

Dominant language
C
Stars
11.4k
Forks
686
Avg merge
4d 1h
Merged PRs (30d)
3

Description

Can anyone point me in the direction of how to successfully implement Nuklear in an EndScene hook for D3D9?

I am wanting to switch from Imgui which I have working successfully but there seems to be far less resources on how to implement Nuklear in a hook (especially D3D9).

I have used the d3d9 file in the demos and tried to extrapolate from the creation of a D3D9 device to using an existing one in a hook.

The test menu is showing but I have a red distorted background and I'm not sure if that's intentional or a bug with the hook. See below:

![image](https://user-images.githubusercontent.com/19478126/96282225-6f3b1f00-0fa8-11eb-88b9-3aa5654e4a0d.png)

Thanks in advance.

Contributor guide

Open the contributing guide

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 with the D3D9 file in the demos and compare its device setup with the existing-device EndScene hook described here. Investigate the red distorted background while the test menu is visible, using the attached image as the symptom reference. Done means Nuklear renders correctly in the hook without the distortion.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.