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

Add ability to sample the terrain texture outside of the Terrain3D shader #439

Closed
Smorty10 opened this issue Jul 29, 2024 · 4 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@Smorty10
Copy link

Description

Being able to use the terrains texture information outside of the Terrain3D itself would be incredibly useful. This way, blending between terrain and objects would become very easy when using a special shader. This can already be done by applying a simple texture with triplanar projection as seen in this image
Bildschirmfoto vom 2024-07-29 21-52-44

@TokisanGames
Copy link
Owner

Our Terrain3DMaterial API provides the rid of the material and shader parameters. You should be able to retrieve any of the uniforms such as the texture arrays passed to our shader for your own use via script, in the game or editor. In addition our Terrain3DStorage API provides plenty of other information such as get_texture_id().

Finally, if you want a fully baked texture specifically for blending with objects, you need an RVT. This is a duplicate request. See #245.

@Smorty10
Copy link
Author

@TokisanGames Was the demo picture for this release also done by getting the shader parameters via API?

@TokisanGames
Copy link
Owner

No, that's just a good selection of textures and painting with proper technique, which I discuss in my videos and detail in the texture documentation. There's no RVT blending, which I don't think is a good technique anyway. It's not realistic, and it puts the object into the transparency pipeline which is less performant.

@Smorty10
Copy link
Author

I see. Then what I am requesting is not necessary. Sorry for the bother.

@TokisanGames TokisanGames added the duplicate This issue or pull request already exists label Jul 29, 2024
@TokisanGames TokisanGames closed this as not planned Won't fix, can't repro, duplicate, stale Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants