Jump to content

iOS - Video texture display issues


re_evolutn
 Share

Recommended Posts

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?

IMG_0003.PNG

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

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-)

 

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

  • 1 year later...

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.

 

 

Link to comment
Share on other sites

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!!!! 

pair-beer-glasses-making-toast-9585604.jpg.e8aca23a2319579e226020c76325a667.jpg

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...