Si31 advanced computer graphics agr
Download
1 / 32

SI31 - PowerPoint PPT Presentation


  • 330 Views
  • Uploaded on

SI31 Advanced Computer Graphics AGR Ken Brodlie [email protected] Lecture 1 - Overview Objectives To understand how 3D scenes can be modelled - in terms of geometry, appearance and behaviour - and rendered on a display

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'SI31' - victoria


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Si31 advanced computer graphics agr l.jpg

SI31Advanced Computer GraphicsAGR

Ken Brodlie

[email protected]

Lecture 1 - Overview


Objectives l.jpg
Objectives

  • To understand how 3D scenes can be modelled - in terms of geometry, appearance and behaviour - and rendered on a display

  • To understand how to deliver interactive animated 3D graphics over the Internet

  • To be able to create interactive 3D graphics applications using industry standard software (OpenGL, VRML and POVRAY)


Lecture outline the basics l.jpg
Lecture Outline - The Basics

  • MODELLING

    • representing objects in 3D

    • transforming objects and composing scenes

  • VIEWING

    • projecting 3D scenes onto a 2D display surface

  • RENDERING

    • illumination

    • shading

    • adding realism via textures, shadows


Basic modelling l.jpg
Basic Modelling

y

objects represented

as set of faces - ie

polygons- and faces

as a set of points

x

z

scenes composed

by scaling, rotating,

translating objects to

create a 3D world


Viewing l.jpg

camera

Viewing

  • Clipping

    • selects a volume of interest

  • Projection

    • 3D scene is projected onto a 2D plane


Rendering l.jpg
Rendering

illumination:

how is light reflected

from surfaces?

??

shading:

how do we use our

knowledge of illumination

to shade surfaces in our

world?


Rendering7 l.jpg
Rendering

  • texture

  • shadows


Lecture outline internet l.jpg
Lecture Outline - Internet

  • VRML

    • ISO standard for 3D graphics over the Web

    • allows modelling of geometry, appearance and behaviour


Lecture outline advanced l.jpg
Lecture Outline - Advanced

  • ADVANCED RENDERING

    • direct versus global illumination methods

    • ray tracing and radiosity

  • OTHER ADVANCED FEATURES

    • curve and surface modelling

    • image based rendering

    • non-photorealistic rendering


Lecture outline advanced10 l.jpg

eye

screen

Lecture Outline - Advanced

  • Advanced Rendering - global illumination

    • ray tracing

    • radiosity

      based on physics of radiative heat transfer between surfaces

objects

light



Ray tracing12 l.jpg

POVRAY - freely available ray tracing software

http://www.povray.org

Ray Tracing


Radiosity l.jpg
Radiosity

from

www.lightscape.com


Practical outline l.jpg
Practical Outline

  • Basic graphics programming

    • creation of interactive 3D worlds using OpenGL

  • Web graphics

    • creating interactive, animated 3D virtual worlds on the Web using VRML

  • Advanced rendering

    • using POVRAY

  • Practical work will use the Linux and NT machines


Slide15 l.jpg
AGR

  • Mastersclasses

    • additional seminars / study groups on more advanced topics in computer graphics and virtual environments… such as simulation of soft objects

  • Additional practical project


Course info l.jpg
Course Info

  • Lectures

    • Monday 2.00 - 3.00 (LT19)

    • Tuesday 1.00 - 2.00 (LT25)

  • Practicals

  • Web site

    • http://www.comp.leeds.ac.uk/kwb/si31

  • Newsgroups

    • local.modules.si31 local.modules.agr

    • local.modules.si31.talk local.modules.agr.talk


Books l.jpg
Books

  • Computer Graphics (second edition)

    • Hearn and Baker, Prentice Hall

  • 3D Computer Graphics (third edition)

    • Alan Watt, Addison Wesley

  • OpenGL Manual


