Im currently trying to setup a custom skybox in unreal engine and I noticed all sky boxes have an end point with the sky sphere. I dont remember unity doing this and its sky box was endless im pretty sure. I was just wondering is it possible to use the actually skybox behind the skysphere? Like can I use textures/Materials on it?
Can anyone help me?
- Create a new material
- Add a texture sample and assign a cubemap to it
- Use CameraVector multiplied by -1 as UV coordinates
- Assign said material to the skydome mesh
There you go, infinite distance sky. Put whatever you want in front of it using the dome meshes regular texture coords
edit: Simplified
When you say skydome mesh Im assuming you mean the skysphere in the default scene. Im asking is it possible to assign materials to the skybox behind the skysphere?
What skybox
by skybox I mean the black textured skydome behind the skysphere. When you delete the skysphere the background is black, Im wondering if I can apply a texture/Material to that instead of using the skysphere
No but if you do what I told you, it would have the exact same effect
I tried plugging the camera vector multipled by -1 into the uvs of the texture sample and it threw an error, do I need to plug it into the world position offset instead? Or is there something im missing?
Your texture needs to be a cubemap texture assetor it won’t work. If you get an error saying it couldn’t convert float3 to float2 (or something to that effect), your texture is not a cubemap.
Thats definitely the problem, I tried downloading the nividia photoshop addon to make dds files for the cubemap files but I could never figure out which format to export too. The documentation appears out of date. Do you know how to make cube map files?
HDRI will work, Substance Designer will export it if you have that (assuming it is already in long/lat format)
it looks like you have to pay for substance designer so I definitely don’t have it, In the exporting cubemaps section of the unreal engine documentation it shows a format that doesnt exist anymore and the ui is completely different now. Do you have any idea what format to export to?