Hello. I am using Decal geometry in my project. I took the example https://threejs.org/examples/#webgl_decals as a basis.
But I got a problem. If I “shoot” at the places where the model is bent, the texture of the decal is distorted. The same situation is in the example.
Can I fix this somehow? I think this is an orientation setting!? Or not? I would be grateful for any help.
What you see is a limitation of the used approach in
DecalGeometry. The texture is projected based on planar projection on the base mesh. If the mesh’s surface has steep changes in depth, you will see stretched texture parts like in your screenshot.
I’m not aware of a solution for this issue. You can read more about the used technique here:
Is there another way to just wrap a texture around an object? Like sticking a piece of cloth or a patch around the object.