I’m using OmniSurface material in Unreal. When I export to Omniverse and open the USD-file in Create the Image Alpha Mode for all images in the material is set to alpha_default. Doesn’t matter what I set it to in Unreal, always alpha_default in Create. I need to have this parameter set to alpha_average in Create. How can I solve this?
It looks like the Connector presents the alpha modes, but doesn’t provide the enumeration text (so you just get the float representation since Unreal doesn’t support integers or enums as material parameters).
This enum definition is copied from the MDL library: mdl/OmniSurface/OmniImage.mdl
You can change all of the image alpha modes in the Unreal material editor by checking an modifying the value of the various ***** Alpha Mode N parameters like this:
I did some further digging and found that the Unreal Connector is not properly handling the OmniSurface Image Alpha Modes. It might work every now and then, but there are some issues with it for sure. I filed an internal issue OM-76404 to address this and will update this thread when we fix it. Thanks for reporting this workflow issue!
We have fixed the issue in our dev branches and the fix will be in the next update. I can’t say exactly the next update will be, so if you’re crafty with applying code patches I’ll provide one here. Also note that these affected files have changed since the release, so the patch is against our current dev branch, not the latest release.
Do you have a git repo for the ue4 connector where I can find the source code?
The source is included alongside the prebuilt binaries when you install the Connector (plugins) from the Omniverse Launcher. We do this so you can modify it however you like, or put it in a source Unreal Editor built with modified Public interfaces.
Also, the previous patch needs another, fairly simple patch to the omniverseUSDMdlSchema.cpp file: