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

Mismatch between camera frustums in Map tab and Render Preview #1753

Open
Enderdodo974 opened this issue Aug 27, 2024 · 1 comment
Open

Mismatch between camera frustums in Map tab and Render Preview #1753

Enderdodo974 opened this issue Aug 27, 2024 · 1 comment
Labels
Milestone

Comments

@Enderdodo974
Copy link

There is a clear difference between the camera view in the Map tab and the true camera view in the Render Preview.
It might be due to the world height as well as the FOV. This can affect the 'Select Camera-visible chunks' in significant ways since it can lead to not loading correct chunks.

The scene in the screenshots below has a -2032 to 2032 build height and a fov of 30.
The selected chunks in the Map tab are those previewed in the Render Preview.
image
image

@leMaik leMaik added the bug label Aug 29, 2024
@leMaik leMaik added this to the 2.5.0 milestone Aug 29, 2024
@leMaik
Copy link
Member

leMaik commented Dec 29, 2024

Currently, ChunkMap::findMapPos finds the theoretical hit at y=63, which is a decent approximation for worlds with a 0…256 range but fails for most other ranges. We could check for intersection with the average top y level instead. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants