类似旋转木马效果的converflow,3D视觉效果

本文介绍了如何使用matrix、transformation、float和shader技术,结合path路径创建类似旋转木马的3D视觉效果。虽然源码无法直接展示,但通过解析关键概念和步骤,读者可以理解并实现这一独特视觉效果。
摘要由CSDN通过智能技术生成

源码下载,点击这里




private void transformImageBitmap(ImageView child, Transformation t,
			int rotationAngle) {
		mCamera.save();
		final Matrix imageMatrix = t.getMatrix();
		imageHeight = child.getLayoutParams().height;
		imageWidth = child.getLayoutParams().width;
		final int rotation = Math.abs(rotationAngle);
		
		Log.i("msg", imageHeight+ ","+imageWidth);

		mCamera.translate(0.0f, 0.0f, 60.0f);
		
		// As the angle of the view gets less, zoom in
		if (rotation < mMaxRotationAngle) {
			float zoomAmount = (float) (mMaxZoom + (rotation * 1.5));
			mCamera.translate(0.0f, 0.0f, zoomAmount);
		}

		mCamera.rotateY(-rotationAngle);
		mCamera
  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 30
    评论
评论 30
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值