maybites / TextureSharing

Spout for Blender
118 stars 13 forks source link

bgl module will be replace by gpu module #12

Open maybites opened 3 years ago

maybites commented 3 years ago

need to keep looking for updates in this space:

https://devtalk.blender.org/t/suggestions-feedback-on-the-extensions-for-the-gpu-module/17706 https://docs.blender.org/api/current/gpu.html#rendering-the-3d-view-into-a-texture

cansik commented 11 months ago

I think we can close this one now :)

maybites commented 11 months ago

I need it here:

https://github.com/maybites/blender-texture-sharing/blob/0f1a7c3b1a4a1284d6f00e51ea9f110426d51f5e/fbs/spout/SpoutServer.py#L31

do you have an idea how to replace it?

cansik commented 11 months ago

You mean the bgl.GL_TEXTURE_2D? You could replace it with pyopengl's constant definition of GL_TEXTURE_2D, which is installed anyways with syphon-python.