Zelda64Recomp / Zelda64Recomp

Static recompilation of Majora's Mask (and soon Ocarina of Time) for PC (Windows/Linux)
GNU General Public License v3.0
5.04k stars 256 forks source link

[Request] Increased Draw Distance #145

Open theboy181 opened 2 months ago

theboy181 commented 2 months ago

Here is a GameShark Code (will lead back to the ASM's floats) to increase the draw distance of objects.

810DF3DA 3EAA (0x3f800000) < original value 8113EF0E 4150 (0x41200000) < original value 81464A20 NOP ( JAL 0x8017A6F8) < original value

The Legend of Zelda - Majora's Mask (U) 1.0.0

Increase Draw Distance

810DF3DA 3EAA
8113EF0E 4150
81464A20 0000
81464A22 0000

Notes: Not fully tested - Will Increase the Draw Distance of all objects. Note sounds can be heard form more objects getting rendered.

Would you be willing to add this to the options menu in the future? I think the addition of the other features are great, and something like this will improve things even further. I noticed that branching is set to F3DEX and this increased the draw distance of items like the hanging flags and fences in town (this looks great!).

Marcelo20XX commented 2 months ago

It is possible to make it using the custom Patch System? I would love to port some GameSharks codes. I will do it myself by I am having troubles trying to build the project on Windows

theboy181 commented 2 months ago

It is possible to make it using the custom Patch System? I would love to port some GameSharks codes. I will do it myself by I am having troubles trying to build the project on Windows

How do you custom Patch?

Marcelo20XX commented 2 months ago

There is a custom system used to apply patches on the source, the examples are in https://github.com/Mr-Wiseguy/Zelda64Recomp/tree/dev/patches

theboy181 commented 2 months ago

There is a custom system used to apply patches on the source, the examples are in https://github.com/Mr-Wiseguy/Zelda64Recomp/tree/dev/patches

Would you mind showing us an example on how it would look from the code above? I have included a patch that will also draw all the grass.

Marcelo20XX commented 2 months ago

Sadly I have hit a wall there too, because I couldn't test any changes I made to see if it worked or not what I was trying to do (Hide the position of some HUD elements based on some GameShark codes). I read that instructions on how to compile the project will be added soon so I am waiting that commit to try it again.