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.

Answers (1)

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

1 Comment

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.

This question is closed.

Products

Asked:

on 28 Jul 2014

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!