将 iframe 映射为纹理 - Three.js

esd*_*esd 2 javascript iframe dictionary three.js

是否可以将 iFrame 作为纹理动态映射到 obj 模型上?我知道你可以通过视频来做到这一点。

结合这个例子——将一个 iFrame 加载到 Three.js 环境中; http://stemkoski.github.io/Three.js/CSS3D.html

以此为例;它显示了映射到 obj 模型的图像纹理。 http://mrdoob.github.io/ Three.js/examples/webgl_loader_obj.html

有没有实施这种做法的例子?

小智 5

使用 WebGL 无法做到这一点。纹理只能从图像或视频元素中获取。您引用的演示使用浏览器的合成器在 WebGL 画布上放置 CSS 转换的 IFrame。