Lezione 4: Grafica 3D*(II)

Similar documents
A Short Introduction to Computer Graphics

Image Processing and Computer Graphics. Rendering Pipeline. Matthias Teschner. Computer Science Department University of Freiburg

So, you want to make a photo-realistic rendering of the Earth from orbit, eh? And you want it to look just like what astronauts see from the shuttle

Computer Graphics Global Illumination (2): Monte-Carlo Ray Tracing and Photon Mapping. Lecture 15 Taku Komura

Monash University Clayton s School of Information Technology CSE3313 Computer Graphics Sample Exam Questions 2007

SkillsUSA 2014 Contest Projects 3-D Visualization and Animation

Computer Animation: Art, Science and Criticism

Introduction to Computer Graphics

Adding Animation With Cinema 4D XL

Lighting & Rendering in Maya: Lights and Shadows

Image Synthesis. Transparency. computer graphics & visualization

INTRODUCTION TO RENDERING TECHNIQUES

Scan-Line Fill. Scan-Line Algorithm. Sort by scan line Fill each span vertex order generated by vertex list

Maya 2014 Still Life Part 1 Texturing & Lighting

Rendering Area Sources D.A. Forsyth

GUI GRAPHICS AND USER INTERFACES. Welcome to GUI! Mechanics. Mihail Gaianu 26/02/2014 1

Computer Applications in Textile Engineering. Computer Applications in Textile Engineering

CUBE-MAP DATA STRUCTURE FOR INTERACTIVE GLOBAL ILLUMINATION COMPUTATION IN DYNAMIC DIFFUSE ENVIRONMENTS

Dhiren Bhatia Carnegie Mellon University

Using Photorealistic RenderMan for High-Quality Direct Volume Rendering

Introduction Week 1, Lecture 1

COMP175: Computer Graphics. Lecture 1 Introduction and Display Technologies

Making natural looking Volumetric Clouds In Blender 2.48a

Direct Volume Rendering Elvins

Graphic Design. Background: The part of an artwork that appears to be farthest from the viewer, or in the distance of the scene.

Shader Model 3.0. Ashu Rege. NVIDIA Developer Technology Group

Lecture Notes, CEng 477

Computer Graphics Hardware An Overview

ADVANCED THEORIES FOR CG LIGHTING

SHOW MORE SELL MORE. Top tips for taking great photos

Scanners and How to Use Them

Computer Graphics. Introduction. Computer graphics. What is computer graphics? Yung-Yu Chuang

Amazing renderings of 3D data... in minutes.

Teaching Introductory Computer Graphics Via Ray Tracing

