Threejs video texture safari Hello everyone. We’re going to post the question on the Webkit issue tracker. Using smaller videos on mobile (implemented in the example) also didn't help. Probably related to: Video texture no longer updating after entering WebXR mode I'm trying to get a video texture to play on geometry in iOS using three. 6. A black screen is displayed instead of the video texture. How to animate a mesh with the awesome GreenSock tool. 44 PM 668×1356 196 KB. If you look at the attached video, you will see flickering on the screen every few seconds. I’m brand new to ThreeJS and to the forum here. js forum Threejs not rendering on safari IOS. I’m getting different values in the DepthTexture when rendering a scene to a RenderTarget that has that DepthTexture defined. In this example I Attempt to create context with _canvas. org) seems to run ridiculously slow on this config. Also, most recent MacBooks and iOS devices have screens able to show colors in P3 color profile. reporting them to the WebKit team? It seems like the WebKit people get kind of grumply when a bug is Apple’s fault, but I’m not quite sure how to judge this. vercel. js site except for webGPU Hey all, Using THREEJS version 158. We noticed that videos no longer play in hubs (hubs. I have tried this loading the mp4 directly in the texture, loading it Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide three. e. map. 0 and I could not define, when or why they are happening (connected to Safari DevTools via XCode debug project etc. Latest ThreeJS. In chrome, it works well but in firefox and safari there is a significant frame drop. https://threejs. ). textures, materials , shaders. js is giving the message : THREE. video-texture, videocompatibilityproblem. webgl-renderer. org/examples/?q=webcam#webgl_materials_video_webcam Hey, I don’t really think I can fix your problem, but, is this normal (image below)? if it’s not, maybe it isn’t only a Safari bug. On desktop (macOS Chrome and Safari) the model loads correctly and the seats, grass, and dirt look correct. textures, materials. js with fabric. 6) on macOS 11. I’ve been running some test to see if ThreeJS will be useful in setting up a web-based seamless video player. js, but I wanted to make sure the community was aware of them. playsInline = true; video. js that uses a video texture. threejs. I was struggling with some code snippet I have recently copy&pasted. 3/18614. Colors on VideoTexture are different than colors on original mp4 video. Quite old since the latest revision is r137. So is there any we can do to increase the performance. So, I resized the 6k image to 8k, but three. The tour engine works great on Chrome and Edge browsers. js docs. js which is fine on desktop, but doesn't render on mobile. 8 Using Video as texture with Three. I I am using google chrome on windows 10 to decode a 10 color bit depth video encoded with x264. JS for experiencing the 3D scene. threejs. environment. In three. clone() as Mesh; const videoTexture = new VideoTexture(video); videoTexture. 1: 1294: October 13, 2022 What MP4 Videos Work As Video Texture On iPhone. We take a 360 video and offer the user some controls to be able to move front and back in the video on the recording trail. Hi, I’m using three. Will the video element compress the 10 bit video down to 8 bit for playback, therefore feeding only 8 bit data to the texture? Or does webgl extract all 10 bits? My results Iphone 7 Safari - 1 second lag; I'm preloading all videos with preloadJS, but this still didn't change anything. Since the Three. js show a video file in 3D scene? Hot Network Questions Possibility of Secret Wills Simple Java program to aggregate lines of a text file QGIS - Control dissolved attributes I found an old CRT monitor with a RS-232 (not VGA) video input. LinearFilter]. But in Chrome (and possibly others), there are these jarring seams or artifacts that appear, making it look disjointed (see attached image, I’ve outlined the issue I’m encountering here, but thought it might be an issue on the three. getContext( 'webgl', contextAttributes ) because I create a video texture for wall object. js; safari; or ask your own question. HTML5 video can also be used as a texture. HLS isn’t optimal because it seems to break on every iOS update, so was wondering if there’s another method I’m missing? Mapping a Twitch or Youtube stream would be great, Hi all, I am building a web app which is giving me some headaches on iOS and I’m hoping someone might be able to offer some suggestions as to how I might get around the problems. After the page was open for a while, the video started to freeze. Jordan_Tejada January 29, 2022, 8:54pm 1. WebGLRenderer: WEBGL_depth_texture extension not supported. 8thwall won’t let me use different browsers on iOs, so I can’t Every example with plain three. 3: 1012: March 10, 2021 Questions. 46. hey and good morning, i have trouble with the video texture as you can see in the image on the left the code and on click on the document the video playing but only audio without the video itself what i’m doing wrong ? Screenshot Select an example from the sidebar three. I’ve also noticed that this example does work correctly just because it doesn’t use orbit controls. Setting the texture colorspace to SRGBColorSpace doesn't seem to Hi, I have sphere object with multiple video textures on autoplay. I also posted them to the Three. Hi, I’m having trouble playing videos inside a WebXR session on Apple Vision OS simulator. three. setAttribute('crossorigin', 'anonymous'); video. 1 Three. js examples The button says “WebXR not supported”, but I have seen a video of someone making it work. mozilla. 0: 77: July 31, 2024 Home Hi there, My team and I are currently working on having a Three scene rendering Three objects as well as a 2D plane with a CanvasTexture that PixiJS uses to render. Windows/Linux/MacOS, Firefox/Chrome/Safari. 3 Behind the video, it does seem like texture uploads are happening because once you exit full screen, the underlying example has the last played video frame on the texture. [page:Constant minFilter] -- How the texture is sampled when a Hey All Something I am facing in my current project using ThreeJS v155, is that video textures appear washed looking in Safari as opposed to Chrome/Firefox. Both were MP4 files, anyone has an idea what the criteria would be for MP4 files to work with video textures on the Environment mapping only works on Safari after Three. We are having a problem with an application that we are building. js - Animating Texture on rotating cube (works) plain three. For iOS you might be able to use this In my webapp, when clicking on a button a collection of many (~200) images is displayed sequentially. Memory is managed so that only 1 image is stored at a time. js using textures, even rapidly animated, works fine (works) plain three. I am using Nuxt. js forum Problem with video texture. It seem wrong the colorspace, or gamma?. js video texture as the source. On my Android Phone in any Browser (Fairphone 4, I’m trying to get a video texture playing on iOS devices. app/ //web-portfolio-seven. js webgl video texture CORS issue on safari. This problem is more evident on mobile devices, especially the iPhone (Safari). This question GLTFLoader with basisLoader renders only alpha map on iOS on this forum might be the issue I’m encountering but the reference images provided are no longer live so I’m not sure. bug, safari, videotexture. Here is the Three. textures, color, browser. I am trying to code shadow casting following a tutorial. js but instead of playing the video as a texture, the browser launches the video in a player that covers the window. js video texture - but would like to use this. This can cause issues when attempting to set video sources dynamically or when attempting to change sources. Attention threeJS wizards! 🪄 I’m battling a strange rendering inconsistency with a GLSL shader in my threeJS project. My canvas texture size is 2K. video: implement basic controls for the 360 video player. format or texture. It supports WebGL, but I have only managed to make it work with older releases of three. Questions. g. However I’m trying to change to using ThreeJS on a WEBGL Canvas, I’m getting the following errors on the M1 chip Macbook. hofk. Changing Texture. Basically you do a chapter, then we change routes and a new React Hi, I seem to be having a problem with Firefox 76 using a texture from an SVG that is already loaded in the browser (I’m on macOS Catalina, haven’t tried Windows / Linux). Basis textures on Safari From the Collection of examples from discourse. format to an integer texture may fix the issue, but also cause colour changes / artifacts on the texture - but I’m guessing, maybe @Mugen87 / @Fyrestar will know more about how it The crashes are random on WebGL 2. Good luck. getElementById("cosmosVideo"); video. Learn how to use videoTexture to texture the sides of a cube with video images. shadowmap. This application consists of several scenes that we instantiate dynamically using React. x. The Challenge: In Webkit browsers (Safari), the shader looks amazing, with buttery smooth transitions and visuals. Hi, I have a video texture with a video playing and it works fine on Safari. However, as soon as I'm entering VR mode (when the confirmation popup comes up) the video stops updating on the mapped texture. 6). 16. 4 since similar issues have been reported in the last few weeks. js VideoTexture example, video url starts with "http" is prefered (but basically all of the examples are not, why?), so i trid this one with codepen (m Hi Mugen87. I forgot some important things that could help you understand the problem. I believe most Android Phones can support WebXR using Chrome or Firefox. 4: 1006: April 8, 2020 My model have weird jaggered edges while on display. Was anyone able to run a three. textures. I’ve tried reducing the number of Hello there. I have made a cube with textures with three. Good news is that switch to mp4 format this will work half-way. type and Texture. I’ve seen this is only posible with a <video> tag, so I wonder if there’s a way to render the scene in it. 161. textures, materials, shaders. For every Browser except Safari WebM works totally fine. But when I switched It works on every devices except iOS and I’ve no idea why. In Chrome the texture colors look fine. This is why I’ve gone the WebP route via CanvasTexture and then onto scene. materials, shaders. js and I directly started using react-three/fiber. I am trying to display a video which has transparency. Although very poorly on Safari and FireFox. Renders a VideoTexture with transparency. I don’t have a up-to-date iOS to reliably test, neither a Mac to debug ( @Mugen87?) I personally have the experience with iOS occasionally just not asking anymore if you didn’t accepted the first time/canceled the prompt one or the other way, i Screen captured and applied to on a PlaneGeometry via VideoTexture. js rendering, so basically you would need inline video Hi guys, Got a weird one for ya. For details please see here: three. js webgl - lottie loader - I get that the performance issue arises from having to read the pixels off the canvas on the CPU and upload it to the GPU, however if I run a video and use VideoTexture (same pixel dimensions as the Hey guys, I’m trying to make a plane with a video playing on it as some kind of dance floor: glitch. ATTEMPT: I’m trying to programmatically switch between two video sources. encoding = THREE. 4: 580: November 11, 2020 June 23, 2020 Video texture not working on mobile safari. The code like this const createVideoMesh = ( obj: Object3D<ThreeEvent>, video: HTMLVideoElement ): Mesh => { const mesh = obj. Thank you for your answer (I’m actually working with Victor). I want to be able to render the Three. I’ve noticed a really annoying problem regarding orbit controls that happens only on safari. I’ve looked at caniuse. js, there is a VideoTexture class The issue is that the video in the Three. Video texture not working on mobile safari. We have started to build a 360 video browser-based tour engine using threejs. 4: 5645: September 24, 2018 effectComposer causes problems with line rendering. js - Video playback (HTML5 VideoElement) Apple Vision Pro Simulator in VR mode not playing - Stack Overflow any help is highly appreciated. Our THREE JS video Note: To actually see VR you will need a WebXR compatible device. js forum Trying to use video texture but not works. I have been having issues playing videos in threejs in Chrome on the Mac. video-texture, ios. I tried to create a video texture in Three. encoding without success Any idea? Thanks. 1. According to the Webkit bug tracker, the issue is already fixed on a dev branch. When playing in a browser supporting alpha channel, will simply play the alpha channel video, otherwise plays opaque videos while generating transparent pixels using the SeeThru method. WebGLRenderer: Texture has been resized from (8192x4096) to (4096x2048). How to using three. 1 You must three. Shader - Shadertoy BETA. [WIP-broken On Safari] 17. iOS Safari has its own native fullscreen video player which will take over the screen with video content instead of three. If you want VR controls that are inside the 3D space, you either need to create some Plane meshes yourself and move them around to keep them in view, or yep, you can use a library that already does that (a-frame, ReactVR). However, in Chrome and on Android, the video is really choppy, even though the audio plays fine. Eventually, I would be loading it on other geometries like cylinders. 2: 750: June 23, 2020 Loading I have a question similar to this one, but in my case, it's iOS causing troubles (not macOS, which I haven't tried yet), so I hope it's OK to post this as well. Recently, our client report some image item can not show normally in newest iOS/macOS safari and chrome( 16. color. Combining automated deployment, instant hosting & collaborative editing, Glitch gets you straight to coding so you can build full-stack web apps, fast We are converting our videos to images sequences and basis-video . I am using planegeometry and videotexture. de 2018. But current time was increasing video-texture. js - CodeSandbox Yellow Checkerboard, animated texture (works) plain three. But the texture in 3D model and spherical sky object work fine. Made with: HTML, CSS, JS. All items are 100% free and open-source. antialiasing. 4. bug, video-texture. getContext( 'webgl', Hello! I have a responsiveness problem in the safari browser, “canva” does not become full screen when scrolling my page. Same behiavour on: Windows, Chrome 123 macOS, Chrome 123 macOS, Safari I tested changing renderer. This is my GitHub repository. The difference between P3 from sRGB is quite video; three. js video textures and the GPU. Description Video textures look washed out in safari with mesh basic materials (Version 16. js and updating texture every frame using material. js version Can you link the bug you posted on Safari’s bug report channel? Any advice on reporting Safari bugs to apple using Feedback. Thank you. The biggest difficulty is that each texture has to be loaded in real-time : no pre-loading. 1 (16611. I’m using GSAP for the model animation, and it all works fine on desktops. I’m just starting out with three. js scene: Screenshot 2023-02-11 at 12. js meshes. js scene is a lot darker than the source material. The official three js examples don’t work either. 4 ) . it must shows video texture on the screen(I mean in camera by postprocessing but it shows anything. js working on the iPad and I have succeed. It's light blurry and I don't know how fix it. js video texture color issue. js (blurry) Since three. Do you mind opening a new issue for this? Thanks! Hello everyone. Link to the website: https://web-portfolio-seven. MIUI three. The images are 4160x3120 jpeg files (ballpark size of ~0. 10: 3563: Hello, I have a problem with video texture in my project. I’m using ThreeJs + 8thwall, using a target tracker to show an animation on a juice box. js GitHub issue tracker, but the devs felt the forum was more appropriate. Author: Louis Hoebregts (Mamboleoo) Links: Source Code / Demo. It is kinda like the THREE. Beta Was this translation helpful? Give feedback. js example on Apples vision pro simulator? We tried for example this one: three. For POC, I am trying to map the texture of plane geometry. wrapS = RepeatWrapping; videoTexture. magFilter = I want a very simple workable three. 3: 684: August 12, 2023 How to work with Display P3 Wide-gamut color profile in WebGL/Three. Final goal is to achieve Picture-in-Picture for my 3D scene. Use A Video As Texture. This is much likely a WebGL regression in iOS 16. Some time ago, Attempt to create context with _canvas. 0. BeginnerExample // step 04: use a texture for the material (see also step 5 ropeMaterial) // three. textures, loaders. Projector that is being discussed in this PR, but it doesn’t act as a light. 3: 697: August 12, 2023 Sounds like this may be a bug, especially if it’s happening on the official example. sRGBEncoding; Hi All, Official example showcasing webcam does not work on latest Safari 15. 0. . The webapp runs ok on a variaty of other OSs and browsers, e. I wonder if anyone here knows if it is possible to work with P3 wide-gamut color profiles in WebGL and Three. app/ three. Rather it acts as a texture on the object, I’m wondering if there’s a more performant way to take the content of Lottie (canvas player) animation and use it in a Texture. My video texture is setup like this: video_texture. js side of things instead of the basis texture so I’m posting here as well. The wall object is wide, so i need repeat the video texture. Safari doesn’t render any 3D on threejs. However, the majority other iPhones don’t work. Hi, I tried to create a video texture using THREE. However, with iOS, the model doesn’t always look I made a library which lets you Texture Projection on arbitrary three. JS scene inside a <video> HTML element. I don’t have any models in between those though. The default is [page:Textures THREE. Furthermore, I don’t have any iOS device to try things. Thanks On mobile you must start the video muted or safari in ios displays black video (or errors locally). Hey guys! I’m experiencing performance issues when trying to animate a 3D model in Three. js LoadingManager? Hello! Video texture does not work on mi browser from xiaomi. 1 (20E241) and since about last week, our app (https://app. Is there a way to load videos using Three. com) on iOS and so I went to try this example to see if the basic example worked properly. I’m applying fabric as canvas texture in three. com however the info doesn’t seem to be right as it says that I can use webGL on Tbh that’s the first time I see float point textures used. 10mb textures are not an option. 1 Three js performance. Its random from what I can tell Question about resolution/render sharpness of three. discourse. 5MB to 3MB). Was wondering if anyone has some hints into the right direction Seems like WebXR is not supported per default on the visionOS? We were using . But I came up with a basic example to showcase our problem: three. ThreeJS v155 Safari vs Chrome Video Texture Colors. js Alpha Channel Video Texture. 0: 998: March 17, 2022 Video texture not working on mobile safari. Hi Everyone, I am trying to add a video textured geometry inside the scene. However, on mobile devices, performance drops significantly, and the browser appears to I create a video texture for wall object. org. Timestamps:00:00 Hey I am running into behaviour I don’t understand using WebGLRenderTarget. As of today, Chrome already offers support for wide-gamut color profiles like Display P3. Safari does A gLTF model of a baseball park I’m using has 3 image textures. 1. I created a 3D scene with looping animation through threejs, and placed 8 video tags on the page to loop 8 different videos, and the size of the 8 video files does not exceed 100mb. gammaFactor or texture. The algorithm is: Render the scene into a render target from the point of view of a light source, storing the depth data in a texture Render the scene on canvas using the main camera and read the depthTexture data to decide ThreeJS v155 Safari vs Chrome Video Texture Colors. The goal is to have buttery-smooth animation Collection of 50+ Three JS Examples. Hey, I think I found a bug but im not quite sure. js forum Add video from webcam as background to entire scene. Load video using three. we can load t he video in THREE JS but dont really see how to play/pause the video . 0: 77: July 31, 2024 I urgently need help! I want to map a live video stream onto a plane in three. Other option is to use a more standard three. The code like this const createVideoMesh = ( obj: Object3D<ThreeEvent>, We also create a webXR website with THREE. full screen and VR buttons) Video sources must be fully loaded and ready to play before the texture can be rendered. Actually I am working with revision 84. 5 I am fighting to get three. If you open the Google Chrome browser, the video texture works. FYI, I have found a few WebKit / Safari issues that don’t appear to be directly related to Three. Using the one of the video examples on the threejs website Created a shadertoy to see if the problem persisted on there and video textures don’t seem to show at all on iOS and the clamp issue is present on macOS. Why I want to do this? I want to try to enable Picture-in-Picture for my 3D scene. I Hello. js As a beginner, please be gentle if I did silly mistake. app vs. js video texture example works fine on iPhone, I replaced my video source with the one from Three. I don’t think its the path since I have a Textures folder in the public folder and the video works well on computers and interestingly enough on a iPhone 11(Safari and Chrome). getContext( 'webgl2', contextAttributes ) and only if unsuccessful, fallback to _canvas. I have a problem with playing video in videotexture. The video is being played but transparency is not being set. 21. Any suggestions on how to use higher quality images or prevent automatic downsizing by three. 4: 2717: November 1, 2021 Help resolve bug either in ThreeJS or I’m trying to do something difficult: a Ken-Burns style animation of one large texture (A) cross-fading into another (B) and so on. js upgrade. js only supports powers of 2, I resized it to 4k but there was loss of quality. All browsers work including Safari mobile (even on my iPhone 7) only on Mac OSX Safari (tested on latest @mrdoob Since we're talking about all this video stuff, I have a somewhat related question / possible bug, though it likely only affects my particularly use case. The Overflow Blog Investing in the Stack Exchange Network and the future of Stack Overflow Adding video as Texture in three. 44. creativeinteractivemedia July 2, 2020, 1:11pm 1. I tried Remove default margins from body and html Check margins and padding of child elements Check the height of the body and html this happens when scrolling the page and the bar disappears. See [page:Textures magnification filter constants] for other choices. Three. Here is my code, which I tried to tidy up as much as possible: Hi guys im having trouble to get my website to show the rendering on safari on IOS. ofek_nakar March 15, 2021, 8:31am 1. needsUpdate = true. The thing is that we see a drastic performance loss on Learn how to show a video on all sides of a cube in three. THREE. Is there a simple way to do this? So far I’ve only seen HLS-based approaches, which require serving video from your own VPS server. It is still continuing in terms of progressing along the timeline but sound and update of the video texture stop in VR mode. js as a framework . js forum Problem with VideoTexture colors. js Video as a Texture - Texture Distortion Env textures of this detail and file size are not needed and are too big file size, this is for dull room env lighting and non detailed reflections. js apps. I will be very thankful if you can look at three. js, and then it worked. When I add a texture, the quality is not good. js - texture2darray example, looping video texture Any example from the three. 2: 961: three. Setting the texture colorspace to SRGBColorSpace doesn't seem to Can someone please confirm the minimum spec for running ThreeJS on iOS devices. But on iOS I have a web page with ThreeJS graphics in an iframe, which is working fine. 0: 74: July 31, 2024 Trying to use video texture but not works. js. The results so far have been really impressive, but I’ve run into a snag that I simply have not been able to get my head around. I’ll see if I can create a bug listing later on. 3. If you just want static UI on top of the 3D scene (f. It does work on an iPhone 6 though. I would like to ask if anyone has encountered such a situation and how to solve it. js forum VideoTexture Stopped playing video and got stuck at a frame. Both textures may be moving or rotating (which really makes any frame rate stutters quite obious). js? Questions. Unfortunately I can’t I have an old iPad2 stuck with iOS 9. Thanks for your response. Animation Using GSAP. If you run this example on chrome it runs smoothly, but on safari moving the camera slowly results in the background image stuttering a lot. It is played through an html5 video element and sent to THREE. 3: 1206: October 12, 2022 VideoTexture stuttered when it played on the android device. For a panoramic video player using Three. VideoTexture(), but it only rendered black on the iPhone. effect-composer. js ? How can I add video stream from my camera to the scene as background? three. com Glitch. 4). I have an iPad2 running iOS9. WebGLRenderer: OES_texture_float extension not supported. js webgl - Webkit METAL Z-fighting We can reproduce the bug by using “Safari Technology Preview” on MacOS. js and can't bring it to work on mobile Safari (iOS 15. Example: Original image Image in Three. 3. js part of my code and help me with my task. I’m currently running Safari Version 14. Must we make our own video controller in the animation loop or is there a better solution somewhere? Basis textures on Safari. here is a video of the situation : Youtube here is the code of the video : const video = document. The problem is when the user changes direction front/back it On Apple Vision Pro Simulator, it works fine in Safari in 3D mode. xwgod kjxx ume tvnq myal nomz plbkir vtzko juxwrkik tzw eriz ttrdl lxhgg slgoamfqf wdt