Maximum map dimensions in UDMF format
Posted: Wed Sep 18, 2024 2:58 pm
Hi there,
I found some old posts (from 2014) that say that there shouldn't be any two points in the map that are more than 32768 units apart as strange things may happen because of overflows and that it's best to stay within -16384..16384 range or even less as we are talking about distances in 3 dimensions.
Does that information still hold true?
Or because GZDoom now uses floating point math I can use the whole coordinate range (so can safely go up to +/-32768 in either dimension)? Or maybe I can go even further than 32768 in UDMF format?
Asking partly out of curiosity and partly because I'm planning a map with a large outdoor area that uses portals to slice the whole area into multiple layers - I'm not yet sure how big the map will be so I'm just thinking how to lay out these layers and whether I can assume all coordinate space can be used or not.
Thanks
Jacek
I found some old posts (from 2014) that say that there shouldn't be any two points in the map that are more than 32768 units apart as strange things may happen because of overflows and that it's best to stay within -16384..16384 range or even less as we are talking about distances in 3 dimensions.
Does that information still hold true?
Or because GZDoom now uses floating point math I can use the whole coordinate range (so can safely go up to +/-32768 in either dimension)? Or maybe I can go even further than 32768 in UDMF format?
Asking partly out of curiosity and partly because I'm planning a map with a large outdoor area that uses portals to slice the whole area into multiple layers - I'm not yet sure how big the map will be so I'm just thinking how to lay out these layers and whether I can assume all coordinate space can be used or not.
Thanks
Jacek