Skip to content
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

Proposal: Allow more than 16 textures #416

Open
TechnoLukas opened this issue Dec 10, 2023 · 1 comment
Open

Proposal: Allow more than 16 textures #416

TechnoLukas opened this issue Dec 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@TechnoLukas
Copy link

So i have an asset with 30 textures for the terrain, currently plugin only supports up to 16 textures. So i just chose 16 the most important ones and loaded them as texture atlas.

Describe the solution you'd like :
It would be useful to import as big texture atlas as you want, for example 5x6 in my case.

Describe alternatives you've considered :
Too big atlases could cause speed issues, so it would be ok to have possibility to load a bundle of texture atlases.
So for example you have 3 images of 4x4 textures, in total you have 48 textures. And you just loaded 3 images.

@TechnoLukas TechnoLukas changed the title Allow more than 16 textures Proposal: Allow more than 16 textures Dec 10, 2023
@Zylann
Copy link
Owner

Zylann commented Dec 10, 2023

It's obviously desirable to have the ability to add more, but it's not something easy to add. It's relatively easy to think about, until you consider smooth blending. Current shaders could be extended to support more, but that would lead to worse performance, and VRAM usage might be an issue too. There is likely different approaches that could handle this better, it needs investigation.
Notably, quick changes you can make include procedural texturing, by adding custom modifications to the shader and using slope or height as blending factor, so no extra splatmaps are required. You can also use the color map, or even density maps (normally used for detail layers) to add special modifications. You can also use Godot 4 decals to add extra details on the ground, which then avoids making them terrain textures.

However I'm currently not very active on this plugin (I mostly fix bugs when they are reported), so it's unlikely that I will add this anytime soon. You may have to experiment your own solution.

@Zylann Zylann added the enhancement New feature or request label Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants