September 9, 2024 at 7:19 am
Romain Andrieux
Ansys Employee
Â
Â
Hello,
There is no direct support to stream a video through a texture, however it is possible, with a small amount of manual code to copy video frame into the texture buffer during each cycle (using the function sglTexImage2Dubv).
You can find an example using openCV to stream either an image or webcam here:
Best Regards
Â
Â