-
Notifications
You must be signed in to change notification settings - Fork 14
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
Screenshots not working for enormous resolutions. #28
Comments
Sounds like an integer overflow someplace. Probably could be fixed by increasing the size of the types that are used to store resolutions/indices. I'm not familiar with the internals though. |
mineshot/src/main/java/info/ata4/minecraft/mineshot/client/capture/FramebufferCapturer.java Line 38 in 91c664e
65500 * 65500 * 3 overflows to -14151888 As far as I can tell, the ByteBuffer class cannot have a buffer greater than the maximum allowable Java array size, which is 2^32 - 8. The maximum image size must be less than this, ex. 37837 * 37837 * 3. The LWJGL function glReadPixels() only accepts objects of the type Buffer, so there's not much that can be done. Did you enable Tiled Rendering? This seems to be the only way to get around this limitation. |
Umm.... When I enable tile rendering, it takes normal screenshots and arrange them one after the other to fill the space (the dimensions I provide). Is that what its supposed to do? And then what's it actual use? |
Nice mod, but few problems:
-> Screenshots as big as 20000x20000 are just huge black squares.
-> Screenshots as big as the 65500x65500 are not even accepted. When I press F9, a message pops up
"Couldn't save screenshot: Negative capacity: -14151888"
I use Photo Paint to view the images, have 8gb ram, and a full TB left in my hard drive.
Thank you.
The text was updated successfully, but these errors were encountered: