spiraltechnica / Spout-for-Python

A modified Spout library using Boost::Python to enable Spout texture sharing using Python.
112 stars 34 forks source link

Problem using example FBO #10

Open luisarandas opened 2 years ago

luisarandas commented 2 years ago

Hello, thanks for this code.

I am having trouble using Spout in my Windows 10 machine running an RTX3070 and trying to run the FBO example. I also tried to go simple and instantiate the spoutSender.CreateSender('Spout Python Sender', spoutSenderWidth, spoutSenderHeight, 0) but it gives me the error:

λ python35 ok.py
    loadFBOextensions fail
Spout::CreateSender - OpenSpout failed
<SpoutSDK.SpoutSender object at 0x000001CA772D6148>

So the OpenSpout thingy failed and when trying to run the FBO example I get:

λ python35 spout_FBO_sender_example.py
pygame 2.0.3 (SDL 2.0.16, Python 3.5.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "spout_FBO_sender_example.py", line 144, in <module>
    main()
  File "spout_FBO_sender_example.py", line 137, in main
    spoutSender.SendTexture(senderTextureID, GL_TEXTURE_2D, spoutSenderWidth, spoutSenderHeight, True, 0)
Boost.Python.ArgumentError: Python argument types in
    SpoutSender.SendTexture(SpoutSender, numpy.uintc, IntConstant, int, int, bool, int)
did not match C++ signature:
    SendTexture(class SpoutSender {lvalue}, unsigned int, unsigned int, unsigned int, unsigned int, bool, unsigned int)

I didn't compile this project and to be honest I don't even use Visual Studio or Windows but I really need this to work. Any help?

Thanks!