I want to use world triplanar texture mapping but only for the initial position when an object is created.
After that I want the texture to be fixed to the object even if I move the object.
Any ideas on how to achieve this?
Conk Disable "world triplanar" in material's uv properties.
Lowrey
wouldn't that change the mapping back to the normal mapping based on the UVs?
Conk No, it would use object space triplanar. Easy enough to try.
Lowrey
Oh I see you misunderstood me.
I want to:
1: Place object with triplanar world space texture mapping.
2: Move object with fixed texture (like it would be normally)
Conk How is that not object space triplanar then?
Lowrey
Ok ok.
Imagine two equal objects.
What I want:
spawn each object at different locations with triplanar world space mapping > both objects probably look different because the location is affecting the mapping. And now if I move one object the texture should be fixed blablabla we know that part.
What I would get with object space mapping:
Two objects that look exactly the same regardless of their initial spawn position.
Use object space triplanar mapping in the material then, convert material to shader, and in triplanar calculation in the shader add an offset passed via an uniform or instance custom data.
Lowrey
This sounds like it could work. Thanks, I will try it!
Conk There's no reason for it not to work 😉
© 2022 - 2024 — McMap. All rights reserved.