processing/p5.js

p5js WEBGL textureWrap can't collaborate with video streaming

Open

#5,859 创建于 2022年11月11日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)JavaScript (3,178 fork)batch import
Area:WebGLDiscussionHelp Wanted

仓库指标

Star
 (20,784 star)
PR 合并指标
 (平均合并 8天 13小时) (30 天内合并 45 个 PR)

描述

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

贡献者指南