re_evolutn Posted January 15, 2017 Share Posted January 15, 2017 Hi guys, see attached screenshot. You'll notice the video has a blue tint which should not be there.This tint only appears on iOS when using VRDeviceOrientationFreeCamera, although it used to also appear in DeviceOrientationCamera, but adding an empty LensRenderingPipeline seemed to fix the issue. I've already tried what @Nabroski mentions here on page 2: I've been battling this issue for a while now and was wondering if anyone could help? Quote Link to comment Share on other sites More sharing options...
dbawel Posted January 16, 2017 Share Posted January 16, 2017 I wish I didn't have to support IOS - as I spend most of my time navigating their own unique OS and BS. However, what devices are you testing on - as I've overcome IPAD performance. DB Quote Link to comment Share on other sites More sharing options...
re_evolutn Posted January 16, 2017 Author Share Posted January 16, 2017 I know its a pain, I also wish I could avoid supporting iOS but its a requirement from my client - I've encountered this issue on iPhone 5s, iPhone 6, and iPhone 6s. All running iOS 10.2. iPad is fine. I'm using https://www.npmjs.com/package/iphone-inline-video to get around the inline video restrictions in iOS. Also, as I mentioned earlier, this only seems to be happening with VRDeviceOrientationFreeCamera, DeviceOrientationCamera works fine. cheers, dbawel 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 17, 2017 Share Posted January 17, 2017 Hello the VRDeviceOrientationFreeCamera uses a postprocess to simulate the lenses. You can try to disable it by setting the compensateDistorsion to false (http://doc.babylonjs.com/classes/2.5/VRDeviceOrientationFreeCamera#new-vrdeviceorientationfreecamera-classes-2-5-vrdeviceorientationfreecamera-name-position-scene-compensatedistortion-vrcamerametrics-) Quote Link to comment Share on other sites More sharing options...
re_evolutn Posted January 17, 2017 Author Share Posted January 17, 2017 Hey Deltakosh, I already have compensateDistorsion set to false to reduce overhead. Could it have something to do with memory limitations in iOS? There is less blue artifacting when comparing between iPhone 6 and iPhone 6s. I imagine that fact that iOS does not like rendering video inline also doesn't help. cheers, Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 18, 2017 Share Posted January 18, 2017 I see no reason why this happens With no compensation there is no postprocess Quote Link to comment Share on other sites More sharing options...
FlashyGoblin Posted February 16, 2018 Share Posted February 16, 2018 I'm getting the same issue. However it is only happening for me on iOS 10. iOS 11 looks fine. But I'm still searching for a fix for iOS 10! Quote Link to comment Share on other sites More sharing options...
FlashyGoblin Posted February 16, 2018 Share Posted February 16, 2018 Also to note, this is happening with the DeviceOrientationCamera for me. Quote Link to comment Share on other sites More sharing options...
FlashyGoblin Posted February 16, 2018 Share Posted February 16, 2018 Here is a Playground that shows the issue as well. On iOS 10, you can see the red heart in the video (once it loads). When you tap the screen to enable the video to play, the heart turns blue. https://www.babylonjs-playground.com/#CHQ4T#1 Quote Link to comment Share on other sites More sharing options...
Guest Posted February 16, 2018 Share Posted February 16, 2018 Can you try with a power of 2 video (like 256x256) Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 19, 2018 Share Posted February 19, 2018 video-tag to canvas in iOS10 is using the BGR color scheme instead of RGB. Apparently. And they seem to have fixed it in ios11! way to go apple! This is my solution for this - https://github.com/BabylonJS/Babylon.js/pull/3785 , but I will wait for @Deltakosh, because he will probably have a better one. The idea is - there will be a new flag in the background material to switch the reflection texture to BGR instead of RGB. The developer (not moi but toi) will need to set the flag when needed. davrous and FlashyGoblin 2 Quote Link to comment Share on other sites More sharing options...
FlashyGoblin Posted February 19, 2018 Share Posted February 19, 2018 3 hours ago, RaananW said: video-tag to canvas in iOS10 is using the BGR color scheme instead of RGB. Apparently. And they seem to have fixed it in ios11! way to go apple! This is my solution for this - https://github.com/BabylonJS/Babylon.js/pull/3785 , but I will wait for @Deltakosh, because he will probably have a better one. The idea is - there will be a new flag in the background material to switch the reflection texture to BGR instead of RGB. The developer (not moi but toi) will need to set the flag when needed. Awesome! Can't wait to try it in the next build. Thanks Raanan!!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.