chunky icon indicating copy to clipboard operation
chunky copied to clipboard

Mismatch between camera frustums in Map tab and Render Preview

Open Enderdodo974 opened this issue 1 year ago • 1 comments

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

Enderdodo974 avatar Aug 27 '24 14:08 Enderdodo974

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:

leMaik avatar Dec 29 '24 20:12 leMaik