Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High-detail blocks in first-person have gaps in the meshes #32

Open
trigger-segfault opened this issue Jan 17, 2022 · 0 comments
Open
Labels
graphics Relates to how graphics are rendered and displayed on screen. original bug This was an issue in the original game already.

Comments

@trigger-segfault
Copy link
Owner

Describe the issue

When in first-person view (which is the only time high-detail blocks are used). Crevices between the corners and connections of blocks can be seen, especially when they are far away from the unit. This looks awkward, as you can see slightly into the void (fog colour) through these gaps.

Cause

The source of this issue is an effect of scaling the Z dimension based on distance, which is done for unknown reasons. Many different transforms are applied on promesh (high-detail) blocks before they are rendered. The unintended consequences of this scaling are the gaps that form. However, the gaps are still slightly visible with this Z scaling disabled.

Attachments

Preview of how distance from a block changes the appearance of the crevices. They seem to close in, as the view closes in.

Rendering code was changed to showcase this more clearly in topdown view, but the same behaviour holds in first-person views.

OpenLRR_CrevicesBlockDistance_new.mp4
@trigger-segfault trigger-segfault added graphics Relates to how graphics are rendered and displayed on screen. original bug This was an issue in the original game already. labels Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphics Relates to how graphics are rendered and displayed on screen. original bug This was an issue in the original game already.
Projects
None yet
Development

No branches or pull requests

1 participant