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

Triplanar Texture mapping for Terrain #151

Closed
antzGames opened this issue Apr 19, 2023 · 1 comment · Fixed by #184
Closed

Triplanar Texture mapping for Terrain #151

antzGames opened this issue Apr 19, 2023 · 1 comment · Fixed by #184
Labels
enhancement New feature or request
Milestone

Comments

@antzGames
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
I am sure JTK knows about Triplanar texture mapping. It is to solve terrain texture mapping issues like this:

image

Describe the solution you'd like
I know performance will be impacted as you have to draw 3+ times, but you can include a toggle in the editor/runtime so you can turn it off or on.

Additional context

Detailed explanation of Triplanar terrain mapping here: https://gamedevelopment.tutsplus.com/articles/use-tri-planar-texture-mapping-for-better-terrain--gamedev-13821

So this enhancement could be part of #127 enhancement.

@antzGames antzGames added the enhancement New feature or request label Apr 19, 2023
@JamesTKhan
Copy link
Owner

Thanks for adding this. I do have some code shelved to add triplanar mapping to mundus already but I need to return to it and finish it.

Definitely can be expensive with the additonal texture lookups but it's worth it in my opinion.

Especially if the terrain texture also has normal textures, then both get sampled multiple times.

@JamesTKhan JamesTKhan added this to the 0.5.0 Release milestone May 1, 2023
@JamesTKhan JamesTKhan linked a pull request May 15, 2023 that will close this issue
@JamesTKhan JamesTKhan linked a pull request Jun 6, 2023 that will close this issue
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
2 participants