安卓:一个对象的360度视图 [英] Android: 360 degrees view of one object

查看:214
本文介绍了安卓:一个对象的360度视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么办法可以创建照片360度的对象视图?我有一组71张照片的单一车从不同的角度来看的。我想将它们结合起来,并能够触摸屏幕从不同角度看它时,旋转的车。 我已经做了研究,但我找不到任何的机器人完成。一个例子是找到这里

Is there any way to create a 360 degree object view from photos? I have a set of 71 photos of a single car viewed from different angles. I want to combine them and be able to rotate the car when touching the screen seeing it from different angles. I've done researching but I couldn't find anything done in android. One example is found here

这个例子是用jQuery的。我需要的是直接在Android应用程序实现它。我怎样才能做到这一点?

This example is made with Jquery. What I need is to implement it directly inside an android app. How can I do this?

EDIT1:到现在为止我设法在的这个方式:

Until now I managed to create an animation between images in this way:

现在的问题是,该动画开始的点击和作品本身。我希望能够动车由左到右,右保持手指pressed,并移动到右侧或左侧时离开。我如何能做到这一点,所以我可以看到从车的角度我想要的吗?

The problem is that the animation starts on click and works by itself. I want to be able to move the car from left to right and right to left when keeping the finger pressed and moving to right or left. How can I do that so I can see the car from the angle I want?

推荐答案

我刚刚测试了一下,我的设备上jQuery插件页面,它似乎工作好了。所以,你仍然可以presumeably使用该插件做出一些HTML内容,您可以再加载到一个web视图。这将使旋转的事情你的应用程序中。

I just tested that Jquery plugin page on my device and it seems to work alright. So you could still presumeably use that plugin to make some html content that you could then load into a WebView. That would give the rotation thing inside of your application.

如果您不希望使用HTML / JavaScript来做到这一点,你将不得不使用与连接到它通过交换到下一个图像在适当的时间处理拖动事件TouchListener的ImageView的。

If you don't want to use html/javascript to do it you'll have to use an ImageView with a TouchListener attached to it that handles the drag events by swapping to the next image at the appropriate interval.

或者可能以某种方式用帆布,虽然我不熟悉,我就结怎样形容你需要做的,使其工作这种方式。

Or probably somehow with Canvas, though I am not as familiar with that, I would knot how to describe what you'd need to do to make it work this way.

这篇关于安卓:一个对象的360度视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