Ansys Learning Forum Forums Discuss Simulation Embedded Software Video as texture in the back of the display design. Reply To: Video as texture in the back of the display design.

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:

libVideo.zip

Best Regards

 

Â