-
Notifications
You must be signed in to change notification settings - Fork 40
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
Error while trying to paint a very large map #48
Comments
Creating an image of that size would take more than 10 GiB of RAM. |
How can I do it without cropping the map and losing its part? |
You'd generate a giant png image. Viewing it e.g. with an image viewer would not work because it'd need to allocate 4 bytes for each pixel. There's a related issue l think: FLIF-hub/FLIF#12 |
Generate multiple 4000x4000 maps and edit them together in an image editor. |
I need to update the map on daily basis. Are you suggesting to edit the
tiles manually each day instead of changing a couple lines of code? I
worked with different open-source projects, but this is way out of line.
24 мар. 2018 г. 11:18 пользователь "Paramat" <[email protected]>
написал:
There is also no setting to split the map to a set of tiles
Generate multiple 4000x4000 maps and edit them together in an image editor.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAvCBu14g9frxRslo4VpFlBJxmMMcRaSks5thg9kgaJpZM4QSI-e>
.
|
For starters, you could add the possibility of setting the coordinates in node precision, leaftest requires this feature. |
neko259 yes i agree, for frequent updating editing would be hard work. |
You can't simply edit them together. If you try to view such a big PNG image file the image viewer crashes because w * h * 4 Bytes need to be allocated where the image can be loaded into. |
I'm surprised that there isn't an option to generate an entire map file in chunks, then scale each chunk down and stitch the final together to create an 8K or so image, but granted that would be no easy task. I would have thought however, that if you try to generate an entire map it would tell you that you might run out of ram, and ask if you want to stop, not keep going, use up all your ram faster than you can close it and lock up your entire system. |
I have created an (experimental for now) fork of minetestmapper with tiled output. https://github.com/wziard/minetestmapper there are some small problems at the edges with the height shading, but for the rest it works well. |
Images larger than 8192x8192 will not load in browsers via JavaScript. If you want some kind of map that updates regularly, using small tiles and updating the tiles likely to change (such as the edges) may work, but locking large chunks of the database constantly will cause lag or "rubber banding" (players will place a block and it will go away because the server can't keep up)--maybe not with redis, but access should still be timed as opposed to constant. I have some work done on splitting up the map with mtanalyze (requires metadata to place the images, so uses a forked minetestmapper-python but I'm working on a redo using the C++ version now that Option for fixed image size is closed--even though my metadata idea was neither implemented nor addressed at that closed issue) but the corresponding PHP code there was written when I lacked skill at RESTful javascript.
I look forward to trying wziard's fork and seeing how that can help as well. |
This is a known bug in libgd: libgd/libgd#122 |
Hi, im using Minetestmapper on windows10 and when I try to use it it gives me this error Exit code:1 Could you help me to fix this? |
@GSunway Even if you could make an image that big, you probably couldn't edit it unless it was a PSB (Photoshop Big) image or something. There is usually no purpose for creating an image that large (in any field, not just game development). At 32-bit (4 bytes per pixel), it would take up 16 GB of storage space uncompressed or of RAM when uncompressed to load it (65536x65536x4/1024/1024/1024) plus metadata.
|
16GB is hardly an unreasonable amount of RAM for a computer to have these days, and in some quick testing here GIMP seems to have no issues (aside from not being very fast) creating/editing/saving/loading a 65536x65536 PNG image.
Not by very much, IIRC. |
|
When trying to generate a map larter than 4096 pixels I get an error:
Warning: The width or height of the image to be created exceeds 4096 pixels! (Dimensions: 61872x61872)
I tried a workaround to scale it down, but the scale must be an integer more than 1, so that does not help either. There is also no setting to split the map to a set of tiles (that would be useful to run a server with OSM-based engine to load the map chunks dynamically).
The text was updated successfully, but these errors were encountered: