Available on the Marketplace.
Engine supports only HDR format by default when exporting cubemaps, the plugin extends formats list. Plugin provides editor tools and runtime API for exporting of cube textures and render targets to files in various formats.
Image formats supported:
- PNG (8-bit)
- JPEG (8-bit)
- BMP (8-bit)
- EXR (32-bit)
- HDR (32-bit)
Features:
- Export cubemap assets via 'Asset Actions -> Export' menu in editor
- Export cubemap textures in runtime using Blueprints or C++ API
Texture types supported:
- Texture Render Target Cube
- Texture Cube
Code Modules:
- CubemapExport [Runtime]
- CubemapExportEditor [Editor]
Supported platforms: Windows
- Buy the plugin on the Marketplace page.
- Install the plugin to the engine using Epic Games Launcher.
- Open your project and enable the plugin in 'Edit->Plugins' menu.
- Download latest release from the GitHub page.
- Unzip the release into your project's plugins directory: %PROJECT_DIR%/Plugins.
- Open your project and enable the plugin in 'Edit->Plugins' menu.
- Clone repository or download zip.
- Put the plugin's files into your project's plugins directory: %PROJECT_DIR%/Plugins/CubemapExport.
- Rebuild your project.
- Right-click on the asset ('Texture Render Target Cube' or 'Texture Cube').
- Select 'Asset Actions -> Export'.
- Choose file format and save the file.
- Add CubemapExport module dependency into your project's module (.Build.cs file):
PublicDependencyModuleNames.AddRange(new string[] {
"CubemapExport"
});
- Use API function to export cubemaps:
#include "Engine/TextureCube.h"
#include "Engine/TextureRenderTargetCube.h"
#include "CubemapExportLibrary.h"
...
UTextureRenderTargetCube* RenderTargetCube;
UTextureCube* TextureCube;
...
UCubemapExportLibrary::ExportRenderTargetCube(RenderTargetCube, TEXT("E:/"), TEXT("RenderTarget.png")); // Export render target cube as PNG
UCubemapExportLibrary::ExportRenderTargetCube(RenderTargetCube, TEXT("E:/"), TEXT("RenderTarget.jpg")); // Export render target cube as JPEG
UCubemapExportLibrary::ExportRenderTargetCube(RenderTargetCube, TEXT("E:/"), TEXT("RenderTarget.bmp")); // Export render target cube as BMP
UCubemapExportLibrary::ExportRenderTargetCube(RenderTargetCube, TEXT("E:/"), TEXT("RenderTarget.exr")); // Export render target cube as EXR
UCubemapExportLibrary::ExportRenderTargetCube(RenderTargetCube, TEXT("E:/"), TEXT("RenderTarget.hdr")); // Export render target cube as HDR
...
UCubemapExportLibrary::ExportTextureCube(TextureCube, TEXT("E:/"), TEXT("Texture.png"); // Export texture cube as PNG
UCubemapExportLibrary::ExportTextureCube(TextureCube, TEXT("E:/"), TEXT("Texture.jpg"); // Export texture cube as JPEG
UCubemapExportLibrary::ExportTextureCube(TextureCube, TEXT("E:/"), TEXT("Texture.bmp"); // Export texture cube as BMP
UCubemapExportLibrary::ExportTextureCube(TextureCube, TEXT("E:/"), TEXT("Texture.exr"); // Export texture cube as EXR
UCubemapExportLibrary::ExportTextureCube(TextureCube, TEXT("E:/"), TEXT("Texture.hdr"); // Export texture cube as HDR
- Alpha channel is not fully supported and filled with 255 or 1.0 values (in case of various formats).
- PNG format is exported only with 8-bit depth.
- E-Mail: [email protected]
- Discord: @Lukerrr