Multiplanar ZM - #5387
Open
Lohikar wants to merge 21 commits into
Open
Conversation
(ZM needs to iterate all turfs in world for init)
Lohikar
commented
Jul 5, 2026
| if(href_list["Vars"]) | ||
| debug_variables(locate(href_list["Vars"])) | ||
| if(href_list["zm_analyze"]) | ||
| analyze_openturf(locate(href_list["zm_analyze"])) |
Member
Author
There was a problem hiding this comment.
This feels ugly, open to better places to put it (though this is safe as-is, it already checks rights).
Contributor
There was a problem hiding this comment.
It's already pretty ugly, should be fine imo. At least the debug analysis stuff is somewhat centralised.
Member
Author
|
Depends on #5393. |
- Shadowers are no longer used for dimming the below level. - `/turf/space` mimic is now supported and performant. - ZM now mimics large turfs that are below non-large boundaries. - Midspan AO is now rendered. - Layering logic has been purged of magic numbers (mostly). - MIMIC_OVERWRITE has been renamed to MIMIC_REPLACE - The analyzer now shows more things and lies to you less. - Overlays now tick 4 times per lagcheck for efficiency. - Synchronous overlay operations are now available. - Synchronous AO updates are now available. - Correctness fixes for boundaries.
Lohikar
marked this pull request as ready for review
August 25, 2026 03:58
| RAISE_EVENT(/decl/observ/logged_in, src) | ||
|
|
||
| hud_reset(TRUE) | ||
| SSzcopy.CreatePlanesFor(client) |
Contributor
There was a problem hiding this comment.
A slightly more systematic approach to this might be nice, even it it's just a create_plane_masters() proc or such. Could move refresh_lightning_master() in there.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This generally reworks how ZM renders: depths now consist of multiple render slices, which are summed into 'zsum' objects for purposes of alpha masking. Adding new render slices is significantly easier than it used to be, and it is now possible to support things like darksight/ghostsight, emissives, and planar lighting effects in ZM. MZ checks have also generally been standardized around the ZM helpers instead of bespoke (slightly different) logic in a few places.
changes:
BOUNDARY andOVERRIDE.ZM_MIMIC_OVERWRITEhas been renamed toZM_MIMIC_REPLACEfor clarity vs OVERRIDE./turf/spaceis now supported and performant.The way the plane master objects are being initialized here is not necessarily ideal -- it's largely a result of O7 just not really having a graceful way to do this. While I do want to keep the mimic master code as close as possible to the O7 version of it, I'm open to better approaches than CreatePlanesFor().
This PR is incomplete (but fully functional), further optimizations to shadowers are being tested.