To explain, the code in my prior commits will not honor zooming at all, because it does not adjust the coordinates appropriately. This modification simply scales the world coordinates by the zoom factor before converting them to voxel coordinates.
I also realized that I am not getting a true field of view for the images, so the overlay is sometimes cropped in an unexpected way. I need to figure out a good fix for this.
This makes it work again.
To explain, the code in my prior commits will not honor zooming at all, because it does not adjust the coordinates appropriately. This modification simply scales the world coordinates by the zoom factor before converting them to voxel coordinates.
I also realized that I am not getting a true field of view for the images, so the overlay is sometimes cropped in an unexpected way. I need to figure out a good fix for this.