-->

Using 3d Carousel project to create SPB Carousel s

2020-08-04 04:00发布

问题:

I want to make use of this project (which I really liked! :)

http://www.codeproject.com/Articles/146145/Android-3D-Carousel

And change each item's angle to get something like the greate SBP 3D shell (I'm not going to write it with NDK like them, it's just to demonstrate my goal):

spb.com/android-software/shell/

To make it clearer, look at this: https://picasaweb.google.com/106652353498756915046/July302012#5771003229411069650

I want to get #2, instead of #1 (which I can get now with the 1st project i mentioned).

I have to work with api level 10, so CarouselView is not helping me...

Thanks in advance, Eliram.

回答1:

Found the solution (:

Modify Carousel.getChildStaticTransformation(). after mCamera.translate(), and before mCamera.getMatrix() add:

mCamera.rotateY(-(CarouselImageView)child).getCurrentAngle());

works perfect!