Hello there,
I’m new to verge3D and I try to figure out if this is a suitable solution for me and my customers.
For most of my projects it’s necessary to have a running video in my scene.
Got that working with the post of zjbcool.
But now when the video texture is applied my mouse isn’t working anymore.
Keyboard still does it’s job. Can move camera up, down, left, right.
So far I added to the .html
<video id=”video” autoplay muted>
<source src=”loop.mp4″ type=’video/mp4;’>
</video>
and to .js
var screen, video, texture, material
video =document.getElementById(“video”);
screen = app.scene.getObjectByName(“screen”);
texture = new v3d.VideoTexture(video);
texture.minFilter = v3d.LinearFilter;
texture.format = v3d.RGBFormat;
material = new v3d.MeshBasicMaterial({map : texture});
screen.material = material;
app.animate();
If I remove those lines, mouse works fine as aspected.
Does someone has any idea how to fix this?
Thank you in advance.
Patrick