Hi !
Thanks for sharing your code. I did manage to send data from the python code to Unreal, but the kind of data I’m trying to send is images. I have already received the byte array of the image, and now I’m trying to convert it to texture and show it in a plane inside the game. I’ve searched ways to render texture in real time and mixed the approach I found with your code, I did manage to show something on the plane, but it is not the image, I think somethin is wrong, maybe the color channels are in different order, I don’t know. Have you ever tried to send image from python code and render it on Unreal application?
This is the approached I used to render textures in real time: http://www.showmethatagain.com/2015/11/13/dynamic-textures-in-ue4/
I use the updateTexture method to put the byte array received:
the byte array I receive from the python will be the dtBuffer as a paramether in the methode:
UpdateTextureRegions(dtTexture, 0, 1, dtUpdateTextureRegion, dtBufferSizeSqrt, (uint32)4, dtBuffer, false)
dtMaterialInstanceDynamic->SetTextureParameterValue(“DynamicTextureParam”, dtTexture);