chunky
chunky copied to clipboard
Mismatch between camera frustums in Map tab and Render Preview
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.
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. :thinking: