An Algorithm of Eye-Based Ray Tracing on MATLAB

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

13.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 13 An Introduction to Ray Tracing.
1 Graphics CSCI 343, Fall 2013 Lecture 18 Lighting and Shading.
CS 480/680 Computer Graphics Shading 2 Dr. Frederick C Harris, Jr.
Computer graphics & visualization Global Illumination Effects.
Light Issues in Computer Graphics Presented by Saleema Amershi.
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.
Based on slides created by Edward Angel
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
University of New Mexico
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
1 Lecture 9 Lighting Light Sources Reflectance Camera Models.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Basic Ray Tracing CMSC 435/634. Visibility Problem Rendering: converting a model to an image Visibility: deciding which objects (or parts) will appear.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Shading (introduction to rendering). Rendering  We know how to specify the geometry but how is the color calculated.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Project Raytracing. Content Goals Idea of Raytracing Ray Casting – Therory – Practice Raytracing – Theory – Light model – Practice Output images Conclusion.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
CS380: Computer Graphics Distributed Ray Tracing TA Course URL:
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
Written by: Itzik Ben Shabat Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab.
Written by: Itzik Ben Shabat Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Chapter 24: Perception April 20, Introduction Emphasis on vision Feature extraction approach Model-based approach –S stimulus –W world –f,
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
Lighting and Reflection Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Computer Graphics Lecture 30 Mathematics of Lighting and Shading - IV Taqdees A. Siddiqi
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Computer Graphics: Illumination
Compositing and Rendering
Basic Ray Tracing CMSC 435/634.
7. Illumination Phong Illumination Diffuse, Specular and Ambient
Shading To determine the correct shades of color on the surface of graphical objects.
Photorealistic Rendering vs. Interactive 3D Graphics
Rendering Process of producing “realistic” images or pictures
3D Graphics Rendering PPT By Ricardo Veguilla.
Unit-7 Lighting and Shading
RAY TRACING.
Shading II Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico Angel: Interactive Computer.
Real-Time Volume Graphics [06] Local Volume Illumination
Michael Tanaya , Hua ming Chen
(c) 2002 University of Wisconsin
Path Tracing (some material from University of Wisconsin)
Parallel Spectral Renderer
Lighting.
(c) 2002 University of Wisconsin
Fundamentals of Computer Graphics Part 6 Shading
Isaac Gang University of Mary Hardin-Baylor
Image.
CS5500 Computer Graphics May 29, 2006
Illumination and Shading
14th Lecture – Final Lecture
GR2 Advanced Computer Graphics AGR
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
CS 480/680 Computer Graphics Shading.
Introduction to Ray Tracing
CSC418 Computer Graphics Raytracing Shadows Global Illumination.
Shading II Ed Angel Professor Emeritus of Computer Science
Presentation transcript:

An Algorithm of Eye-Based Ray Tracing on MATLAB Instructor: Prof.Emery Group Members: Xingjian Yang Zhengqi Long Haonan Peng

1. Introduction 1. 1 Ray Tracing Ray tracing is a special rendering algorithm in 3D computer graphics.

V.S 1. Introduction 1. 2 Ray Tracing Method Eye-based Ray Tracing Light-based Ray tracing All the light computed is significant for the image plane. Most of the light contribute very less to image plane. Not very good for diffuse light. Very good for diffuse light. Computational efficient. Relatively inefficient. V.S

How do every element in the environment contribute on the image plane? 1. Introduction 1. 3 Basic Idea How do every element in the environment contribute on the image plane?

2. Illumination model 2. 1 Basic models 1. Light source Choose point light as the light source. Point light: light rays shine out in a spherical manner from a center point.(In real world, like a light bulb or a candle flame) 2. RGB color model This model is an additive color model that adds red, green and blue light together to produce other colors. 3. Simple illumination model: Phong model

Ambient light → sampling rays 2. Illumination model 2. 2 Phong model and modifications Ambient light: represents the effect that one object has on another one. Ambient light → sampling rays Effect of ambient light

2. Illumination model 2. 2 Phong model and modifications Resulting set of equations: Diffuse reflection Non-ideal specular reflection Parameters set for each surface: Kdr, Kdg, Kdb, Ks and ns.

2. Illumination model 2. 3 The result of parameter change Change Kd components and we can change the color of a surface:

2. Illumination model 2. 3 The result of parameter change Increase Ks and we can make the surface look more smooth:

2. Illumination model 2. 3 The result of parameter change Increase ns and we can make the surface look more shiny:

3. Rendering 3.1 scene setting & sphere definition

3. Rendering 3.1 scene setting & sphere definition

3. Rendering 3.1 scene setting & sphere definition

3. Rendering 3.2 camera and image plane setting

3. Rendering 3.3 First-order rendering

3. Rendering 3.4 second-order rendering

3. Rendering 3.5 refraction rendering

4. Conlusion and Discussion 4. 1 Conclusion The order 1 algorithm gives basic light response of the image point, works well for rough surface and smooth surface. The order 2 algorithm gives light response for reflection light and diffuse light for non-transparent surface, and refraction light for transparent surface. By combining order 1 and order 2 with proper percent, we can deal with partial smooth partial rough surface, as well as partial transparent surface. The diffuse hemisphere is an efficient way to calculate to estimate the diffuse light effect of the pixel on image plane. This algorithm is suitable for most of environment compared with other current light rendering technology

4. Conlusion and Discussion Need to use matrix calculation to replace for loops. Some parts of the rendering picture need denoising. Can not deal with multiple specular reflection.

Instructor: Prof.Emery Xingjian Yang Zhengqi Long Haonan Peng An Algorithm of Eye-Based Ray Tracing on MATLAB ME 535 Project Thank you ! Instructor: Prof.Emery Group Members: Xingjian Yang Zhengqi Long Haonan Peng