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.

Respuestas (1)

Chad Greene
Chad Greene el 28 de Jul. de 2014

0 votos

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

1 comentario

Yoav
Yoav el 28 de Jul. de 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.

La pregunta está cerrada.

Productos

Etiquetas

Preguntada:

el 28 de Jul. de 2014

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by