processing/p5.js

p5js WEBGL textureWrap can't collaborate with video streaming

Open

#5 859 ouverte le 11 nov. 2022

Voir sur GitHub
 (7 commentaires) (0 réactions) (0 assignés)JavaScript (3 178 forks)batch import
Area:WebGLDiscussionHelp Wanted

Métriques du dépôt

Stars
 (20 784 stars)
Métriques de merge PR
 (Merge moyen 8j 13h) (45 PRs mergées en 30 j)

Description

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

Guide contributeur