![]() Right now, this is taking roughly 3s a frame. I can't use getframe for a number of reasons, some of which are verified MATLAB bugs. WriteVideo(VR,im2frame(imread('TMP.bmp','BMP'))) %THIS LINE could be a problem Print(gcf,'TMP.bmp','-noui','-r140','-dbmp','-opengl') %THIS LINE could be a problem Patch('Vertex',vertices,'Face',faces) %THIS LINE could be a problem Just the length of the movie.įor i = 1:numberOfFrames %do some math, but its really fast VR.FrameRate = 10 %though the number of frames doesn't change. VR = VideoWriter('filename.mp4','MPEG-4') = readOBJ('filename') %really fast, occurs once Here's basically what I'm doing, in a combination of matlab and pseudocode, with notes about speed of each line. ![]() ![]() ![]() I'm making an animation from an obj file using MATLAB 2012a, but the movie writing process is very slow. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |