Info

This question is closed. Reopen it to edit or answer.

Weird results when using writeVideo with opengl

1 view (last 30 days)
Yoav
Yoav on 28 Jul 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
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.

Answers (1)

Chad Greene
Chad Greene on 28 Jul 2014
If you're using frame = getframe(gcf) , you might try frame = export_fig(gcf,'-nocrop').
  1 Comment
Yoav
Yoav on 28 Jul 2014
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.

Products

Community Treasure Hunt

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

Start Hunting!