How to render a UE asset thumbnail in a non-UE application
Using the UnrealEd module I can successfully get a uasset thumbnail as a TArray with a call to FObjectThumbnail::AccessCompressedImageData(). I can then transfer this byte array to a different non-UE application where I can realize the image. The problem is the image colors are incorrect. I have tried many different approaches to realizing the image in the second application (C#, Java), but nothing seems to work. I have attached screen shots of both the good image and the bad. Any help would be greatly appreciated.
The image with the blue sky is the correct and desired image.
asked Feb 14 '18 at 08:10 PM in C++ Programming
When you make byte array swap red value with blue value, you maybe setting bytes in incorrect RGB order or your C# program read them in incorrect order, since you can clearly see on the image that red is blue and blue is red
Follow this question
Once you sign in you will be able to subscribe for any updates here