akella / fake3d

517 stars 106 forks source link

Blur areas with missing data? #15

Open qrisse opened 4 years ago

qrisse commented 4 years ago

This library is awesome. Some images are not very suitable to use for Fake3d though, and you get a double image effect in areas with missing data. Right now I put a limit on the vertical and horizontal thresholds but I have noticed that Facebook blurs these parts rather than showing the same data twice, which works rather well to a certain extent. Is it possible to do something similar with this code?

akella commented 4 years ago

this code meant to be a simple example of effect. What you are saying is also doable, but quite specific, so you need to work that out yourself with help of fragment shaders, you can learn them here https://thebookofshaders.com/

Yukiniro commented 2 months ago

This library is awesome. Some images are not very suitable to use for Fake3d though, and you get a double image effect in areas with missing data. Right now I put a limit on the vertical and horizontal thresholds but I have noticed that Facebook blurs these parts rather than showing the same data twice, which works rather well to a certain extent. Is it possible to do something similar with this code?

Same problem. Is there some resolutions?

akella commented 2 months ago

unfortunately this requires specific solutions for different images, not possible with this demo