Adding triplanar mapping
See original GitHub issueThis would be a useful feature to have by default, besides terrains, when sculpting shapes or using primitives to construct a scene. It currently requires to generate a geometry with proper UV coordinates.
I’d suggest local and global mapping, since organic textures work fine for mixed axes and will then seamlessly mix with intersecting objects.
I’ve implemented it with a mapping property on the material which is by default THREE.UVMapping
, in setProgram
i set a modelScale
uniform for local mapping.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Triplanar Mapping
The usual way to perform texture mapping is by using the UV coordinates stored per-vertex in a mesh. But this is not the...
Read more >Triplanar Mapping Deeply Explained (UE4, valid for UE5)
In this video I go through a basic implementation of a triplanar mapping shader and I explain some of the concepts behind it....
Read more >Triplanar Mapping
Summary I made a tutorial about planar mapping previously. The biggest disadvantage of the technique is that it only works from one ...
Read more >Triplanar Node | Shader Graph | 6.9.2
The projection can be modified by overriding the inputs Position and Normal. This is commonly used to texture large models such as terrain, ......
Read more >Normal Mapping for a Triplanar Shader | by Ben Golus - Medium
Triplanar mapping is a great solution for dealing with texturing on complex geometry that is difficult or impossible to use traditional UVs ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Since there is a node example demonstrating triplanar mapping, this issue can be closed. This approach will also be possible with the new material system.
The mentioned example is not available anymore since it depended on the “old” node material which was removed with
r138
. Over time there will be a new example that shows how to do this with the “new” node system.