njazz / syphonpy

Python bindings for the Syphon Framework (OSX)
41 stars 7 forks source link

Syphon for Blender issue #18

Closed maybites closed 9 months ago

maybites commented 1 year ago

Hi

I have recently extended my spout addon for blender (https://github.com/maybites/blender.script.spout) to work with syphon for OSX, too. But I have encountered an issue I am unable to tackle:

In order to make syphon work inside blender I am using your python wrapper, and while it works, the effect makes it actually unusable:

https://www.dropbox.com/s/le2f4hsapy73vc3/blender-syphon.mov?dl=0

As you can see, the camera captured texture is sent to the syphon client, but only a stripe on the left of the texture is updated in realtime, while the rest is only updated once the interaction in blender ends.

Any hints why this could be the case and where the issue (the way blender manages the framebuffers? the way syphon copies the textures?) would be welcome.

cheers

martin

maybites commented 1 year ago

This is a copy of this issue, I was refered by the syphon developers to ask here.

njazz commented 1 year ago

Hello Martin,

Thanks for the report, will check that! My guess is that it's related to some kind of threading issue; this repository actually doesn't add much to original SDK, mostly just bindings/object wrappers etc

Best regards, Alex

maybites commented 1 year ago

it's related to some kind of threading issue

thats what I am thinking, too. Funny though, that Spout on Windows has no issues with it.

dumski commented 1 year ago

Hi, Any new on this bug? I tried to use bgl.glFlush() OpenGL call just after drawing 3D View to an offscreen buffer – but no luck. Cheers, Teo

njazz commented 1 year ago

Hi, Any new on this bug? I tried to use bgl.glFlush() OpenGL call just after drawing 3D View to an offscreen buffer – but no luck. Cheers, Teo

hello! sorry for the delay, will get back to this issue on this week

maybites commented 1 year ago

https://github.com/Syphon/Syphon-Framework/issues/81#issuecomment-1439784580

maybites commented 9 months ago

Problem is resolved with new syphon-python wrapper by florian bruggisser:

https://github.com/cansik/syphon-python (it will be officially released in the comming weeks)