Understanding Theory and application of 3D

Slides:



Advertisements
Similar presentations
Graphics Pipeline.
Advertisements

Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Rasterization and Ray Tracing in Real-Time Applications (Games) Andrew Graff.
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
(conventional Cartesian reference system)
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
7M836 Animation & Rendering
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer.
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
CS 445 / 645: Introductory Computer Graphics
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
Shading (introduction to rendering). Rendering  We know how to specify the geometry but how is the color calculated.
What is ? Open Graphics Library A cross-language, multi-platform API for rendering 2D and 3D computer graphics. The API is used to interact with a Graphics.
Advanced Computer Graphics March 06, Grading Programming assignments Paper study and reports (flipped classroom) Final project No written exams.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
Chris Kerkhoff Matthew Sullivan 10/16/2009.  Shaders are simple programs that describe the traits of either a vertex or a pixel.  Shaders replace a.
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
Lecture 9: Lighting and Shading 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 718,  ex 2271
CSE Real Time Rendering Week 2. Graphics Processing 2.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1Computer Graphics Lecture 4 - Models and Architectures John Shearer Culture Lab – space 2
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
RENDERING Introduction to Shading models – Flat and Smooth shading – Adding texture to faces – Adding shadows of objects – Building a camera in a program.
UV Mapping After a 3D object has been modeled it must be prepared for texturing. 3D surfaces can be “unwrapped” into a 2D representation with. This process.
Local Illumination and Shading
COMPUTER GRAPHICS CS 482 – FALL 2015 SEPTEMBER 29, 2015 RENDERING RASTERIZATION RAY CASTING PROGRAMMABLE SHADERS.
What are shaders? In the field of computer graphics, a shader is a computer program that runs on the graphics processing unit(GPU) and is used to do shading.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Chapter 1 Graphics Systems and Models Models and Architectures.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Models and Architectures 靜宜大學 資訊工程系 蔡奇偉 副教授 2012.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
1© 2009 Autodesk Hardware Shade – Presenting Your Designs Hardware and Software Shading HW Shade Workflow Tessellation Quality Settings Lighting Settings.
Applications and Rendering pipeline
Computer Graphics (Fall 2006) COMS 4160, Lecture 16: Illumination and Shading 1
Illumination and Shading. Illumination (Lighting) Model the interaction of light with surface points to determine their final color and brightness OpenGL.
Chapter 10: Computer Graphics
- Introduction - Graphics Pipeline
Photorealistic Rendering vs. Interactive 3D Graphics
Programmable Pipelines
Chapter 10 Computer Graphics
Understanding Theory and application of 3D
3D Graphics Rendering PPT By Ricardo Veguilla.
The Graphics Rendering Pipeline
CS451Real-time Rendering Pipeline
CSC4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Lighting & Shading.
Understanding Theory and application of 3D
Real-time Computer Graphics Overview
Interactive Computer Graphics
Models and Architectures
Chapter 14 Shading Models.
Models and Architectures
Models and Architectures
Introduction to Computer Graphics with WebGL
Lighting.
UMBC Graphics for Games
Models and Architectures
Understanding Theory and application of 3D
CS5500 Computer Graphics May 29, 2006
Models and Architectures
Illumination and Shading
14th Lecture – Final Lecture
Chapter 14 Shading Models.
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
CSC418 Computer Graphics Raytracing Shadows Global Illumination.
Presentation transcript:

Understanding Theory and application of 3D Displaying 3D polygon animations James Tedder

application programming interface Microsoft Direct3D: Part of the DirectX package and a competitor to openGL. It is an application programming interface (API) which renders 3D objects. Designed to speed up 3D rendering within Windows. All mainstream graphics cards support it. OpenGL: Open Graphics Library is a cross- language, cross-platform application programming interface (API)

Graphics pipeline Graphics Pipeline Framebuffer Display Maya 3D scene, Camera Parameters, and light sources

Graphics pipeline - Simplified To make a 3-D image, the graphics card has to: Create a wire frame out of straight lines. Rasterizes the image (fills in the remaining pixels). Then it also adds lighting, texture and colour. For fast-paced games, the computer has to go through this process about sixty times per second. Without a graphics card to perform the necessary calculations, the workload would be too much for the computer to handle.

Rasterisation Rasterization is the process of converting from polygons to pixels on the screen. It looks to determine what pixel is part of what polygon and the fills that pixel in with that polygons color or texture. As you can see the edges aren't very pretty, those jaggies are caused by the fact that the screen resolution isn't high enough to properly display the art we want. The effect is called aliasing and the process of removing it is known as anti-aliasing.

