+ 4

What are the programming codes use for animated videos

Language or syntax and its applicalition

25th Jun 2019, 10:25 AM
Ighalo Destiny Aka @destinmedian
Ighalo Destiny Aka @destinmedian - avatar
1 ответ
+ 1
You mean for creating videos with computer generated graphics? I created several videos for fractal animations at: https://www.youtube.com/user/joshig1983 I used a mixture of c++, Java, Python, and even JavaScript. Here are some reasons I selected each: - c++ was used for some 3D graphics because it was compiled to machine language and would run more efficiently. I used c++ to make frames for some 3D fractal animations. A lot of processing was needed for every pixel so using a slower language would have made it too time consuming to render. Using pthread for taking advantage of your multicore processor would speed things up in c++. I didn't get that far for a video I made nearly 12 years ago, though. - Java and Python was used for some easy-to-use antialiasing vector graphics. I wanted to make animations of tree fractals and wanted all the lines drawn smoothly. Java's Graphics2D class and Python's PIL both made that functionality easy to find. - JavaScript was used because I made https://code.sololearn.com/WVhoMHzy3K81/ and wanted to make a video that promoted that code. It was most appropriate that I used the same code to make the video at https://www.youtube.com/watch?v=6oTEzDDTsnU. Python was also used for blending transitions at beginning and end of video but JavaScript rendered roughly 90% of the frames. I was using shader languages from WebGL lately and would probably use them to optimize either OpenGL or WebGL to create graphics faster for a future video. Shader languages are used in modern computer games and can be used for slower rendering tasks too. They're the fastest executing programming languages to use on any kind of computer generated graphics. They're great for optimizations but you'd have to use something like JavaScript or c++ for other parts of your tools to do things like reading and writing image files. After making a video's frame sequence, I used programs like ffmpeg and VirtualDub to turn the sequence and sometimes music into the final video.
25th Jun 2019, 12:12 PM
Josh Greig
Josh Greig - avatar