skija icon indicating copy to clipboard operation
skija copied to clipboard

Add support for camera distance

Open nadewad opened this issue 5 years ago • 3 comments

Considering that Skija is used to power compose on the desktop, there should be some parallel support for existing graphics facilities that are part of the compose API surface. Jetpack compose supports "camera distance" parameters on layer that is useful for handling rotations around the x and y axis (for example, card flip animations). This requires leveraging Sk3DView APIs in skia which would need to be included in the Skija bindings.

https://cs.android.com/androidx/platform/frameworks/support/+/androidx-master-dev:compose/ui/ui/src/desktopMain/kotlin/androidx/compose/ui/platform/SkijaLayer.kt;l=130?q=SkijaLayer

A link to the implementation of camera distance in the Android framework is shown in this link and can be leveraged within the Skija implementation.

nadewad avatar Dec 02 '20 22:12 nadewad

Thanks, I’ll put in on the queue

tonsky avatar Dec 03 '20 11:12 tonsky

Any update?

MMarco94 avatar Sep 05 '21 16:09 MMarco94

No, sorry. What you are asking seems to be deprecated? https://github.com/google/skia/blob/f65cd9be733039d871e23eea8566bc2827dcbd6f/RELEASE_NOTES.txt#L564-L565

tonsky avatar Sep 05 '21 23:09 tonsky