Skip to content

[Feature Request]: Use njDraw Function for Debug Text #109

Description

@shaddatic

Please provide information regarding your request

Render Fix is currently in the early testing phase for a Reverse Z depth buffer, which entirely solves Z fighting issues that weren't present in the Dreamcast release.

However, the debug text in the Loader uses a custom draw function with a custom shader. This causes the debug text to be drawn at the back of the screen instead of the front, and since it's custom Render Fix can't replace the draw function or shader to fix it.

This can be resolved in two ways:

  1. Switch to using a Ninja draw function. This not only removes the need for any custom drawing code or shader, but also means the Mod Loader will automatically use Render Fix's shaders for any future changes too.
  2. Just disable the Z buffer when drawing the debug text. It's a little crude, but would make it draw no matter the depth.

Option 1 is the most long term solution. The only function I see really working is njDrawTextureEx at 0x0077F6B0. The only issue is it can only draw 4 vertexes per call due to parameter inlining, however it's pretty easy to change it by writing a different value to 0x0077F6BF as long as it's set back after (Render Fix did this for a long time); and that's assuming the Loader will need more than 4.

Render Fix won't move forward with this for a little bit, so there's no rush. But, it will very likely be in the next major update.

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions