# Errors when I'm making my own hdr skybox

**URL:** <https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428>\
**Category:** Blueprint\
**Tags:** hdr, skybox, unreal-engine, Blueprint, question\
**Created:** [December 31, 2022, 3:13pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428 "2022-12-31T15:13:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [December 31, 2022, 3:13pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/1 "2022-12-31T15:13:19Z")

</div>

Hi ! I’m trying to make my own skybox by following this tutorial :  
[HOW TO MAKE HDRI MATERIAL UE4 - YouTube](https://www.youtube.com/watch?v=mhgbAs1-9A8&t=143s).  
I have an error since I linkeded Normalize to my HDRI Parameter :  
`(Node TextureSampleParameter2D) Coercion failed: MaterialFloat3 Local4 = (Local1/Local3);`  
Can someone explain how to resolve it please ?  
Thanks a lot !

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/6/ac673f57e8de6a6b48ed84bc74138cc07f33c90a.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 31, 2022, 3:32pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/2 "2022-12-31T15:32:42Z")

</div>

ParamCube, not Param2D 🙂

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 1, 2023, 9:34am UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/3 "2023-01-01T09:34:45Z")

</div>

Thanks. I just dropped my texture in the blueprint as he did in the video so I didn’t see that it’s not the same kind of parameter. I put the parameter manually and when I gave to it my texture, I got the following error message :

```auto
[SM5] (Node TextureSampleParameterCube) ParamCube> Found Texture2D, requires TextureCube

```

Do you know how to convert my Texture2D to TextureCube ?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 1, 2023, 9:38am UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/4 "2023-01-01T09:38:59Z")

</div>

Start with a texture cube

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/9/ea9de26d57affcccebecdb828d5570c90cc3d5cc.png)

Is your texture definitely a cube? ( that might be why drag drop doesn’t work ).

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 1, 2023, 9:42am UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/5 "2023-01-01T09:42:35Z")

</div>

My texture is not a cube.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 1, 2023, 9:44am UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/6 "2023-01-01T09:44:05Z")

</div>

I’m a bit confused, you called it HDR sky 🙂

And the material code you have there is for a texture cube ( hdri map ).

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 1, 2023, 9:49am UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/7 "2023-01-01T09:49:32Z")

</div>

Yes, it’s true. But I don’t have a textureCube, just a 2D texture. Now, I would like a way to convert my texture to textureCube.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 1, 2023, 9:51am UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/8 "2023-01-01T09:51:14Z")

</div>

Ah. You can’t, unless you’re Einstein 🙂

Start with a cube. They’re free, from

> **[HDRIs • Poly Haven](https://polyhaven.com/hdris)**
>
> Hundreds of free HDRI environments, ready to use for any purpose.

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 1, 2023, 9:51am UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/9 "2023-01-01T09:51:47Z")

</div>

Okay, thanks.

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 1, 2023, 10:42am UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/10 "2023-01-01T10:42:29Z")

</div>

I found a way to make a HDRI textureCube and it works well :  
[Creating HDRIs Directly in UE4 - YouTube](https://www.youtube.com/watch?v=jvX1LEV0v_g&t=682s).

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 1, 2023, 10:44am UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/11 "2023-01-01T10:44:07Z")

</div>

That’s right, easy to make from scratch, but not from an existing texture 🙂

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 1, 2023, 12:11pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/12 "2023-01-01T12:11:17Z")

</div>

I have a new problem now with my HDRI material. I tested the game I’m making and I got just a pink sky :

 ![screenshot1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/5/bb574d82041427f201b1d31e0d88a363ddea4221.jpeg)

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 1, 2023, 12:12pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/13 "2023-01-01T12:12:32Z")

</div>

However, I would like to see this king of thing :

 ![skyboxTex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/3/85320d440593a97b35a0449569d5bdcd59c27e47.jpeg)  
Do you know what I have to do to see the landscape ?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 1, 2023, 1:07pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/14 "2023-01-01T13:07:45Z")

</div>

To see the landscape, you have to remove your actual landscape 🙂

But I don’t think it’s working, I don’t see any sky…

Can you show the material?

I get:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/1/181445423aab86e75617cc4eaa4f0243d7a536ff.jpeg)

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 1, 2023, 3:12pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/15 "2023-01-01T15:12:56Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/5/1b55d3845711bf75c22d83fb02952abd6e624667.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 1, 2023, 3:19pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/16 "2023-01-01T15:19:04Z")

</div>

Well, that’s exactly what I have.

Does it work if you just put the sky sphere in an empty level?

You get the correct preview?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/b/f6b8ba9820fb2e362663d95004602a85060c6f90.jpeg)

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 1, 2023, 3:32pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/17 "2023-01-01T15:32:37Z")

</div>

I think I don’t have the correct preview.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/a/65ad311d4dfbf9d8d33e371ebde84e7c6ea7372d.jpeg)

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 1, 2023, 3:37pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/18 "2023-01-01T15:37:18Z")

</div>

It’s the same when I just put the sky sphere in an empty level.

 ![emptyLevel1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/1/fe17f1e91c46a445c49b2991be0bc01c8b846a92.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 1, 2023, 4:24pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/19 "2023-01-01T16:24:01Z")

</div>

Where did you get the sphere? I think the UVs are messed up.

There’s an HRDI plugin, you just need to enable it

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/8/6982dae99b7ac72827d97716a3467a716be3b161.png)

put it in the level, and just drop your texture here

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/4/244f59dc6bb9546adcd3f1bdaabc57b28632510d.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/5/415013308c320d9ae4c2e8adf592ca8a1139b37f.png)

---

<div class="post-metadata">

**Author:** ![Clashman79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clashman79](https://forums.unrealengine.com/u/Clashman79)\
**Post date:** [January 2, 2023, 4:29pm UTC](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428/20 "2023-01-02T16:29:28Z")

</div>

I found the sphere in the Place Actors window and I changed its basic static mesh with a SM\_skyspher mesh as they do in the video I watched.

With your method, it works well but what about the videos ?

[Next page](https://forums.unrealengine.com/t/errors-when-im-making-my-own-hdr-skybox/739428.md?page=2)
