Errors when I'm making my own hdr skybox

Hi ! I’m trying to make my own skybox by following this tutorial :
HOW TO MAKE HDRI MATERIAL UE4 - YouTube.
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 !

ParamCube, not Param2D :slight_smile:

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 :

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

Do you know how to convert my Texture2D to TextureCube ?

Start with a texture cube

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

My texture is not a cube.

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

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

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.

Ah. You can’t, unless you’re Einstein :slight_smile:

Start with a cube. They’re free, from

Okay, thanks.

1 Like

I found a way to make a HDRI textureCube and it works well :
Creating HDRIs Directly in UE4 - YouTube.

1 Like

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

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

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


Do you know what I have to do to see the landscape ?

To see the landscape, you have to remove your actual landscape :slight_smile:

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

Can you show the material?

I get:

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?

I think I don’t have the correct preview.

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

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

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

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

image

image

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 ?