- Home /
Sphere Wrapped Perlin Texture
Hello there! I have a quick question. I know it isn't possible to perfectly wrap a rectangular texture around a sphere without some kind of distortion. However, if I am randomly generating the appearance of the of a sphere by a perlin texture what would the best way of going about that be? Thanks for your help!
If continuity doesn't matter, you could use triplanar texture mapping: A shader which projects one or more textures according to world or object space, as opposed to UV space. Distortion will occur, but that might be okay, depending on your needs.
If continuity DOES matter, I have no clue how to approach this with traditional methods.
Answer by sweatyrat · Feb 23, 2015 at 09:10 PM
the correct method for this kind of texture wrapping is to use a 3D perlin function. rather than using the pixel cords to generate their color use the 3D point in local space that each pixel corresponds to after it has been wrapped onto the model. the result look amazing with just perlin but if you want an even smoother effect you could use a 3D simplex noise function.
Your answer
![](https://koobas.hobune.stream/wayback/20220613161224im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Procedual Terrain 1 Answer
Blending textures on a random terrain? 0 Answers
Perlin Noise to Texture in Shader 0 Answers
texture grow organically in room space? 0 Answers
Unity materials grey on distance 1 Answer