you-win / spout-gd

Spout for Godot 4
Mozilla Public License 2.0
36 stars 7 forks source link

Fix receive image #7

Closed erodozer closed 11 months ago

erodozer commented 11 months ago

Godot's get_data function on images creates a copy of the packedbytearray, so it's necessary to reassign the mutated array back into the image reference. This fixes the receive_image function, so that Godot clients may render from other Spout senders.

Fixes #1

Additional Updates

image

you-win commented 11 months ago

Thanks for the PR!

Xwdit commented 11 months ago

@erodozer Excuse me for the interruption, may I kindly inquire about which code you are using to receive images from VTS? It appears that I am unable to receive valid images from VTS...

erodozer commented 11 months ago

@Xwdit I just opened #8 to help make this easier to set up. VTS's sender name is normally VTubeStudioSpout