Books18 l.jpg
Books

  • Introduction to Computer Graphics

    • Foley, van Dam, Feiner and Hughes, Addison-Wesley

  • Interactive Computer Graphics (top-down approach using OpenGL)

    • Angel, Addison Wesley

  • The VRML 2.0 Handbook

    • Hartman and Wernecke, Addison-Wesley

  • 3D Games

    • Alan Watt and Fabio Policarpo


Assessment l.jpg

Module

Examination

Coursework

SI31

67%

33%

AGR

60%

40%

Assessment



Applications computer aided design l.jpg

This is Hubble Space Telescope modeled using the BRL-CAD system

Uses CSG modeling and ray tracing for rendering

http://ftp.arl.mil/brlcad

Applications - Computer-Aided Design


Applications virtual reality l.jpg

Virtual oceanarium built for EXPO in Lisbon system

Example taken from Fraunhofer Institute site

http://www.igd.fhg.de

Applications - Virtual Reality


Applications cartography and gis l.jpg

Ordnance Survey system

http://www.ordsvy.gov.uk

GIS-3D also from Fraunhofer Institute

Applications - Cartography and GIS


Applications computer art l.jpg

This example can be found on the SIGGRAPH Web Site system

Important computer graphics resource

http:www.siggraph.org

Applications - Computer Art


Applications scientific visualization l.jpg

Turning scientific data into pictures system

with applications to medicine and computer simulations

Applications - Scientific Visualization


Before we begin mathematics l.jpg
Before we begin...mathematics! system

  • 3D Co-ordinate Systems

y

y

z

x

x

z

LEFT

RIGHT

z points away

z points toward

Align thumb with x, first finger with y, then second finger

of appropriate hand gives z direction. Common now to

use a RIGHT HANDED system.


Points and vectors l.jpg
Points and Vectors system

  • We shall write points as column vectors

y

P

P =

x

y

z

x

z

Difference of two points gives a direction vector:

D = P2 - P1

y

P2

Note: If P1 and P2

are on a plane, then

D lies in the plane

x

z

P1


Magnitude of a vector l.jpg
Magnitude of a Vector system

  • The magnitude of a vector V = (v1,v2,v3)T is given by:

    |V| = sqrt(v1*v1 + v2*v2 + v3*v3)

    eg (1,2,3)T has magnitude sqrt(14)

  • A unit vector has magnitude 1

  • A unit vector in the direction of V is

    V / |V|


Scalar or dot product l.jpg
Scalar or Dot Product system

  • The scalar product, or dot product, of two vectors U and V is defined as:

    U.V = u1*v1 + u2*v2 + u3*v3

  • It is important in computer graphics because we can show that also:

    U.V = |U|*|V|*cosq

    where q is the angle between U and V

  • This lets us calculate angle q as

    cos q = (u1*v1 + u2*v2 + u3*v3) / (|U|*|V|)


Diffuse lighting l.jpg
Diffuse Lighting system

  • Diffuse reflection depends on angle between light direction and surface normal:

    reflected intensity = light intensity * cosine of angle between light direction and surface normal

normal

light

scalar product lets

us calculate cosq

q


Vector or cross product l.jpg
Vector or Cross Product system

  • The vector or cross product is defined as:

    UxV = (u2v3 - u3v2, u3v1 - u1v3, u1v2 - u2v1)

  • We can also show that:

    UxV = N |U||V| sin 

    where N is unit vector orthogonal to U and V (forming a right handed system) and q is angle between U and V

  • This allows us to find the normal to a plane

    • cross-product of two directions lying in plane , eg (P3-P2), (P2-P1), where P1, P2, P3 are three points in the plane


Exercises l.jpg

Convince yourself that the x-axis is represented by the vector (1,0,0)

What is the unit normal in the direction (2,3,4)?

What is the angle between the vectors (1,1,0) and (1,0,0)?

Which vector is orthogonal to the vectors (1,0,0) and (0,1,0)?

What is the normal to the plane through the points (1,2,3), (3,4,5) and (0,0,0)?

Exercises


ad