1. Imagine you are creating a scene where a car drives along a straight road, but swerves around at random as if the driver is drunk.Do you think it would be useful to know how to program using MEL when creating this scene? Explain.
Answer:
In my opinion, MEL scripting is only able to create a normal random swerving, just like the human in the Zombie exercise but it is not the best choice as we are not able to create any effects like breaking at some point. It is better to do it on the stage itself so that you can manually adjust the animation.
In my opinion, MEL scripting is only able to create a normal random swerving, just like the human in the Zombie exercise but it is not the best choice as we are not able to create any effects like breaking at some point. It is better to do it on the stage itself so that you can manually adjust the animation.
2. For drunken car scene, give TWO advantages and disadvantages (pros and cons) of using scripting to create the swerving car animation.
Answer:
Advantages:
- The first advantage of using scripting for the scene is that I am able to get the basic swerving of the car at random and I do not have to waste time to animate it slowly. It saves time.
- The second advantage is that, with MEL scripting, I am able to do a control panel to adjust the speed of the car. I do not have to confuse myself and use keyframes.
Disadvantages:
- The first disadvantage is that I may not get the effects that I want with MEL scripting. For example a sudden jerk and when it jerks, the car boot will open a little to show the impact of the jerk. I will still need to do it manually.
- The second disadvantage is that the animation will go on forever until I press the stop button. It will not be easy if I want to add in other scenes.
3. You might think that programming using MEL is similar to using ALICE(in year 1). It is actually very different. Explain TWO of the main differences, as far as you can tell.
Answer:
Differences:
- Alice is a freely available teaching tool designed to be a student's first exposure to object-oriented programming while MEL is an advance scripting.
- Scripting languages like MEL scripting are languages that allow you to send commands directly to a system that executes these commands. These commands are read line by line and executed. An error is issued when a line cannot be executed for any reason. Programming languages that are used in ALICE are languages that allow you to create a program by writing structured code that is read all at once by the system, checked for errors, and translated into an unreadable format that the machine can then execute. In Alice's interactive interface, students drag and drop graphic tiles to create a program, where the instructions correspond to standard statements in a production oriented programming language, such as Java, C++, and C#.
























































