Introduction to 3D Concepts

Similar documents
Draw Guide. Chapter 7 Working with 3D Objects

Rendering Engines - Specific tools may depend on "Rendering Engine"

ECE-161C Cameras. Nuno Vasconcelos ECE Department, UCSD

REU Modeling Course Day 1 pt2 AutoDesk Maya - More Modeling

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

Midterm Exam CS 184: Foundations of Computer Graphics page 1 of 11

Lighting. Figure 10.1

Image-based Lighting

Chapter 6- Lighting and Cameras

CS201 Computer Vision Lect 4 - Image Formation

Consider a partially transparent object that is illuminated with two lights, one visible from each side of the object. Start with a ray from the eye

Chapter 12 Notes: Optics

Lecture 17: Recursive Ray Tracing. Where is the way where light dwelleth? Job 38:19

Creating a Snowman Scene

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Ray Tracing through Viewing Portals

Movie: For The Birds. Announcements. Ray Tracing 1. Programming 2 Recap. Programming 3 Info Test data for part 1 (Lines) is available

Distributed Ray Tracing

Autodesk Fusion 360: Render. Overview

CSE 167: Lecture #8: Lighting. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

A Quick Introduction to POV-Ray

Chapter 5. Projections and Rendering

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Reference Image. Source:

At the interface between two materials, where light can be reflected or refracted. Within a material, where the light can be scattered or absorbed.

Shadows in the graphics pipeline

Ray Optics. Lecture 23. Chapter 34. Physics II. Course website:

Assignment 6: Ray Tracing

4. A bulb has a luminous flux of 2400 lm. What is the luminous intensity of the bulb?

8K Earth, Moon and Mars Shaders Asset V Documentation

Viewing. Part II (The Synthetic Camera) CS123 INTRODUCTION TO COMPUTER GRAPHICS. Andries van Dam 10/10/2017 1/31

Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007

Raycasting. Chapter Raycasting foundations. When you look at an object, like the ball in the picture to the left, what do

Glass Gambit: Chess set and shader presets for DAZ Studio

OpenGl Pipeline. triangles, lines, points, images. Per-vertex ops. Primitive assembly. Texturing. Rasterization. Per-fragment ops.

CS4670: Computer Vision

Scanline Rendering 1 1/42

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Local Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

How to print a Hypercube

Caustics - Mental Ray

Texture Mapping. Michael Kazhdan ( /467) HB Ch. 14.8,14.9 FvDFH Ch. 16.3, , 16.6

Assignment 2 Ray Tracing

Introduction to Computer Vision. Introduction CMPSCI 591A/691A CMPSCI 570/670. Image Formation

34.2: Two Types of Image

Chapter 26 Geometrical Optics

MASY Easy Caustics. A Manual

Topics and things to know about them:

2/26/2016. Chapter 23 Ray Optics. Chapter 23 Preview. Chapter 23 Preview

CS 4204 Computer Graphics

Texture. Texture Mapping. Texture Mapping. CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

Computer graphics Labs: Blender (2/3) LuxRender: Interior Scene Rendering

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Understanding Variability

The Animation Process. Lighting: Illusions of Illumination

Volume Illumination. Visualisation Lecture 11. Taku Komura. Institute for Perception, Action & Behaviour School of Informatics

Topic 9: Lighting & Reflection models 9/10/2016. Spot the differences. Terminology. Two Components of Illumination. Ambient Light Source

I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S

Illumination & Shading: Part 1

11 Rendering. Apply materials

Orthogonal Projection Matrices. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

26 Geometric Optics, Reflection

Topic 9: Lighting & Reflection models. Lighting & reflection The Phong reflection model diffuse component ambient component specular component

L15 POV-Ray - Part 1

Pipeline Operations. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 11

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

Lecture Notes (Reflection & Mirrors)

Homework #2 and #3 Due Friday, October 12 th and Friday, October 19 th

Creating Mercator s Map Projection

Temporal Resolution. Flicker fusion threshold The frequency at which an intermittent light stimulus appears to be completely steady to the observer

normal: a line drawn perpendicular (90 ) from the point of incidence of the reflecting surface

How to achieve this goal? (1) Cameras

Luxo Jr. (Pixar, 1986) Last Time. Real Cameras and Ray Tracing. Standard Rasterization. Lights, Cameras, Surfaces. Now Playing:

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)

Perspective projection. A. Mantegna, Martyrdom of St. Christopher, c. 1450

Single-view 3D Reconstruction

Chapter 32 Light: Reflection and Refraction. Copyright 2009 Pearson Education, Inc.

Pipeline Operations. CS 4620 Lecture 14

Adobe Dimension CC: The Productivity of Design Visualization

PHYSICS. Chapter 34 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT

Lighting & 3D Graphics. Images from 3D Creative Magazine

Introduction to Digital Modelling and Animation in Design week 4 Textures

3ds Max certification prep

Computer Graphics. Si Lu. Fall uter_graphics.htm 11/22/2017

Unbelievable Visualization Techniques: Letting Your Imagination Soar!

Ray Tracing. CS334 Fall Daniel G. Aliaga Department of Computer Science Purdue University

Pipeline Operations. CS 4620 Lecture 10

x ~ Hemispheric Lighting

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading

COMP environment mapping Mar. 12, r = 2n(n v) v

DH2323 DGI13. Lab 2 Raytracing

Specular reflection. Lighting II. Snell s Law. Refraction at boundary of media

Ray tracing. Methods of Programming DV2. Introduction to ray tracing and XML. Forward ray tracing. The image plane. Backward ray tracing

CS6670: Computer Vision

Image Based Lighting with Near Light Sources

Image Based Lighting with Near Light Sources

Here I ll present a brief summary of the important aspects and then dive into improvements we made on Black Ops II.

Houdini Light, Shade, Render

COMP30019 Graphics and Interaction Perspective & Polygonal Geometry

Transcription:

PART I Introduction to 3D Concepts Chapter 1 Scene... 3 Chapter 2 Rendering: OpenGL (OGL) and Adobe Ray Tracer (ART)...19 1

CHAPTER 1 Scene s0010 1.1. The 3D Scene p0010 A typical 3D scene has several elements which, when combined, generate a picture. You can think of setting up a 3D scene in the same way you would set up a photography studio. You will need something to take a picture of (your meshes). These meshes will have materials on them such as wood, cotton, or metal. You need to provide lighting to the scene with one or more lights. Finally, you need a camera to take the picture with. The term rendering is the act of taking a picture of your scene through your virtual camera using the lighting, material and meshes you have set up. s0015 1.2. Meshes and Vertices s0020 1.2.1. 3D vs 2D p0015 So, what exactly is 3D? You may recall from high school doing graphing in algebra. You would have two values (x and y) and then find their position on a graph along the x and y axis and use these positions to plot a point. If you made three of these points and connected them, you would have 3D in Photoshop. DOI: 10.1016/B978-0-240-81377-6.10001-8 Copyright Ó 2010 Elsevier Inc. All rights of reproduction, in any form reserved. 3

3D in Photoshop FIG 1.1 AQ7 FIG 1.2 A triangle consists of three points on two dimensions (x and y). Extending this to a third axis (z axis) results in a triangle in 3D. a triangle. If you extend this by adding a third axis (z), you can plot points anywhere in three-dimensional space to create 3D shapes (Figure 1.2). p0020 Objects in a 3D scene are described as collections of 3D points, which are called vertices. These vertices are collected into groups of three, which form triangles. These triangles are contained in groups called meshes. Prior to the time that these triangles are actually drawn, meshes can be described in many different ways. For example, the equation for a sphere represents a 3D object. However, if it is to be drawn, it must first be broken down into an approximation of this shape using triangles (Figure 1.3). 4

Scene FIG 1.3 A sphere represented by triangles, used to define meshes. s0025 1.3. Cameras p0025 There are two types of camera supported by Photoshop e orthographic and perspective. Both kinds of cameras have a location (where is the camera in 3D coordinates) and a direction that it is pointed. s0030 1.3.1. Perspective Camera p0030 A perspective camera behaves like a real world camera. Perspective cameras also have a lens, which has a zoom that can be represented as a field of view in degrees or a focal length in mm. This kind of lens will have perspective distortions as you increase or decrease the field of view. s0035 1.3.2. Orthographic Camera p0035 An orthographic camera is mostly used in engineering and architecture e as well as in the 3D modeling process. It has no perspective distortion, which can be very useful when you are trying to align things in 3D space. Orthographic cameras have a scale, which represents the size of the slice it cuts through the 3D space. One thing of note here is that with an orthographic camera, moving an object further from or closer to the camera (or moving the camera) results in no change to the rendering whereas with a perspective camera, this will change the way things look dramatically (Figure 1.4). 5

3D in Photoshop FIG 1.4 The top row shows a perspective camera where objects further away from the camera will appear to be smaller. The bottom row shows an orthographic camera where objects appear to be the same size regardless of the distance from the camera. s0040 p0040 1.3.3. Depth of Field In addition to the position and direction of the camera, Photoshop CS5 can also simulate the aperture of the camera. This is done using the depth of field settings. With these, you specify the part of your scene that is in focus and that which is not e in much the same way you focus a lens on a subject in a photograph (Figure 1.5a). FIG 1.5a Depth of Field set so that the center sphere is in focus (the plane of focus) and everything else in front or behind this plane is out of focus. 6

Scene FIG 1.5b With the Camera Zoom Tool selected, you can set the distance of the focal plane and the amount of blur. p0045 In Photoshop CS5, cameras have a pair of new parameters that allow an artist to control depth of field. The Distance control determines the plane in the scene where everything is in focus and the Blur control determines how out of focus the areas behind and in front of the focus plane are (Figure 1.5b). s0045 1.4. Lights p0050 Visual perception is our perception of how light interacts with matter. Therefore lighting is a key component of a 3D scene, similar to the importance of lighting in photography. Generally, light interaction with an object is a very complicated process. Though the primary intent for 3D rendering is to reproduce the light interaction with materials, steps are taken to simplify and approximate these calculations. One such step is to limit the supported types of light sources. p0055 In Photoshop CS5, four types of light sources are supported. The first three are standard lights that can be found, in one form or another, within any 3D rendering package (point, infinite and spot lights). s0050 1.4.1. Point Light p0060 In some applications, this also may be known as an omni light. A point light is a light source emitting light equally in all directions. You can think of this like a candle or a light bulb. These types of lights have position, but do not have a direction (Figure 1.6). s0055 1.4.2. Infinite Light p0065 In some applications, this also may be known as a directional light. An infinite light is a light source emitting light parallel to a certain direction. This is useful for simulating light sources that are very far away (e.g., sunlight). These types of lights have direction, but do not have a defined position (Figure 1.7). s0060 1.4.3. Spot Light p0070 Spot lights are similar to photographic spotlights or automobile headlights. These lights have defined positions, direction, and a hotspot angle (Figure 1.8). 7

3D in Photoshop FIG 1.6 A point of light depicted by a spherical widget. FIG 1.7 An infinite light source depicted by the yellow widget with an arrow pointing in the direction of the light source. 8

Scene FIG 1.8 A spot light depicted by the widget pointing in the direction of the light. s0065 1.4.4. Image-Based Light p0075 An image-based light in Photoshop CS5 provides an environment light source, where the light source is not a point or a beam, but a texture map, spherically wrapped around your scene (spherical panorama). One way to imagine such a light is to think of it as a set of tiny point lights mounted on the spherical cage all around your scene where every point light corresponds to a single pixel in your texture map. In natural scenes, objects are rarely illuminated by simple light sources only. For example, if we consider an object within an empty room with a single lamp on the ceiling, while the lamp provides most of the lighting (called direct lighting), some of the light AQ1 from the lamp gets scattered by the walls back at object (called indirect lighting). Similarly, an object in an outside scene is illuminated not only by the sun, but also by the sky and the ground. Thus, an image-based light greatly facilitates modeling of real-world lighting environments. Instead of AQ2 approximating every light of your scene with a basic light source, you can now just use an image-based light textured with a spherical panorama, which is usually much easier to create (Figure 1.9). s0070 1.5. Materials p0080 Materials define the appearance of the object. These parameters include diffuse (main color), specularity (highlights), transparency, reflectivity and more. This derives from the notion that by setting all the properties in a given way, one can create the impression that the rendered object is made of some 9

3D in Photoshop FIG 1.9 Image-based light used to light this sphere. This light source is depicted by the spherical widget with the image wrapped around it and handles that allow you to rotate the map and reposition the lighting. FIG 1.10 Sample materials found in Photoshop CS5 Materials Library presets. 10