Download presentation
Presentation is loading. Please wait.
Published byTamsin Bruce Modified over 9 years ago
2
What are Computer Graphics Basically anything that is on you Monitor – This includes the text that you will see Text isn’t Advanced Graphics But…. Understanding the way text is rendered is part of understanding the graphics system
3
What are Advanced Graphics used for? Design Simulation Animation User Interfaces Aero anyone? GAMES Movies
4
The Basic Graphic System Input Device Processor Memory Output Device
5
Completing the Basic Graphic System Frame Buffer GPU Multiple Inputs
6
Rasterisation Pretty Picture goes here
7
The 3D Space Although Graphics exist in 2D we will focus on 3D – 2D uses many of the same concepts, just with a lot less complexities (in some areas) For a 3D scene we need: – An Object – A Viewpoint
9
Okay, so realistically you need some lighting too! This is where much of the complexities of 3D rendering emerge Light
10
Troublesome Light Radiosity Ray Casting Ray Tracing Monte Carlo Ray Tracing Photon Mapping Caustics
11
More Detail on Rendering a View Camera Location View Direction Orientation Field of View (FoV) Aspect Ratio Clipping Box / Plane
12
How the Hardware Does the Rendering Transformations Projections Clipping Into a Frame Buffer Pixel Operations are then applied
14
Programming basics Coordinate Systems World Coordinates – Vertex Points Screen Coordinates – X,Y Pixels (Sometimes Z as well!)
15
OpenGL Primitives So our World is built out of Polygons – Types of supported Polygons Points Lines Polygons Curves Surfaces
16
What should your Polygon be? Simple Convex Flat Y?
17
OpenGL Objects glBegin(…..) glEnd(); GL_POINTS// Points GL_LINES// segments GL_LINE_STRIP// PolyLines GL_LINE_LOOP // PolyLines
18
OpenGL Objects Continued GL_POLYGON GL_QUADS GL_QUAD_STRIP GL_TRIANGLES GL_TRIANGLE_STRIP GL_TRIANGLE_FAN
19
Triangles are your Friend Any user defined objects will need Convextivity testing. – Depending on the test results you may need to tessellate their objects
20
A Quick Example of their uses
21
Lab Class outline Creating DirectX / OpenGL Projects Rendering a few simple polygons
22
OpenGL Programming The Basics You need – A Basic Windows Program Framework – A Window Handle – Hardware Device Context – Hardware Render Context – Rendering Code
23
Things to come Lecture 3: – User Input basics
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.