# Seamless Sphere Mapping

**URL:** <https://forums.unrealengine.com/t/seamless-sphere-mapping/72605>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [September 1, 2016, 12:18am UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605 "2016-09-01T00:18:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JosephJames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/josephjames/32/580184_2.png) [@JosephJames](https://forums.unrealengine.com/u/JosephJames)\
**Post date:** [September 1, 2016, 12:18am UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605/1 "2016-09-01T00:18:17Z")

</div>

I’m having some problems trying to create something like this:

 ![KEVwGX5.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/6/26357983ef50f8498e8b58a84da1fd0b368755ba.png)

I’ve heard of making a sphere mesh inside of Max/Maya and giving it two uv sets (one of the poles and one for the belly) and then cross fading between those UV sets in UE, but I’m not quite sure what the best way to achieve this is yet. These are going to be procedural planets and baking my maps to the sphere is not an option before someone suggests it.

Can anyone help me out with this?

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [September 1, 2016, 1:31am UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605/2 "2016-09-01T01:31:11Z")

</div>

There’s a few options, here’s one

[![](https://i.imgur.com/cBwYbKS.png) ](https://i.imgur.com/cBwYbKS.png)

Or you could do the same thing as above but with vertex colors controlling the blending instead of the texture.

Or use WorldAlignedTexture

> **[Texturing](https://docs.unrealengine.com/4.27/en-US/RenderingAndGraphics/Materials/Functions/Reference/Texturing/)**
>
> A wide variety of functions designed to aid in working with textures, such as reprojecting UVs, cropping, and many more.

---

<div class="post-metadata">

**Author:** ![JosephJames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/josephjames/32/580184_2.png) [@JosephJames](https://forums.unrealengine.com/u/JosephJames)\
**Post date:** [September 1, 2016, 2:36am UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605/3 "2016-09-01T02:36:41Z")

</div>

Okay, so I had wondered if the coordinate index of the UV node could do what I wanted in regards to blending the UV sets. I’ll definitely give that a go, thanks.

Edit: You’re not using a cubemap are you? I see that the first UV channel is laid out in the shape of the cubemap and I’m not using cubemaps for my planets.

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [September 1, 2016, 2:43am UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605/4 "2016-09-01T02:43:53Z")

</div>

No, it’s not a cube map, it’s just like that to tile 4 times around the middle of the sphere. It’s a standard square texture. You could unwrap it anyway you want.

---

<div class="post-metadata">

**Author:** ![JosephJames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/josephjames/32/580184_2.png) [@JosephJames](https://forums.unrealengine.com/u/JosephJames)\
**Post date:** [September 1, 2016, 3:09am UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605/5 "2016-09-01T03:09:08Z")

</div>

So there’s no distortion going on with your moon?

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [September 1, 2016, 3:55am UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605/6 "2016-09-01T03:55:40Z")

</div>

There’s minimal distortion, just a bit of stretching from UV mapping. Nothing noticeable.

---

<div class="post-metadata">

**Author:** ![JosephJames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/josephjames/32/580184_2.png) [@JosephJames](https://forums.unrealengine.com/u/JosephJames)\
**Post date:** [September 1, 2016, 3:59am UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605/7 "2016-09-01T03:59:27Z")

</div>

Alright, thanks man. Definitely going to give this a whirl tomorrow, and I appreciate your help.

---

<div class="post-metadata">

**Author:** ![Nawrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nawrot/32/618260_2.png) [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Post date:** [September 1, 2016, 10:14am UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605/8 "2016-09-01T10:14:32Z")

</div>

Some tip for making proper sphere for that mapping:  
Create box first, slice every side to at least 4x4. Then Uv map all sides same way your texture is made, it is easier to adjust uvs on flat box sides. Then spherify it into ball.  
If you want higher texture resolution, split that box into 6 separate material. one for each face.  
Later if you want to add layer of clouds (and atmosphere shader) you need separate sphere mesh. For clouds it is best to make polar coordinate texture if you use spherified box you will have seams with any moving texture.  
There was topic about making skybox, ATI and NVidia provide some tools to create spherical map out of 6 side textures.

---

<div class="post-metadata">

**Author:** ![ioFlow\_Studios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ioflow_studios/32/1194555_2.png) [@ioFlow\_Studios](https://forums.unrealengine.com/u/ioFlow_Studios)\
**Post date:** [September 1, 2016, 11:40pm UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605/9 "2016-09-01T23:40:28Z")

</div>

This is very helpful information for me 🙂

---

<div class="post-metadata">

**Author:** ![R.Schroeder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@R.Schroeder](https://forums.unrealengine.com/u/R.Schroeder)\
**Post date:** [September 25, 2023, 2:17pm UTC](https://forums.unrealengine.com/t/seamless-sphere-mapping/72605/10 "2023-09-25T14:17:53Z")

</div>

can you tell me how do you save or import these two UV channels into your sphere? thank you 🙂