graphics pipeline - Expanded Stages required to transform a three-dimensional image into a two- dimensional screen. (Vector to Pixels) Bus interface/Front End Interface to the system to send and receive data and commands.

graphics pipeline 2. Vertex Processing/Shader Converts each vertex into a 2D screen position, and lighting may be applied to determine its color. 3. Clipping This removes the parts of the image that are not visible in the 2D screen view such as the backsides of objects or areas that the application or window system covers.

graphics pipeline 4.1 Primitive Assembly, Triangle Setup Vertices are collected and converted into triangles. 4.2 Rasterization The triangles are filled with pixels known as "fragments”. 5. Occlusion Culling Removes pixels that are hidden (occluded) by other objects in the scene.

graphics pipeline 7. Parameter Interpolation The values for each pixel that were rasterized are calculated, based on color, fog, texture, etc. 8. Pixel Shader This stage adds textures and final colors to the fragments. Also called a "fragment shader“.

graphics pipeline 9. Pixel Engines Mathematically combine the final fragment color, its coverage and degree of transparency with the existing data stored at the associated 2D location in the frame buffer to produce the final color for the pixel to be stored at that location.

graphics pipeline 10. Frame Buffer Controller The frame buffer controller interfaces to the physical memory used to hold the actual pixel values displayed on screen. The frame buffer memory is also often used to store graphics commands, textures as well as other attributes associated with each pixel.

Texture vs shader Textures are 2D images Shaders (Known as materials in Maya) determine the way in which light affects it - in other words, it determines the falloff, absorption and reflection of light

Applying Shaders - Lambert Lambert is a flat material type that yields a smooth look without highlights. It calculates without taking into account surface reflectivity, which gives a matte, chalk-like appearance. Lambert material is ideal for surfaces that don't have highlights: pottery, chalk, matte paint, and so forth. By default, any newly created object gets the Lambert shader assigned to it.

Applying Shaders - Blinn The Blinn material type calculates surfaces similarly to Phong, but the shape of the specular highlights in Blinn materials reflects light more accurately. Blinn is good for metallic surfaces with soft highlights, such as brass or aluminium.

Applying Shaders - Phong The Phong material type takes into account the surface curvature, amount of light, and camera angle to get accurate shading and highlights. The algorithm results in tight highlights that are excellent for polished shiny surfaces, such as plastic, porcelain, and glazed ceramic.

Ray Tracing and Radiosity can be combined rendering techniques Ray tracing Provides realistic simulation of lighting over other rendering methods. Effects such as reflections and shadows, which are difficult to simulate using other algorithms, are a natural result of the ray tracing algorithm Models specular(Mirror like) reflection well, but diffuse reflection(reflection of light) is approximated Ray Tracing and Radiosity can be combined

rendering techniques Radiosity Models diffuse reflection(reflection of light) accurately, but specular reflection (Mirror like) is ignored.

Types of reflection Specular reflection (Ray tracing) Specular reflection (Ray tracing) = Mirrored lighting and reflection Diffuse reflection (Radiosity) = But ignores reflection Specular reflection (Ray tracing) Diffuse reflection (Radiosity)

Radiosity & raytracing Traditionally radiosity has been for games while ray tracing has been for still images, film & TV). However that is changing with new more powerful graphics cards. DirectX Raytracing tech demo - accurate real-time reflections. https://youtu.be/81E9yVU-KB8 Reflections Real-Time Ray Tracing Demo. https://youtu.be/J3ue35ago3Y

rendering engines Converting 3D wire frame models into 2D images on a computer. There are many rendering engines that can be added as plug ins to Maya. Including: Mental Ray: Supports and uses Ray Tracing. Used in The Matrix Reloaded & Revolutions amongst others Arnold: Based on Ray Tracing tech, used in a number of films including Elysium, Pacific Rim and Gravity. Others include: V-Ray, Maxwell and Render Man(Created by Pixar)

distributed rendering techniques Distributed rendering is a technique for distributing a single render job within a single frame across many computers in a network. Could also refer to multiple graphics cards or CPU’s built into a single PC.

Lighting Indirect (Global illumination) Indirect light is all the inter-reflected light in a scene. Global illumination is an approximation of real-world indirect light transmission. Examples: A crack at the bottom of a door can cause light to spill into a room. White walls reflect light from the light source to another surface in a room. A body of water can transmit light from its surface to the floor. 

Lighting Local illumination (Light sources) Local illumination is only the light provided directly from a light source (such as a spot light). Light reflected once off a surface towards the eye Examples: A spot light illuminates an actor on stage Sunlight shines directly on sunbathers

Local vs Global illumination Local Illumination Global Illumination Local: Light only reflects off one(Local Object) Global: Reflects off all objects within the scene creating greater realism

shadow mapping