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.

Réponses (1)

Chad Greene
Chad Greene le 28 Juil 2014

0 votes

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

1 commentaire

Yoav
Yoav le 28 Juil 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.

Cette question est clôturée.

Produits

Question posée :

le 28 Juil 2014

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by