Hello everybody,
Currently I am working with Slate and want to display a SImage which receives data from a SceneCapture2D camera. This already works. I do this by getting the TextureTarget of the camera and render it. Then I read out the pixels and save them in a UTexture2D.
But here is my Problem:
I want to distort the UTexture2D, but I don’t know exactly how to proceed here. I have already created a material as a blueprint and have given my RenderTarget from the camera to the Texture Sample.
- Is it possible to access this material in C++ and apply it to the UTexture2D?
- If I display the material in the editor as an image on a widget blueprint, it is also distorted. However, I would like to know how this works in the C++ editor code.
Best,