diff --git a/fbs/ndi/NDIServer.py b/fbs/ndi/NDIServer.py index 4e8f294..a750fa1 100644 --- a/fbs/ndi/NDIServer.py +++ b/fbs/ndi/NDIServer.py @@ -76,7 +76,7 @@ def send_texture(self, offscreen: gpu.types.GPUOffScreen, width: int, height: in texture_data = texture.read() # Convert texture data to numpy array and ensure correct format - flat_np = np.asarray(texture_data, dtype=np.uint8).transpose() + flat_np = np.asarray(texture_data, dtype=np.uint8) # If texture is flipped, flip it vertically while preserving RGBA channels if is_flipped: diff --git a/fbs/spout/SpoutServer.py b/fbs/spout/SpoutServer.py index e265425..dd4fb8d 100644 --- a/fbs/spout/SpoutServer.py +++ b/fbs/spout/SpoutServer.py @@ -44,9 +44,9 @@ def send_texture(self, offscreen: gpu.types.GPUOffScreen, width: int, height: in # Read texture data texture_data = texture.read() - # Convert texture data to numpy array and transpose + # Convert texture data to numpy array # This is the correct way to handle Blender's Buffer object - flat_np = np.asarray(texture_data, dtype=np.uint8).transpose() + flat_np = np.asarray(texture_data, dtype=np.uint8) # Reshape to image array (height, width, 4) image_array = flat_np.reshape(self.height, self.width, 4)