UE4/TextureSampling

From PopcornFX
Jump to: navigation, search
UE4-logo-g.png

(last edit version: v0.3.0)


Texture sampling

In order to have a an effect using the texture sampling working, you will need to setup your sampled texture the right way.

The Unreal Engine texture compression system is unnecessary for the PopcornFX runtime, we need the texture's raw data, mipmaps excluded.

This might evolve in the future, but not for now.


Correctly Setup your Textures for Sampling

  • Make sure that the texture your effect is sampling was successfully imported in the editor.
  • Right click -> Edit or simply double click on your texture asset.
  • Under the Level of Detail category: change the LOD Group to ColorLookupTable

This will disable the texture's mipmapping and compression, fallbacking to a pixel format we handle.

Currently, the only pixel format we handle is B8G8R8A8.

Ue-texturesampling-setup.png