Abc of DirectX

1,216 views

Published on

An Introduction to Computer graphics and DirectX

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,216
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
28
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Abc of DirectX

  1. 1. of DirectX… -- Prabodh Panda
  2. 2. Agenda• Warm Up – Graphics Card – Computer Graphics – Image Types – GDI / GDI+ – OpenGL (Open Graphics Library )• Introduction to DirectX – History – Architecture – Library• DirectX vs OpenGL• Demo• Hello world Program• Questions & Discussions
  3. 3. Warm Up …
  4. 4. Graphics Card• Part of the computer that controls and enhances graphics(Picture, Video, 3D animation) that are displayed in the computer screen.• Types of Graphics card : – AGP – PCI – On Board
  5. 5. Computer Graphics• Representation and manipulation of Image data by a computer. – The development of CG has made it easy for us to interact with the computer. – CG has brought about a revolution in the fields of :  Animation  Movies(Spl. Effects)  Video Games  Scientific Research  Industrial automation  Flight Simulation
  6. 6. Image Types• 2D Computer Image – Raster Image – Vector Image• 3D Computer Image
  7. 7. Raster Graphics• It is a data structure representing a rectangular grid of pixels or points of colors.
  8. 8. Vector Graphics• It uses geometrical primitives like points, lines, curves & Polygons) based on mathematical equation to represent Images.
  9. 9. Raster vs. Vector
  10. 10. 3D Computer Graphics• The use the 3 dimensions (X,Y & Z) axis for the representation of image data.
  11. 11. Computer Generated Imagery (CGI)• Popularly known as Computer Animation.• It is the field of Creating 3D images move.• Movie Industry – Animation Movies – Generating Spl. Effects
  12. 12. GDI / GDI+• Enables window based Application to use graphics and formatted text on both video display and printer.• Drawing fonts ,Lines , Curves and handling palettes. Window Application GDI / GDI+ x Window Graphics Driver• GDI cannot access complex graphics and needs OpenGL or DirectX for graphics rendering.
  13. 13. GDI / GDI+ Objects in MFC
  14. 14. OpenGL• Open Graphics Library (OpenGL) is a cross platform API for 2D/3D computer graphics.• OpenGL was developed by Silicon Graphics Inc. (SGI) in the year 1992.• Cross platform (Windows, Linux and Mac OS)• Used in – CAD – Virtual Reality – Flight simulation – Scientific – Video Games vs.
  15. 15. DirectX• Low level API’s Provided by Microsoft for – Creating Games – Multimedia Application – 2D and 3D Support – Network Application (e.g. Multiplayer games)• Works only with windows Platform(95/98/ME/2000/xp/vista/Win 7) – Released Version 1.0 to latest Version 11.0 – Win Xp Supports DirectX 9.0 – Vista Supports DirectX 10.0 – Win 7 Supports DirectX 11.0
  16. 16. History• Craig Eisler, Alex St. John, and Eric Engstrom creators of DirectX.• Direct Access : DirectX (Video Cards, M, Sound Device and other Hardware).• DirectX1.0 -- Sep 1995 as Windows Games SDK.• DirectX 11.0 is the latest SDK.
  17. 17. Architecture
  18. 18. HAL / HELDirectX uses two drivers to send request to graphics hardware devices• Hardware Abstraction Layer (HAL) : Uses hardware function capability.• Hardware Emulation Layer (HEL) : Use to emulate capability through software.Device Driver Interface (DDI)• It is layer to allow high level computer programs to interact with hardware devices
  19. 19. LibraryDirectX is SDK composed of collection of COM libraries• Direct3D – API to provide 2D and 3D graphics. – Setting resolution to the screens.• DirectInput – All user input is handles through API. – It supports devices such as keyboard, mouse, gamepad and joysticks.• DirectPlay – Network Support like multiplayer API.
  20. 20. Library (cont…)• DirectSound – API for Sound Effect. – Include Support for more than One or more sound files.• DirectMusic – Allow to make dynamic soundtrack.• DirectShow – Accessing Cut Scenes. – Streaming Audio (mp3, AVI, MPEG..).• DirectSetup – Create a Setup wizard for your game.
  21. 21. DirectX vs. OpenGL Controlled by Microsoft.  Controlled by ARB OpenGL Gaming and Multimedia  General Purposes 2D and 3D Programming graphics. Support Windows OS.  Platform Independent (Window, Linux, Unix and Mac ) Difficult to Learn (Less Documentation provided)  Easy to learn. API : COM  API : Includes and Library Vertex Blending : Yes  Vertex Blending : NA Two-sided lighting: No  Two-sided lighting: Yes
  22. 22. DirectX SDK• MSDN website
  23. 23. Visual Studio Setup
  24. 24. My First DirectX Program.. 
  25. 25. Demo
  26. 26. Books & References
  27. 27. Questions & Discussions
  28. 28. Thank You all…

×