I discovered that basically, my terrain splat map constitutes roughly 15 MB of the 30 MB that makes up my game - the reason being that it’s 2048x2048 and contains lots of detail and gradients, which prevents it from being compressed well by zip-like algorithms.
So… I’m wondering… why aren’t there texture settings for the terrain splat maps? I would love to use DXT5 for this thing, as it would take these 15ish MB into 3.75 MB, with probably no noticable quality difference.
DXT is no option in this case at all.
DXT5 would completely destroy the outcome when blending, DXT really is only an option for the textures you paint on the terrain, not the splat map.
Also, actually all data are lzma compressed on building, which is about the smallest you can get without destroying the actual data.
You entirely sure about this? My impression is that the splat map can look like pretty much anything, noisy and random, and it will still look “nice” when rendered, if somewhat unnatural.
What specific shader/terrain feature is it that prohibits use of DXT5?
DXT is destructive, as such your painted splatting will suffer (you are destroying of the size and with it a fair amount of the color data).
Filtering can cover that on renderered textures but your splatmap won’t be renderered, its actual pixel data are used to define which texture blends in to which amount on each pixel.
You know, theory is often different from reality. Attached are two images using a 4-layer shader from the wiki, with a non-compressed splatmap on the first image and a DXT5-compressed splatmap on the second image. (Apologies for the large size of the .pngs, but I didn’t want .jpg compression artifacts messing things up.) Best if you download them and view them in something like Preview where you can flip back and forth between the images to see exactly what the differences are–side by side like this, it’s hard to tell. The compressed splatmap is worse, but also it’s clearly sufficient in many cases. So yes, an option for texture compression for terrain splatmaps seems like a reasonable request.
thats clear.
if you only use 3 textures you actually could go for a DXT1 texture, which would allow you to use a 2048x2048 instead of a 512x512 at the same VRAM costs.
Super important for some project’s use cases. You’re right, you will lose data. Sometimes data loss is preferable. We do stuff going into schools, and cannot use more than X mb for Y content. We don’t need super fidelity … options are always good, then let the actual user decide if its worth it or not!
Really wish this were built in to play around with. Even 50kb difference makes a huge difference when you deal with numbers of terrains for different scenes. Sigh.