5
$\begingroup$

I need to be able to generate texture coordinates on a sphere for cubemaps textures. But somehow I seem to fail in Blender to accomplish this.

See the image below as example cubemap.

Cubemap example

I am able to map the texture correctly in Unity by using an cubemap asset, but I am unable to reproduce this behavior in Blender.

$\endgroup$
1
  • $\begingroup$ On a sphere only or for env. texture? $\endgroup$
    – lemon
    Sep 14, 2020 at 14:07

1 Answer 1

6
$\begingroup$

If on a spherical mesh, you can start with a cube (rotate its UV to fit your map), then add:

  • Subdivision modifier with "simple" algorithm (we don't want to smooth but just to give more geometry for the cast below)
  • Cast to sphere modifier

enter image description here

$\endgroup$
3
  • $\begingroup$ Thanks for the quick reaction -- could you share that blend file? Because I've been doing all day and somehow it keeps pinching the texture coords. $\endgroup$
    – null
    Sep 14, 2020 at 14:24
  • $\begingroup$ here you are... no pinch it seems but uneven resolution at poles. $\endgroup$
    – lemon
    Sep 14, 2020 at 14:28
  • 1
    $\begingroup$ Thanks! The simple division did the trick! This thingy cost me alot of hours :) $\endgroup$
    – null
    Sep 14, 2020 at 14:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .