Transformations in Ray Tracing MIT EECS 6.837, Durand and Cutler.

Slides:



Advertisements
Similar presentations
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Advertisements

Transformations.
Final Presentation Extension to GPU based path tracer By- Gundeep Singh.
3D Graphics Rendering and Terrain Modeling
MIT EECS 6.837, Durand and Cutler Transformations.
Informationsteknologi Wednesday, November 7, 2007Computer Graphics - Class 51 Today’s class Geometric objects and transformations.
MIT EECS 6.837, Durand and Cutler Curves & Surfaces.
MIT EECS 6.837, Durand and Cutler Curves & Surfaces.
1 of 25 Assignment Orthographic Wireframe Elevation Orthographic Wireframe Plan Orthographic Wireframe End-Elevation Perspective View.
Computer Graphics - Class 10
Ray Tracing Tutorial. Ray Casting One type of visibility algorithm.
Part I: Basics of Computer Graphics Viewing Transformation and Coordinate Systems Chapter
Chapter 4 Digital Multimedia, 2nd edition Vector Graphics.
MSU CSE 803 Stockman Perspective algebra: quick- and-dirty first look Geometry of similar triangles yields algebra for computing world-image transformation.
Ray Tracing Outline For each pixel { Shoot ray r from eye to center of pixel with trace( r ) } function trace( r ) For each object { Find object with closest.
CIS 310: Visual Programming, Spring 2006 Western State College 310: Visual Programming Ray Tracing.
Modeling and representation 1 – comparative review and polygon mesh models 2.1 Introduction 2.2 Polygonal representation of three-dimensional objects 2.3.
COMP 175: Computer Graphics March 24, 2015
Virtual reality. Tasks 3D digital model from planes 3D digital model of existing objects Office work Field observations Solid modeling Photogrammetry.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
1. 2 Plan Introduction Overview of the semester Administrivia Iterated Function Systems (fractals)
Computer Graphics. Requirements Prerequisites Prerequisites CS 255 : Data Structures CS 255 : Data Structures Math 253 Math 253 Experience with C Programming.
1 Ray Casting. CLASS 1 Ray Casting 2 3 Overview of Today Ray Casting Basics Camera and Ray Generation Ray-Plane Intersection.
MIT EECS 6.837, Durand and Cutler Graphics Pipeline: Projective Transformations.
MIT EECS 6.837, Durand and Cutler Real-Time Shadows.
MIT EECS 6.837, Durand and Teller 1 The Rendering Pipeline Local Illumination Models MIT EECS Lecture 4, September 17 th 2002.
MIT EECS 6.837, Durand and Cutler Acceleration Data Structures for Ray Tracing.
Geometric Modeling. Volumetric o Collection device obtains regular grid of measurement values Examples: CT, MRI, PET, Ultrasound o Values are interpreted/visualized.
COMPUTER GRAPHICS CSCI 375. What do I need to know?  Familiarity with  Trigonometry  Analytic geometry  Linear algebra  Data structures  OOP.
MIT EECS 6.837, Durand and Cutler Transformations.
Geometric Objects and Transformation
Copyright © Curt Hill Visualization of 3D Worlds How are these images described?
Ray Tracer Winter 2014 Help Session Due: Tuesday, Feb 25 th, 11:59pm TA: Will Gannon.
Ray Tracer Spring 2008 Help Session. Outline Project Web Resources What do you have to do for this project? Ray Class Isect Class Requirements Tricks.
Geometric Modeling How to design a graphical model? How to create a digital description of a real-world object? Design Digitize.
Course Introduction to virtual engineering Óbuda University John von Neumann Faculty of Informatics Institute of Applied Mathematics Lecture and laboratory.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 4 Lecture 4 - Vector Graphics.
Subject Name: Computer Graphics Subject Code: Textbook: “Computer Graphics”, C Version By Hearn and Baker Credits: 6 1.
MIT EECS 6.837, Durand and Cutler Texture Mapping & Other Fun Stuff.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
MIT EECS 6.837, Durand and Cutler The Graphics Pipeline: Projective Transformations.
MIT EECS 6.837, Cutler and Durand 1 Ray Casting II.
Constructive Solid Geometry Ray Tracing CSG Models
MIT EECS 6.837, Durand and Cutler Texture Mapping & Other Fun Stuff.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
MIT EECS 6.837, Durand and Cutler Acceleration Data Structures for Ray Tracing.
Computing & Information Sciences Kansas State University Lecture 30 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 30 of 42 Wednesday, 09.
More on Ray Tracing Glenn G. Chappell U. of Alaska Fairbanks CS 481/681 Lecture Notes Wednesday, April 14, 2004.
OpenGL and You I Cast, Therefore I Am. Ray Casting Idea is simple, implementation takes some work –Cast rays as if you were the camera –Determine intersection.
Ray Tracing I. Reading Hill, Chapter 14, Sections 14.1 to 14.5 Hill, Chapter 14, Sections and
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
Review Ray Tracing III Review. Pseudo codes RayCast-1  Plain ray caster (direct illumination) RayCast-2  RayCast-1 + shadow rays RayTrace-1  Recursive.
Ray Tracer Help Session. Outline Introduction ray vec.h and mat.h isect Requirements Tips and Tricks Memory Leaks Artifact Requirement Ray Tracing Surface.
MIT EECS 6.837, Durand and Cutler Transformations & Local Illumination.
3D Rendering 2016, Fall.
Photorealistic Rendering vs. Interactive 3D Graphics
Ray Tracer Spring 2007 Help Session.
MIT EECS 6.837, Cutler and Durand
3D Graphics Rendering PPT By Ricardo Veguilla.
Transformations.
Ray Tracer Project CSE 557.
Ray Tracer Spring 2004 Help Session.
Ray Tracer Project CSE 557.
Ray Tracer Spring 2008 Help Session.
Ray Tracer Autumn 2005 Help Session.
Ray Tracer Spring 2006 Help Session.
Presentation transcript:

Transformations in Ray Tracing MIT EECS 6.837, Durand and Cutler

Linear Algebra Review Session Tonight! 7:30 –9 PM MIT EECS 6.837, Durand and Cutler

Last Time:

Today Motivations Transformations in Modeling Adding Transformations to our Ray Tracer Constructive Solid Geometry (CSG) Assignment 2 MIT EECS 6.837, Durand and Cutler

Modeling Create / acquire objects Placing objects Placing lights Describe materials Choose camera position and camera parameters Specify animation.... MIT EECS 6.837, Durand and Cutler

Transformations in Modeling

Today Motivations Transformations in Modeling –Scene description –Class Hierarchy –Transformations in the Hierarchy Adding Transformations to our Ray Tracer Constructive Solid Geometry (CSG) Assignment 2 MIT EECS 6.837, Durand and Cutler

Scene Description

Simple Scene Description File

Class Hierarchy

Why is a Group an Object3D?

Simple Example with Groups

Adding Materials

Adding Transformations

Class Hierarchy with Transformations

Why is a Transform an Object3D?

Simple Example with Transforms

Nested Transforms

Questions? MIT EECS 6.837, Durand and Cutler

Today Motivations Transformations in Modeling Adding Transformations to our Ray Tracer – Transforming the Ray –Handling the depth, t –Transforming the Normal Constructive Solid Geometry (CSG) Assignment 2 MIT EECS 6.837, Durand and Cutler

Incorporating Transforms 1.Make each primitive handle any applied transformations Sphere { center radius 2 } 2.Transform the Rays Transform { Translate { } Scale { } Sphere { center radius 1 } }

Primitives handle Transforms

Transform the Ray

Transform Ray

Transforming Points & Directions

What to do aboutthe depth, t If Mincludes scaling, direction OS will NOT be normalized 1.Normalize the direction 2.Don't normalize the direction MIT EECS 6.837, Durand and Cutler

1. Normalize direction

2. Don't normalize direction

Questions? MIT EECS 6.837, Durand and Cutler

New component of the Hit class

Why is the Normal important?

Visualization of Surface Normal

How do we transform normals?

Transform the Normal like the Ray?

What class of transforms?

Transformation for shear and scale

More Normal Visualizations

So how do we do it right?

Transform tangent vector v

Comment

Questions? MIT EECS 6.837, Durand and Cutler

Today Motivations Transformations in Modeling Adding Transformations to our Ray Tracer Constructive Solid Geometry (CSG) Assignment 2 MIT EECS 6.837, Durand and Cutler

Constructive Solid Geometry (CSG)

How can we implement CSG?

Collect all the intersections

Implementing CSG

"Fredo'sFirst CSG RaytracedImage"

Questions? MIT EECS 6.837, Durand and Cutler

Today Motivations Transformations in Modeling Adding Transformations to our Ray Tracer Constructive Solid Geometry (CSG) Assignment 2 –Due Wednesday Sept 24th, 11:59pm MIT EECS 6.837, Durand and Cutler

Adding Perspective Camera

Triangle Meshes (.obj)

Acquiring Geometry 3D Scanning (Images removed due to copyright considerations.) MIT EECS 6.837, Durand and Cutler

Next Week: Ray Tracing Surface reflectance MIT EECS 6.837, Durand and Cutler