Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果想实现缩放功能该怎么做? #6

Closed
huachuanbuyongjiang opened this issue May 11, 2016 · 3 comments
Closed

如果想实现缩放功能该怎么做? #6

huachuanbuyongjiang opened this issue May 11, 2016 · 3 comments

Comments

@huachuanbuyongjiang
Copy link

现在视频只能滑动, 如果不想缩放画面的话, 该在哪里怎么改, 能不能详细说明下

@ashqal
Copy link
Owner

ashqal commented May 11, 2016

1.捕获pinch手势,算出缩放比例
2.调用MD360Director#updateProjectionNear实现缩放

如果有android基础,可以参考下
ashqal/MD360Player4Android@3acba03
等我实现的话,估计要这周末才有空

@huachuanbuyongjiang
Copy link
Author

恩 我先试试 希望可以补充此功能 这个库做的挺好的

ashqal added a commit that referenced this issue May 15, 2016
@ashqal
Copy link
Owner

ashqal commented May 15, 2016

/////////////////////////////////////////////////////// MDVRLibrary
MDVRConfiguration* config = [MDVRLibrary createConfig];

...
[config pinchEnabled:true];

self.vrLibrary = [config build];
/////////////////////////////////////////////////////// MDVRLibrary

@ashqal ashqal closed this as completed May 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants