Posted: Fri Dec 19
Due: Tuesday 1/6/26 10:00am
- 4th Period: https://classroom.github.com/a/IKLQPom3
- 5th Period: https://classroom.github.com/a/iuIiffj5
(MDL actually stands for Motion Description Language)
Before doing anything else, take a look at MDL.spec, it provides important information about the language structure.
There are many commands and features in MDL that we will not be using yet, you should ignore those for now. This assignment will only focus on animation and knob related code:
Implement the following mdl commands:
frames- set the total number of frames for the animation (handle in first pass)
basename- set the basename for frames for the animation (handle in first pass)
vary- set the knob values for the animation (handle in second pass)
set- Set an individual knob value directly. (this happens in the main drawing loop)
- In addition to the new commands, you will have to:
- Call the first and second pass functions in the main drawing function
- Run the main drawing loop for the correct number of frames
- Update the knob values in the symbol table for each frame
- Save each frame when done, and reset appropriate structures
- Generate a gif from all the images at the end
You only need to modify one of the following files (c/python/java):
- Java
MDLReader.java
- Python
script.py
- C
my_main.c- look at print_pcode.c, it is an ideal template to follow for my_main.c
mdl.y: there is a comment at the very bottom that you will need to check.