3D 视图变换,如晨间例行程序应用程序 [英] 3D view transform like Morning Routine App
问题描述
谁能告诉我怎么做创造这种观点的转变?我试过 opengl ,但我没有帮助,而且我不懂螃蟹!
someone can tell me how to create this transformation of view ? I tried opengl , but I was not helping and I did not understand crabs!
推荐答案
It's done using a BitmapMesh canvas.drawBitmapMesh(..);这基本上是一个坐标网格.查看 Api 演示中的 BitmapMesh.java 以获取简单示例.
It´s done using a BitmapMesh canvas.drawBitmapMesh(..); which basically is a grid of coordinates. Check out BitmapMesh.java in the Api demos for a simple example.
然后使用 PathMeasure 将坐标映射到一组路径以实现波浪效果.希望以后有时间写一篇博文,开源窗帘菜单.
The coordinates are then mapped up to a set of Paths using PathMeasure to achieve the wavy effect. I hope to get the time to write a blogpost and opensource the curtainmenu in the future.
这篇关于3D 视图变换,如晨间例行程序应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!