Weird results when using writeVideo with opengl

Hello,
When I create an animation using writeVideo where the 'Renderer' property of the figure is set to 'opengl' I get a 20 seconds animation of the first frame. Furthermore, the frames look as if the original figure is partially transparent such that other windows (such as the Matlab window) are visible beneath. See attached image which hopefully clarifies the problem. This doesn't happen when I assign 'zbuffer' to the figure's 'Renderer' property.
I'd appreciate some help here. Thank you in advance.

답변 (1개)

Chad Greene
Chad Greene 2014년 7월 28일

0 개 추천

If you're using frame = getframe(gcf) , you might try frame = export_fig(gcf,'-nocrop').

댓글 수: 1

Yoav
Yoav 2014년 7월 28일
Thank you! (that was fast...) This seems to solve that issue. Is there a known issue with writeVideo together with OpenGL that export_fig is taking care of? Best.

이 질문은 마감되었습니다.

제품

질문:

2014년 7월 28일

마감:

2021년 8월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by