Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fbs/ndi/NDIServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions fbs/spout/SpoutServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down