Hey guys! I’m doing my first project with babylon and its been really fun! atm I have this problem:
This is the code I’m using for this
var skybox = BABYLON.MeshBuilder.CreateBox("skyBox", {size: 5000.0}, scene);
var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene);
skyboxMaterial.backFaceCulling = false;
camera.lockedTarget = skybox;
var videoTexture = new BABYLON.VideoTexture(
"video",
["room.mp4"],
scene,
true,
false
);
videoTexture.wrapU = BABYLON.Texture.WRAP_ADDRESSMODE;
videoTexture.wrapV = BABYLON.Texture.WRAP_ADDRESSMODE;
videoTexture.video.crossOrigin = "anonymous";
skyboxMaterial.reflectionTexture = videoTexture;
skyboxMaterial.reflectionTexture.coordinatesMode =
BABYLON.Texture.FIXED_EQUIRECTANGULAR_MIRRORED_MODE
skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
skybox.material = skyboxMaterial;
scene.onBeforeRenderObservable.add(() => {
videoTexture.video.play();
if (videoTexture.video.currentTime > 97) {
videoTexture.video.currentTime = 67;
}
});
tried different wraps and everything but the seam does not dissapear… any ideas?