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!
1 Answer
1the 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.
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.
– AlwaysSunny