Download presentation
Presentation is loading. Please wait.
Published byAsher Gavin Payne Modified over 9 years ago
3
Part I. Drawing an Image using Lines (Airplane, Missiles, Stars) Part II. Animating Objects in the image using timers Part II. Animating objects using keyboard buttons. Conclusion
4
An aeroplane is a complex object that can have different views and directions. Therefore, we can model the aeroplane object by stick a bunch of primitives together
5
Hierarchical Model Lower Part Upper Part Upper WingsElevator Small PartMain Part Surface Missile1 Missile2 Head Body Head Body Missile Missile1 Missile2 Head Body Head Body Missile Lower WingsElevator Small PartMain Part Surface Central Part Cockpit Fuselage
6
(0,0)
13
1 2 3
17
In C#, we can overwrite (override) OnPaint method to control what to draw in the screen. One aeroplane is drawn and then scaling and translating using ScaleTransform and TranslateTransform are done in order to draw another two aeroplanes.
18
Timer- Based C# Double buffer capability is used in order to hide the movement steps and to make the animation as real as possible Keyboard- Based DirectX
25
Creating graphics using geometric primitives such as lines is not a complicated process if the objects in the image are implemented by hierarchical models. The idea of animation is also can be simplified by designing an algorithm for how each object will move during the animation.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.