Course Overview. CSCI 480 Computer Graphics Lecture 1. Administrative Issues Modeling Animation Rendering OpenGL Programming [Angel Ch.

Specular reflection. Dielectrics and Distribution in Ray Tracing. Snell s Law. Ray tracing dielectrics

Materials in NX Render

REAL-TIME IMAGE BASED LIGHTING FOR OUTDOOR AUGMENTED REALITY UNDER DYNAMICALLY CHANGING ILLUMINATION CONDITIONS

Step 2: Paint Your Model

Recent Advances and Future Trends in Graphics Hardware. Michael Doggett Architect November 23, 2005

What is a DSLR and what is a compact camera? And newer versions of DSLR are now mirrorless

My Materials. In this tutorial, we ll examine the material settings for some simple common materials used in modeling.

Advanced Rendering for Engineering & Styling

3D Math Overview and 3D Graphics Foundations

Touchstone -A Fresh Approach to Multimedia for the PC

Image Synthesis. Fur Rendering. computer graphics & visualization

GRAFICA - A COMPUTER GRAPHICS TEACHING ASSISTANT. Andreas Savva, George Ioannou, Vasso Stylianou, and George Portides, University of Nicosia Cyprus

Thea Omni Light. Thea Spot Light. Light setup & Optimization

CIS 536/636 Introduction to Computer Graphics. Kansas State University. CIS 536/636 Introduction to Computer Graphics

mental ray Production Shader Library

An introduction to Global Illumination. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology

Capture high-resolution pictures. Fill the frame with the item. Show the scale. Keep your photos from tinting. Capture detailed close-up shots.

PATH TRACING: A NON-BIASED SOLUTION TO THE RENDERING EQUATION

Optimizing AAA Games for Mobile Platforms

Computer Graphics. Anders Hast

Outline. srgb DX9, DX10, XBox 360. Tone Mapping. Motion Blur

Computer Graphics and Image Processing Introduction

Volume visualization I Elvins

Fundamentals of Computer Graphics

Deferred Shading & Screen Space Effects

Monte Carlo Path Tracing

Advanced Visual Effects with Direct3D

Photon Mapping Made Easy

Instructor. Goals. Image Synthesis Examples. Applications. Computer Graphics. Why Study 3D Computer Graphics?

Geant4 Visualization. Andrea Dotti April 19th, 2015 Geant4 M&C+SNA+MC 2015

3D Drawing. Single Point Perspective with Diminishing Spaces

Blender 3D: Noob to Pro/Die Another Way

How To Make A Texture Map Work Better On A Computer Graphics Card (Or Mac)

3D Analysis and Surface Modeling

CS130 - Intro to computer graphics. Dr. Victor B. Zordan vbz@cs.ucr.edu Objectives

ABS 731 Lighting Design & Technology. Spring 2006

Path Tracing. Michael Doggett Department of Computer Science Lund university Michael Doggett

Introduction to Computer Graphics. Reading: Angel ch.1 or Hill Ch1.

CSE168 Computer Graphics II, Rendering. Spring 2006 Matthias Zwicker

Renderman on Film Combining CG & Live Action using Renderman with examples from Stuart Little 2

Introduction to. With Slides from Dongho Kim and Karen Liu. School of Computer Soongsil University Animation. Computer Animation

Volume Rendering on Mobile Devices. Mika Pesonen

Photo Studio. Site Map Preface What`s New? Getting Started Basic Tasks Advanced Tasks Workbench Description Customizing Glossary Index

Optical Design Tools for Backlight Displays

Introduction to GPGPU. Tiziano Diamanti

BCC Multi Stripe Wipe

Learning about light and optics in on-line general education classes using at-home experimentation.

Data Visualization Study at Earth Simulator Center

How To Draw In Autocad

Workstation Applications for Windows. NVIDIA MAXtreme User s Guide

1. INTRODUCTION Graphics 2

Digital Photography Composition. Kent Messamore 9/8/2013

Basic controls of Rhinoceros 3D software

MODELING AND ANIMATION

The Lighting Effects Filter

ACE: After Effects CS6

Hi everyone, my name is Michał Iwanicki. I m an engine programmer at Naughty Dog and this talk is entitled: Lighting technology of The Last of Us,

MicroStation V8i Training Manual 3D Level 3

2: Introducing image synthesis. Some orientation how did we get here? Graphics system architecture Overview of OpenGL / GLU / GLUT

How to rotoscope in Adobe After Effects

Get started. Hang a green screen. Set up your lighting

CAUSTICS are complex patterns of shimmering

3D Drawing. Single Point Perspective with Diminishing Spaces

Introduction to Computer Graphics. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

Transcription:

Lezione 4: Grafica 3D*(II) Informatica Multimediale Docente: Umberto Castellani *I lucidi sono tratti da una lezione di Maura Melotti (m.melotti@cineca.it)

RENDERING

Rendering What is rendering? Rendering methods. What color is the object at that pixel? Alpha Buffering Texture mapping.

Cos è il rendering Il rendering è il processo di conversione degli elementi descrittivi della scena in una immagine 2D Objects Camera Light Sources Scene description Final image

Metodi di rendering Wire-frame Painter s algorithm Z-Buffer Ray Tracing Radiosity

Wire frame Only the edges of objects are drawn. Faster and useful for quick previews. Some mechanical drawings are clearer when only the edges of objects are drawn.

Algoritmo del pittore Problem: how to form an image from a scene such that object mask one other correctly?

Algoritmo del pittore This technique is similar to the way a painter creates a painting: start painting the most distant elements, such as the sky, and over-paint these with objects that are closer. 1. sort objects by distance from eye 2. render objects farthest from the eye first 3. continue rendering all objects from back to front

Algoritmo del pittore Painter s algorithm fails if object intersect! An object that intersects the grid looks like this: But it should look like this! Solution: Z-Buffer alghoritm

Z-Buffer At each pixel is associated a Z-value that is the distance from the eye to the point on the object represented by the pixel. A Z-buffer is used to record the Z-value of pixels. Before any polygons are drawn all the Z-value in the Z-Buffer are set to indicate the farthest distance from the eyes. Before a new value is written in the Z buffer the pixel s Z-value, stored in the Z-buffer, is compared to the new Z-value. If the new Z-value represents a closer distance to the eyes the new value is written in the Z Buffer.

Z-Buffer Important properties: Z-buffer is order indipendent. Z-buffer rendering can be done incrementally. Fig.l Fig.2

Z-buffer Z-values are usually stored in l6 bits, which results in more than 65000 different depth values. It is the most common solid surface rendering technique today. It is simple enough to be implemented directly in inexpensive hardware. But. it doesn t address how light really interacts between object (shadows, refraction,.).

Ray-tracing Forward Propagation: A ray of light is thrown from each light sources. If the ray hits an object, refraction and reflection effects must be calculated. This can happen many times, depending on the number of objects in the scene. Rays that reach the camera (the eye point) are few in comparison with the total rays calculated (too much computational cost!!!). Back Propagation

Ray-tracing Back Propagation: A ray is shot from the eye point in the view direction in order to calculate the color of a pixel. This process doesn t stop when the first object is encountered. Unless the object is a light source more rays are shot in each direction where light might be come from.

Ray-tracing Fig.l: Z-Buffer rendering Fig.2: Ray Tracing rendering

Ray-tracing Fig.l: Z-Buffer rendering Fig.2: Ray Tracing rendering

Ray-tracing vs. Z-buffer Ray tracing is slow, no real-time: the algorithm is very complex, generally computed at software level it works per pixel insted of per object. Z-Buffer algorithm is faster, real-time: visit each polygon once, generally the hardware does the per pixel operations for most of today s scenes, pixel greatly outnumber objects.

Ray-tracing

Radiosity With ray tracing shadows have sharp edges because the test ray to the light source either gets there or it doesn t. In real life we can see lots of soft shadows because ligth is reflected by many objects (secondary light). Radiosity can model the diffuse reflection (secondary scatter).

Radiosity The radiosity algorithm computes what portion of the light from each polygon reaches each of the others. The light from the bright polygons causes other polygons to be lit. These polygons, in turn, shine on other polygons, which then shine on more polygons This process of lighting up polygons continues until things are settle down.

Radiosity

Radiosity

Esempi di rendering Ray tracing

Esempi di rendering Ray tracing + ombre sfumate

Esempi di rendering + caustiche

Esempi di rendering + global illumination

What color is the object at that pixel? The process of eventually coming up with pixel color values is called shading. Flat Shading Linear (Gourand) Shading

What color is the object at that pixel? Flat Shading The color values from the polygon vertices are averaged, and all the polygon s pixels are set to this fixed (flat) color value. Each pixel is exactly the same color throughout the polygon.

What color is the object at that pixel? Linear (Gourand) Shading The color values from the polygon vertices are linear interpolated, and the rate of change of the color value is held constant for all the polygon s pixels.

Alpha Buffering In alpha buffering an alpha value is kept per pixel (in addition to color value rgb and Z-value ). - The alpha value (transparency value) is an opacity fraction that indicates how opaque (or transparent) the pixel is. - The alpha value is commonly stored in 8 bits: 0 means fully transparent, 255 means fully opaque.

Alpha Buffering

Alpha Buffering + =

Texture Mapping The process of mapping (wrap) an image over an object. + =

Texture Mapping During the modeling step the user defines texture coordinates across the object. The texture coordinate are interpoleted across each polygon instead of the final color values.

Texture Mapping Texture mapping adds significant visual detail to the image without the need for modeling more complex geometry.

Rendering review 3D scene description Image Texture Mapping Antialiasing Shading: figuring out pixel color