Presentation is loading. Please wait.

Presentation is loading. Please wait.

Part I. Drawing an Image using Lines (Airplane, Missiles, Stars) Part II. Animating Objects in the image using timers Part II. Animating objects using.

Similar presentations


Presentation on theme: "Part I. Drawing an Image using Lines (Airplane, Missiles, Stars) Part II. Animating Objects in the image using timers Part II. Animating objects using."— Presentation transcript:

1

2

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)

7

8

9

10

11

12

13 1 2 3

14

15

16

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

19

20

21

22

23

24

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.


Download ppt "Part I. Drawing an Image using Lines (Airplane, Missiles, Stars) Part II. Animating Objects in the image using timers Part II. Animating objects using."

Similar presentations


Ads by Google