Hi there. For mobile, I want to create a fake glass material using a cubemap. I found the material formula I want to use (* * * [VOTE] Geometry Tools 2.0 * * * - Feedback for Unreal Engine team - Unreal Engine Forums) and would love to have a quick way to generate that cubemap from the level.
Any thoughts? I took a look around AnswerHub but couldn’t find anything.
Thanks,
Alec
Look into Scene Capture Cube actor. There must be a sample of its usage in Content Examples project as well.
That did it. Here’s what you do, for those interested:
- With Place tab selected, search for Scene Capture Cube. Drag that into your scene. It’ll look like a camera.
- In your Content Browser, select New|Materials & Textures|Cube Render Target. That’s what you’ll plug into your new Scene Capture Cube
- Select your Scene Capture Cube and replace Texture Target with your Cube Render Target. You should now see your scene turned into a cubemap in the Texture Target swatch.
- (Optional) For my purposes, I just wanted a snapshot, instead of a real-time update, so I unchecked Capture Every Frame (probably not necessary) from the Scene Capture Cube, right-clicked the Cube Render Target and chose Create Static Texture. That creates a static cubemap that you can plug into your TextureSampleParmeterCube.
That’s it. I might make a quickie video for this, although the steps are pretty straight forward.
Thanks for the help, Jacky!
Alec