processing/p5.js

p5js WEBGL textureWrap can't collaborate with video streaming

Open

#5859 aperta il 11 nov 2022

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)JavaScript (3178 fork)batch import
Area:WebGLDiscussionHelp Wanted

Metriche repository

Star
 (20.784 star)
Metriche merge PR
 (Merge medio 8g 13h) (45 PR mergiate in 30 g)

Descrizione

I recently created a video streaming sketch with p5js WEBGL. The content of the code is: create video capture, then render it on a cube as texture, and then share it with other clients using this library p5LiveMedia. When I finish, I try to view the video capture on two different tabs, but the video was not successfully rendered on Chrome. At first, I thought it was a problem with the browser, because it worked on safari, but error line is showing on neither browser's console. Eventually, I found that it was because I used this line: texture mode (REPEAT); The problem is solved, but does anyone know why might this happen?

This is my project demo, you are welcome to experience it: https://editor.p5js.org/hershey_zhang/sketches/lK4ZpM1hA

Guida contributor