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

3D 180度全景播放,修改了纹理坐标后,显示界面异常,该如何修改呢? #13

Closed
hd03022163 opened this issue Jun 12, 2016 · 2 comments

Comments

@hd03022163
Copy link

你好,我使用了你的sdk来做一个播放器app,播放3D180度的视频,视频源为左右显示的源,我修改了generateSphere中生成的texcoords 部分代码,分屏显示可以看出有3D的效果,但是视频对接的地方会多出一部分异常显示的纹理,一下为我修改的代码,能帮忙看看是那边改错了吗 还是修改思路不正确,谢谢!
//texcoords[t] = s_S;
float curTexcoord = s_S;
switch (type) {
case Type3D180:
if (bLeft) {
texcoords[t] = s< sectors/2?curTexcoord:(s-sectors/2)_S;
}
else{
texcoords[t] = s< sectors/2?(s + sectors/2)_S:curTexcoord;
}

                break;
@ashqal
Copy link
Owner

ashqal commented Jun 28, 2016

Will implement soon.

@ashqal
Copy link
Owner

ashqal commented Jul 2, 2016

[config projectionMode:MDModeProjectionStereoSphere];

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

No branches or pull requests

2 participants