question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding triplanar mapping

See original GitHub issue

This 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.

https://mevedia.com/img/triplanar.mp4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Mugen87commented, Mar 23, 2021

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.

2reactions
Mugen87commented, Mar 5, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found