-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Labels
Description
Describe the problem
There are not many easy methods of personalizing native application, adding a background image is one popular method.. but making it look 3D would take it one step further!
Use cases:
- Change background when page changes. Example: Nature catalogue app
- Change background when listview item selection changes. Example: Ambie music app
- Depth cards (see preview.)
- Apps with gyroscope support.
Describe the solution
Creating a 3D scene can get complex and not practical; instead we can use depth map (image) and shaders to create a similar effect by shifting the pixels at different speeds based on the depth.
Demo running on opensource app Ambie:
Ambie.Depth-1.mp4
Demo depth cards:
depth_cards.mp4
Advantages of depth map:
- Small size: no additional dependency other than Win2D; depth map is a simple image (can be smaller size than the input.)
- Simple: depth map can be generated using machine learning, captured using smart phone camera or drawn using paint.
- Performant: simple pixel shifting using shader.
Alternatives
Creating a 3D scene.
ParallaxView for 2D effect.
Additional info
I am still learning Win2D, will post a sample project in a bit (need some cleaning.)
Help us help you
Yes, I'd like to be assigned to work on this item.
Reactions are currently unavailable