MR Shaders Dielectric Materials Rendering Glass and Simple Caustics

Size: px
Start display at page:

Download "MR Shaders Dielectric Materials Rendering Glass and Simple Caustics"

Transcription

1 Dielectric Material This shader is a physically based material shader that can be used to simulate dielectric media such as glass, water, and other liquids. The shader uses Fresnel's formulas for dielectric interfaces. This means that most light is transmitted through the surface for perpendicular incident directions while most light is reflected by the surface for grazing incident angles, simulating the behavior of real dielectric materials. The shader also uses Beer's law for absorption of light that passes through a medium. This means that the light is subject to an exponential falloff as it is transmitted between two surfaces with dielectric material. One of the most asked questions I get, aside from skin, is how I render glass and liquids without a lot of work. Often rendering glass and liquids will elicit headaches for the artist, have no fear, take two Excedrin s, and call on Mental Ray. With MR s dielectric materials we have the ability to acquire sharp looking glass with little work. There is however a couple of problems that could stump the artist during its use resulting in bad render errors. Hopefully, this info sheet will shed some light onto the myth that is Dielectric and get you rendering glass and liquids in no time. First, let s get some of the basic stuff out of the way for those whom have never worked with mental ray shader s and their integration into the Maya workflow. There are numerous ways to attach MR shaders within Maya so let s keep it simple. The best way to build a custom shader network for mental ray is to start off with a standard Maya shader like a Blinn, or a Lambert in Hypershade. Bring Blinn to the workspace and then display the input and output connections, as shown in figure 1. figure 1 Mental Ray shaders will always attach to the shading figure 2 group of a particular shader like our Blinn. Bringing up the attribute editor for the blinn1sg and then dropping down the MR tab displays all the connections for Mental Ray shaders, there are allot, but most often you will only use a couple and they are pretty self explanatory figure 2. Like any other attribute in Maya clicking the little checker icon will bring up the create render node window figure 3 for mental ray shaders. figure 3 Any questions you may have regarding this list seek the Maya help docs. On the left hand side of the window under the heading Rendering and Render Setup there is a little section titled Mental Ray Reference figure 4. Be warned that allot of the reference material is coding examples and more, shall we say, not so friendly techy jargon. Nonetheless, it can be beneficial as I will demonstrate later. Alright, with that little bit of the way that s build our glass shader. figure 4

2 Starting with a fresh Maya scene build a simple cup out of Nurbs, or Polys, like the one I am using shown in figure 5. Here I have a simple revolved cup made with nurbs and one spotlight shinning onto the surface. One thing to note is I have kept the nurbs patches for the outside, interior, and lip of the cup separate. Its best practice if you model your glass in this fashion and you ll soon see why. A render of this scene is demonstrated in figure 6. figure 5 figure 6 Next, open the Hypershade and create a Blinn shader, rename it to glass and bring up the attribute editor. Change the following to the settings displayed in figure 7. Highlighted elements are the ones I changed. figure 7 Once you have adjusted your settings attach the shader to the glass element, or nurbs patches. Now, open up the Render Settings and change Render Using to Mental Ray and then set quality to production. Fire off a test render and you will see something like figure 8. figure 8 Not too bad, a glass most people are happy with. Put a little reflection on it, some fake fresnel and it may suffice. Ah, but we can make it better!!

3 Alright time for MR to work its magic. Bring up the Hypergraph and open the attribute editor for the glass shader. Click the icon Go to Output Connection. The tab should switch to blinnsg1. Under the mental ray tab -> custom shaders locate and click the checkered box next to Material Shader and then select Dielectric Material figure 9. Your attribute editor will change to the settings for the newly attached material figure 10. figure 9 Leave everything default except Ior which is our refraction index for the medium, in this case glass, which for all intents and purposes is Additionally set phong coef to something like 200. Close this window and fire off a render. You may get something like figure 11. If you did and are now confused, fantastic, just like everyone else who attempts a glass shader. If your render came out like nice glass, will that s awesome too, however you should still read what follows because one day you will encounter this problem its guaranteed. figure 10 This is a common rendering error when working with this particular material so let us find out why by opening the Maya help docs and looking up dielectric material. The description, presented below, sheds some light on the inner working of the dielectric material and provides the fix. Two achieve physically correct simulations it is important to use the correct surface interfaces. When modeling a glass of cognac three different interfaces are required: glass-air, glass-cognac, and cognac-air. The dielectric material uses the normals of the surface to distinguish the media on either side of the interface. For a dielectric-air interface the normals point into the air. For a dielectric-dielectric interface the normal point into a dielectric material which is "outside". To use the dielectric material the model normals must be oriented correctly unless the ignore_normals parameter is set to true. This shader cannot be used as a shadow shader. figure 11

4 Essentially this is a modeling problem concerning the direction of our surface normals. When a ray is sent out from the camera it hits the first wall of our glass and the shader basically goes Okay I have a ray hitting, because my normal points out to air I am entering a new dielectric material, lets start the calculation as the ray pass through the material it encounters the inner wall and says Alright I have just passed through one wall now the inner wall surface normal points toward the outer wall which tells me im entering another, new, dielectric material, guess I need to bend the light again. Resulting in no refraction and just reflection. Figure 12. How it should read is Alright I have just passed through one wall now the inner wall surface normal is pointing opposite the outer wall so I must be completely through the medium and I am now exiting back into air. Figure 13. Glass Profile Camera Ray Ray Hit Point (In and Out) Air Air or Liquid Ray bends through medium (Refraction) Surface Normal Air Air or Liquid figure 12 figure 13 Figure 12 is what we have happening within our render. Figure 13 is what we want happening. This is an easy fix and the reason why I keep the nurbs patches separate. For me I just select the inner wall and reverse the surface direction Edit Nurbs-> Reverse Surface Direction. If you modeled your glass differently display your normals to find out their direction. Select your object or patch of concern Nurbs Normal Display : Display -> Nurbs Componets -> Normals (Shaded Mode) Polygons: Display -> Custom Polygon Display (click little box and located and check Normals) Set your inner wall normals facing in, towards each other, and your outer wall normals facing out as seen in Figure 14. Agian to reverse normals on Nurbs Edit Nurbs-> Reverse Surface Direction. On Polygons Edit Polygons -> Normals -> Reverse. After we have our normals oriented correctly fire off a render and now we have something figure 15!. That s looking more like glass, but we need some shadows. Bring up the light and turn on ray traced shadows. Fire off another render (figure 16). Looking good, but there is a problem with the shadow. We can t see half of it! In order to correct this we have to use a MR Light Shader. figure 14 figure 15

5 In order to correct this we have to use a MR Light Shader. Again bring up the attribute editor for the spotlight, scroll down to the mental ray tab, open it up and find Custom Shaders, then light shader. Click the checkered box next to Light Shader and then select Physical Light (figure 17). You could use spotlight but I like this light shader the best. This shader is controlled by the colors value. Double click the color swatch and set the value appropriate to your scene. After a couple of test renders you ll get it. I left it at the default, you may need to adjust. Here is the render (figure 18). figure 17 figure 18 Turing on caustics is a simple process. The only bad thing is intensity, exponent, and amount is going to depend on the scene you are using. Therefore, play with the settings until it looks good. To start open up Render Settings and turn on caustics leaving everything default (Mental Ray Tab -> Caustics and Global Illumination). Now open up the attribute editor on the light and under Mental Ray, turn on emit photons. These are the settings I m using during a close to final render. Looking really good, but it still has problems with the shadow. The shadow is not rendering light passing through the glass, its just solid and thus incorrect. So what s the fix? Well, it isn t much of one. I still have yet to locate a way in which to render out shadows that reflect the transparency of an object. Honestly don t think there is a simple way in MR. The only way to convey light passing through the glass is to turn on caustics, can you say render times! Oh well, least it s going to be a correct simulation of light through a dielectric material. For the Light : Render Settings: After a long wait, nada (figure 19) No good. One more step. In order to get correct caustic simulations from the dielectric material you have to attach one more MR shader, a photon shader to your glass. I mean MR has to know how to calculate photons hitting a medium like glass right? Anyway ways bring up the Attribute Editor for the glass shader group. Hypergraph->double click glass-> show output connections Locate photon shader, click the checker box, then attach the Dielectric Photon Material. Set the Ior to what you set before Same process as attaching the original Dielectric material to the blinn s shading group, just a different location and shader type. Fire off another render and wow, look how pretty.

6 That s about all there is to making glass in MR; pretty simple stuff and a good way to introduce working with MR Shaders and how they interface within Maya. You can use a duplicate of the glass material, same process, to render the liquid in the glass. The primary difference would be, of course, the color and transparency. In addition make sure to specify the in the Dielectric Material and in the Dielectric Photon Material the Color In and the Color Out. Ray coming in hits the glass that s the color in. Ray exits the liquid so that would dictate the color out. Here is a render with everything the same expect for the items I mentioned prior. Remember glass is very dependent on the scene. Since there is no environment in my simple scene the glass looks a little flat and plastic like. But I tell you true, once you set this up in an environment with stuff and colors to reflect and refract it really pops and sells. Addition: I wanted to discuss the normal direction problem because I think it highlights issues many people run into and don t know the cause. It also allowed me to further the discussion on the Dielectric Material, the way a Ray traces refracts through a medium like glass, thus providing you with some more insight. However know that in some cases you can remedy the rendering errors by checking Ignore Normals in the settings for the Dielectric Material. I advise against it because I never like to leave it up to the renderer to decide what s best. Setting it up correctly to begin with and understanding why is very important advice and remains the best work method too. However, if it works use it!!! 2006 Howard Coulby

Caustics - Mental Ray

Caustics - Mental Ray Caustics - Mental Ray (Working with real caustic generation) In this tutorial we are going to go over some advanced lighting techniques for creating realistic caustic effects. Caustics are the bent reflections

More information

Chapter 11. Caustics and Global Illumination

Chapter 11. Caustics and Global Illumination 11 and Global Illumination Chapter 11 Direct illumination occurs when a light source directly illuminates an object or objects in a scene. Indirect illumination occurs if light illuminates objects by reflection

More information

Materials in Kerkythea ~ a beginners guide

Materials in Kerkythea ~ a beginners guide Materials in Kerkythea ~ a beginners guide I started using Kerkythea as a way of rendering SketchUP models. I quickly found that I needed to be able to create and work with materials. I read Patrick Nieborg

More information

Submerge Camera Shader

Submerge Camera Shader Submerge Camera Shader In this tutorial we are going to take a look at a simple scene with a swimming pool and a teapot and we will use the Mental Ray Camera shader called "Submerge" to change the look

More information

Advanced Maya Texturing and Lighting

Advanced Maya Texturing and Lighting Advanced Maya Texturing and Lighting Lanier, Lee ISBN-13: 9780470292730 Table of Contents Introduction. Chapter 1 Understanding Lighting, Color, and Composition. Understanding the Art of Lighting. Using

More information

Turn your movie file into the homework folder on the server called Lights, Camera, Action.

Turn your movie file into the homework folder on the server called Lights, Camera, Action. CS32 W11 Homework 3: Due MONDAY, APRIL 18 Now let s put the ball in a world of your making and have some fun. Create a simple AND WE MEAN SIMPLE environment for one of your ball bounces. You will assign

More information

critical theory Computer Science

critical theory Computer Science Art/Science Shading, Materials, Collaboration Textures Example title Artists In the recommend real world, two the main following: factors determine the appearance of a surface: basic understanding what

More information

Caustics - Mental Ray

Caustics - Mental Ray Caustics - Mental Ray In this tutorial we are going to go over some advanced lighting techniques for creating realistic caustic effects. Caustics are the focused patterns of light which form after light

More information

TUTORIAL 7: Global Illumination & Ambient Occlusion

TUTORIAL 7: Global Illumination & Ambient Occlusion TUTORIAL 7: Global Illumination & Ambient Occlusion The goal of this short tutorial is to introduce a few select aspects of mental ray so that you may consider incorporating them in your projects if appropriate.

More information

MITOCW MIT6_172_F10_lec18_300k-mp4

MITOCW MIT6_172_F10_lec18_300k-mp4 MITOCW MIT6_172_F10_lec18_300k-mp4 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for

More information

Advanced Maya e Texturing. and Lighting. Second Edition WILEY PUBLISHING, INC.

Advanced Maya e Texturing. and Lighting. Second Edition WILEY PUBLISHING, INC. Advanced Maya e Texturing and Lighting Second Edition Lee Lanier WILEY PUBLISHING, INC. Contents Introduction xvi Chapter 1 Understanding Lighting, Color, and Composition 1 Understanding the Art of Lighting

More information

CGS 3220 Lecture 4 Shaders, Textures, and Light

CGS 3220 Lecture 4 Shaders, Textures, and Light CGS 3220 Lecture 4 Shaders, Textures, and Light Introduction to Computer Aided Modeling Instructor: Brent Rossen Overview Working with the menu-less UI Working with the Hypershade Creating shading groups

More information

Raycast Rendering Maya 2013

Raycast Rendering Maya 2013 2000 2012 Michael O'Rourke Raycast Rendering Maya 2013 (See also the Intro to Lights and Rendering tutorial for an introduction to the basics of rendering an image) Concept There are several algorithms

More information

BIBIN FX.COM RENDERING BOTTLES IN MAYA MOSTAFA TALEBI BIBINFX.COM MOSTAFATALEBI.WEEBLY.COM

BIBIN FX.COM RENDERING BOTTLES IN MAYA MOSTAFA TALEBI BIBINFX.COM MOSTAFATALEBI.WEEBLY.COM BIBIN FX.COM MOSTAFATALEBI.WEEBLY.COM MOSTAFA TALEBI BIBINFX.COM MOSTAFA TALEBI RENDERING BOTTLES IN MAYA Hello This tutorial is mine, there is no other extra reference to be used in this tutorial.in this

More information

O Hailey: Chapter 3 Bonus Materials

O Hailey: Chapter 3 Bonus Materials O Hailey: Chapter 3 Bonus Materials Maya s Toon Line For those familiar with toon lines in Maya, you may skip ahead past this section. Those not familiar might find it useful to understand the basics of

More information

V-RAY MATERIAL SETTINGS

V-RAY MATERIAL SETTINGS V-RAY MATERIAL SETTINGS author: Wouter Wynen brought to you by: 2006 VisMasters. All rights reserved. VisMasters and the VisMasters logo are trademarks of ArchVision, Inc. All other trademarks belong to

More information

Chapter 9- Ray-Tracing

Chapter 9- Ray-Tracing Ray-tracing is used to produce mirrored and reflective surfaces. It is also being used to create transparency and refraction (bending of images through transparent surfaceslike a magnifying glass or a

More information

Cast Shadows Maya 2013

Cast Shadows Maya 2013 2000-2012 Michael O'Rourke Cast Shadows Maya 2013 Concept Cast shadows are defined on a per-light basis, because shadow-casting computations can be time-consuming Cast shadows are off by default in Maya,

More information

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside CS130 : Computer Graphics Lecture 8: Lighting and Shading Tamar Shinar Computer Science & Engineering UC Riverside Why we need shading Suppose we build a model of a sphere using many polygons and color

More information

Let s Make a Front Panel using FrontCAD

Let s Make a Front Panel using FrontCAD Let s Make a Front Panel using FrontCAD By Jim Patchell FrontCad is meant to be a simple, easy to use CAD program for creating front panel designs and artwork. It is a free, open source program, with the

More information

Property of: Entrada Interactive. PBR Workflow. Working within a PBR-based environment

Property of: Entrada Interactive. PBR Workflow. Working within a PBR-based environment Property of: Entrada Interactive PBR Workflow Working within a PBR-based environment Ryan Manning 8/24/2014 MISCREATED PBR WORKFLOW CryDocs on Physically Based Shading/Rendering: http://docs.cryengine.com/display/sdkdoc4/physically+based+rendering

More information

Shading, lighting, & BRDF Theory. Cliff Lindsay, PHD

Shading, lighting, & BRDF Theory. Cliff Lindsay, PHD Shading, lighting, & BRDF Theory Cliff Lindsay, PHD Overview of today s lecture BRDF Characteristics Lights in terms of BRDFs Classes of BRDFs Ambient light & Shadows in terms of BRDFs Decomposing Reflection

More information

Ok, so to get started we will take a look at the settings in the Render setup. If we were to take a render right now this is what we would see...

Ok, so to get started we will take a look at the settings in the Render setup. If we were to take a render right now this is what we would see... Caustics - V-Ray In this tutorial we are going to go over some advanced lighting techniques for creating realistic caustic effects using the V-Ray renderer. Caustics function in V-Ray much like they function

More information

Rendering and Radiosity. Introduction to Design Media Lecture 4 John Lee

Rendering and Radiosity. Introduction to Design Media Lecture 4 John Lee Rendering and Radiosity Introduction to Design Media Lecture 4 John Lee Overview Rendering is the process that creates an image from a model How is it done? How has it been developed? What are the issues

More information

5: Electromagnetic Waves (Chapters 33 & 34) Snapshot of a light wave. Wave vs Particle. A Brief History of Light

5: Electromagnetic Waves (Chapters 33 & 34) Snapshot of a light wave. Wave vs Particle. A Brief History of Light A Brief History of Light 5: Electromagnetic Waves (Chapters 33 & 34) Phys130, A01 Dr. Robert MacDonald Isaac Newton, 1600 s: Light is like little bullets. Scientists: Okay, right, that makes sense! Thomas

More information

Chapter 12- NURBS & Meta Shape Basics

Chapter 12- NURBS & Meta Shape Basics Chapter 12- NURBS & Meta Shape Basics When you press Shift-A for Add, you will notice other object types beside meshes, cameras and lights that can be created. Two types of objects that can be created

More information

Basic Texturing Tutorial by Gary Wu

Basic Texturing Tutorial by Gary Wu Basic Texturing Tutorial by Gary Wu This tutorial will teach you how to use basic shaders as textures on your models. In this example, we will be using a pumpkin model. The first step assumes you have

More information

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Lecture 15: Shading-I. CITS3003 Graphics & Animation Lecture 15: Shading-I CITS3003 Graphics & Animation E. Angel and D. Shreiner: Interactive Computer Graphics 6E Addison-Wesley 2012 Objectives Learn that with appropriate shading so objects appear as threedimensional

More information

Mental Ray for BK5100

Mental Ray for BK5100 for BK5100 Practical guide: Global Illumination Interior and MIA Materials Tweety 1 Technisch Ontwerp en Informatica Lecture overview Final Gather Exterior Lighting and rendering an exterior scene using

More information

IBL/GI & GLASS. Getting Realistic Results By Yon Resch. The Three Types of GI lighting and Glass

IBL/GI & GLASS. Getting Realistic Results By Yon Resch. The Three Types of GI lighting and Glass IBL/GI & GLASS Getting Realistic Results By Yon Resch Glass and other transparent materials are some of the hardest materials to render realistically. This has mainly to do with the number of additional

More information

The Special Effects Handbook

The Special Effects Handbook FREE MODELS From TurboSquid Value $298.00 USD Official Autodesk Training Guide Learning Autodesk Maya 2009 The Special Effects Handbook A hands-on introduction to key tools and techniques in Autodesk Maya

More information

Chapter 4- Blender Render Engines

Chapter 4- Blender Render Engines Chapter 4- Render Engines What is a Render Engine? As you make your 3D models in, your goal will probably be to generate (render) an image or a movie as a final result. The software that determines how

More information

Build Your Own Textures for Precious Vol. 1. Greetings!

Build Your Own Textures for Precious Vol. 1. Greetings! Build Your Own Textures for Precious Vol. 1 Greetings! Building your own textures using this product is easy! However, there is a bit of a trick to it. Let me walk you through it on one piece and then

More information

Chapter 6- Lighting and Cameras

Chapter 6- Lighting and Cameras Lighting Types and Settings When you create a scene in Blender, you start with a few basic elements that will include a camera, but may or may not include a light. Remember that what the camera sees is

More information

Mia Round Corners Node

Mia Round Corners Node Mia Round Corners Node NAKHLE Georges - july 2007 This tutorial describes how to use the mental ray MIA Round Corners node. 1) Create a polygonal cube, and make sure that mental ray plug-in is loaded.

More information

CS 5625 Lec 2: Shading Models

CS 5625 Lec 2: Shading Models CS 5625 Lec 2: Shading Models Kavita Bala Spring 2013 Shading Models Chapter 7 Next few weeks Textures Graphics Pipeline Light Emission To compute images What are the light sources? Light Propagation Fog/Clear?

More information

Autodesk Fusion 360: Render. Overview

Autodesk Fusion 360: Render. Overview Overview Rendering is the process of generating an image by combining geometry, camera, texture, lighting and shading (also called materials) information using a computer program. Before an image can be

More information

Shading 1: basics Christian Miller CS Fall 2011

Shading 1: basics Christian Miller CS Fall 2011 Shading 1: basics Christian Miller CS 354 - Fall 2011 Picking colors Shading is finding the right color for a pixel This color depends on several factors: The material of the surface itself The color and

More information

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) Why do we need Lighting

More information

Rendering Part I (Basics & Ray tracing) Lecture 25 December 1, 2015

Rendering Part I (Basics & Ray tracing) Lecture 25 December 1, 2015 Rendering Part I (Basics & Ray tracing) Lecture 25 December 1, 2015 What is rendering? Generating an image from a 3D scene model Ingredients Representation of 3D geometry Specification for camera & lights

More information

The Rendering Equation. Computer Graphics CMU /15-662

The Rendering Equation. Computer Graphics CMU /15-662 The Rendering Equation Computer Graphics CMU 15-462/15-662 Review: What is radiance? Radiance at point p in direction N is radiant energy ( #hits ) per unit time, per solid angle, per unit area perpendicular

More information

Lighting and Shading

Lighting and Shading Lighting and Shading Today: Local Illumination Solving the rendering equation is too expensive First do local illumination Then hack in reflections and shadows Local Shading: Notation light intensity in,

More information

So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources.

So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources. 11 11.1 Basics So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources. Global models include incident light that arrives

More information

521493S Computer Graphics. Exercise 3

521493S Computer Graphics. Exercise 3 521493S Computer Graphics Exercise 3 Question 3.1 Most graphics systems and APIs use the simple lighting and reflection models that we introduced for polygon rendering. Describe the ways in which each

More information

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

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading Visual cues to 3D geometry Light Reflection and Advanced Shading size (perspective) occlusion shading CS 4620 Lecture 17 1 2 Shading Recognizing materials Variation in observed color across an object strongly

More information

ECS 175 COMPUTER GRAPHICS. Ken Joy.! Winter 2014

ECS 175 COMPUTER GRAPHICS. Ken Joy.! Winter 2014 ECS 175 COMPUTER GRAPHICS Ken Joy Winter 2014 Shading To be able to model shading, we simplify Uniform Media no scattering of light Opaque Objects No Interreflection Point Light Sources RGB Color (eliminating

More information

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

Lighting & 3D Graphics. Images from 3D Creative Magazine Lighting & 3D Graphics Images from 3D Creative Magazine Contents Introduction Definitions 3D Lighting Basics 3D Light Sources Lighting Controls & Effects Brightness & Colour Shadows Hotspot And Falloff

More information

Shading I Computer Graphics I, Fall 2008

Shading I Computer Graphics I, Fall 2008 Shading I 1 Objectives Learn to shade objects ==> images appear threedimensional Introduce types of light-material interactions Build simple reflection model Phong model Can be used with real time graphics

More information

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

Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007 Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007 Programming For this assignment you will write a simple ray tracer. It will be written in C++ without

More information

Lighting and Shading. Slides: Tamar Shinar, Victor Zordon

Lighting and Shading. Slides: Tamar Shinar, Victor Zordon Lighting and Shading Slides: Tamar Shinar, Victor Zordon Why we need shading Suppose we build a model of a sphere using many polygons and color each the same color. We get something like But we want 2

More information

4) Finish the spline here. To complete the spline, double click the last point or select the spline tool again.

4) Finish the spline here. To complete the spline, double click the last point or select the spline tool again. 1) Select the line tool 3) Move the cursor along the X direction (be careful to stay on the X axis alignment so that the line is perpendicular) and click for the second point of the line. Type 0.5 for

More information

How does light energy travel? transparent transmit mediums media medium

How does light energy travel? transparent transmit mediums media medium Have you ever observed a solar eclipse like the one in this photograph? During a solar eclipse, it can become very dark in the middle of a sunny day. This may seem amazing to us, but it was terrifying

More information

CS 465 Program 5: Ray II

CS 465 Program 5: Ray II CS 465 Program 5: Ray II out: Friday 2 November 2007 due: Saturday 1 December 2007 Sunday 2 December 2007 midnight 1 Introduction In the first ray tracing assignment you built a simple ray tracer that

More information

COPYRIGHTED MATERIAL. Working in Maya. Chapter 1. Maya Nodes

COPYRIGHTED MATERIAL. Working in Maya. Chapter 1. Maya Nodes Chapter 1 Working in Maya Maya s working environment has evolved to accommodate both the individual artist as well as a team of artists working in a production pipeline. The interface in Maya 2009 has

More information

3ds Max certification prep

3ds Max certification prep 3ds Max certification prep Study online at quizlet.com/_25oorz 1. 24 Frames per second 2. 25 Frames per second, Europe 3. 30 Frames per second, Americas and Japan 4. Absolute mode, off set mode 5. How

More information

Lab 9 - Metal and Glass

Lab 9 - Metal and Glass Lab 9 - Metal and Glass Let the form of an object be what it may, light, shade, and perspective will always make it beautiful. -John Constable Prologue Support code: /course/cs1230/src/labs/lab09 This

More information

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

Topic 9: Lighting & Reflection models 9/10/2016. Spot the differences. Terminology. Two Components of Illumination. Ambient Light Source Topic 9: Lighting & Reflection models Lighting & reflection The Phong reflection model diffuse component ambient component specular component Spot the differences Terminology Illumination The transport

More information

MASY Easy Caustics. A Manual

MASY Easy Caustics. A Manual MASY Easy Caustics A Manual Table of Contents Introduction...3 Chapter 1: The Base Rig...4 Chapter 2: The Props and Scenes...8 Introduction Thank you for purchasing the Easy Caustics lighting pack for

More information

Advanced Distant Light for DAZ Studio

Advanced Distant Light for DAZ Studio Contents Advanced Distant Light for DAZ Studio Introduction Important Concepts Quick Start Quick Tips Parameter Settings Light Group Shadow Group Lighting Control Group Known Issues Introduction The Advanced

More information

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

Topic 9: Lighting & Reflection models. Lighting & reflection The Phong reflection model diffuse component ambient component specular component Topic 9: Lighting & Reflection models Lighting & reflection The Phong reflection model diffuse component ambient component specular component Spot the differences Terminology Illumination The transport

More information

Topics and things to know about them:

Topics and things to know about them: Practice Final CMSC 427 Distributed Tuesday, December 11, 2007 Review Session, Monday, December 17, 5:00pm, 4424 AV Williams Final: 10:30 AM Wednesday, December 19, 2007 General Guidelines: The final will

More information

Optics INTRODUCTION DISCUSSION OF PRINCIPLES. Reflection by a Plane Mirror

Optics INTRODUCTION DISCUSSION OF PRINCIPLES. Reflection by a Plane Mirror Optics INTRODUCTION Geometric optics is one of the oldest branches of physics, dealing with the laws of reflection and refraction. Reflection takes place on the surface of an object, and refraction occurs

More information

Ray Tracer Due date: April 27, 2011

Ray Tracer Due date: April 27, 2011 Computer graphics Assignment 4 1 Overview Ray Tracer Due date: April 27, 2011 In this assignment you will implement the camera and several primitive objects for a ray tracer, and a basic ray tracing algorithm.

More information

Me Again! Peter Chapman. if it s important / time-sensitive

Me Again! Peter Chapman.  if it s important / time-sensitive Me Again! Peter Chapman P.Chapman1@bradford.ac.uk pchapman86@gmail.com if it s important / time-sensitive Issues? Working on something specific? Need some direction? Don t hesitate to get in touch http://peter-chapman.co.uk/teaching

More information

Lecture 7 Notes: 07 / 11. Reflection and refraction

Lecture 7 Notes: 07 / 11. Reflection and refraction Lecture 7 Notes: 07 / 11 Reflection and refraction When an electromagnetic wave, such as light, encounters the surface of a medium, some of it is reflected off the surface, while some crosses the boundary

More information

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

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1) Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1) Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) Why do we need Lighting & shading? Sphere

More information

Shading. Brian Curless CSE 557 Autumn 2017

Shading. Brian Curless CSE 557 Autumn 2017 Shading Brian Curless CSE 557 Autumn 2017 1 Reading Optional: Angel and Shreiner: chapter 5. Marschner and Shirley: chapter 10, chapter 17. Further reading: OpenGL red book, chapter 5. 2 Basic 3D graphics

More information

CS 4620 Program 4: Ray II

CS 4620 Program 4: Ray II CS 4620 Program 4: Ray II out: Tuesday 11 November 2008 due: Tuesday 25 November 2008 1 Introduction In the first ray tracing assignment you built a simple ray tracer that handled just the basics. In this

More information

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

COMP environment mapping Mar. 12, r = 2n(n v) v Rendering mirror surfaces The next texture mapping method assumes we have a mirror surface, or at least a reflectance function that contains a mirror component. Examples might be a car window or hood,

More information

Comp 410/510 Computer Graphics. Spring Shading

Comp 410/510 Computer Graphics. Spring Shading Comp 410/510 Computer Graphics Spring 2017 Shading Why we need shading Suppose we build a model of a sphere using many polygons and then color it using a fixed color. We get something like But we rather

More information

QUICK EXCEL TUTORIAL. The Very Basics

QUICK EXCEL TUTORIAL. The Very Basics QUICK EXCEL TUTORIAL The Very Basics You Are Here. Titles & Column Headers Merging Cells Text Alignment When we work on spread sheets we often need to have a title and/or header clearly visible. Merge

More information

Recall: Basic Ray Tracer

Recall: Basic Ray Tracer 1 Recall: Ray Tracing Generate an image by backwards tracing the path of light through pixels on an image plane Simulate the interaction of light with objects Recall: Basic Ray Tracer Trace a primary ray

More information

Purpose: To determine the index of refraction of glass, plastic and water.

Purpose: To determine the index of refraction of glass, plastic and water. LAB 9 REFRACTION-THE BENDING OF LIGHT Purpose: To determine the index of refraction of glass, plastic and water. Materials: Common pins, glass block, plastic block, small semi-circular water container,

More information

Simple Nested Dielectrics in Ray Traced Images

Simple Nested Dielectrics in Ray Traced Images Simple Nested Dielectrics in Ray Traced Images Charles M. Schmidt and Brian Budge University of Utah Abstract This paper presents a simple method for modeling and rendering refractive objects that are

More information

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

Movie: For The Birds. Announcements. Ray Tracing 1. Programming 2 Recap. Programming 3 Info Test data for part 1 (Lines) is available Now Playing: Movie: For The Birds Pixar, 2000 Liar Built To Spill from You In Reverse Released April 11, 2006 Ray Tracing 1 Rick Skarbez, Instructor COMP 575 November 1, 2007 Announcements Programming

More information

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows Recollection Models Pixels Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows Can be computed in different stages 1 So far we came to Geometry model 3 Surface

More information

An Approach to Content Creation for Trainz

An Approach to Content Creation for Trainz An Approach to Content Creation for Trainz Paul Hobbs Part 6 GMax Basics (Updates and sample files available from http://www.44090digitalmodels.de) Page 1 of 18 Version 3 Index Foreward... 3 The Interface...

More information

Photorealism: Ray Tracing

Photorealism: Ray Tracing Photorealism: Ray Tracing Reading Assignment: Chapter 13 Local vs. Global Illumination Local Illumination depends on local object and light sources only Global Illumination at a point can depend on any

More information

Ray Tracing. CSCI 420 Computer Graphics Lecture 15. Ray Casting Shadow Rays Reflection and Transmission [Ch ]

Ray Tracing. CSCI 420 Computer Graphics Lecture 15. Ray Casting Shadow Rays Reflection and Transmission [Ch ] CSCI 420 Computer Graphics Lecture 15 Ray Tracing Ray Casting Shadow Rays Reflection and Transmission [Ch. 13.2-13.3] Jernej Barbic University of Southern California 1 Local Illumination Object illuminations

More information

diffuse diffuse reflection refraction diffuse mapping diffuse reflection reflection filter mapping mapping reflection

diffuse diffuse reflection refraction diffuse mapping diffuse reflection reflection filter mapping mapping reflection Matières 1 2 3 mapping diffuse reflection diffuse transparency reflection refraction diffuse mapping diffuse reflection diffuse reflection filter mapping bump mapping mapping mapping diffuse reflection

More information

Reflections and Refractions in Ray Tracing

Reflections and Refractions in Ray Tracing Reflections and Refractions in Ray Tracing Bram de Greve (bram.degreve@gmail.com) 10th October 2004 When you re writing a ray tracer, soon or late you ll stumble on the problem of reflection and refraction.

More information

4. Refraction. glass, air, Perspex and water.

4. Refraction. glass, air, Perspex and water. Mr. C. Grima 11 1. Rays and Beams A ray of light is a narrow beam of parallel light, which can be represented by a line with an arrow on it, in diagrams. A group of rays makes up a beam of light. In laboratory

More information

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet. Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that

More information

PHY 112: Light, Color and Vision. Lecture 11. Prof. Clark McGrew Physics D 134. Review for Exam. Lecture 11 PHY 112 Lecture 1

PHY 112: Light, Color and Vision. Lecture 11. Prof. Clark McGrew Physics D 134. Review for Exam. Lecture 11 PHY 112 Lecture 1 PHY 112: Light, Color and Vision Lecture 11 Prof. Clark McGrew Physics D 134 Review for Exam Lecture 11 PHY 112 Lecture 1 From Last Time Lenses Ray tracing a Convex Lens Announcements The midterm is Thursday

More information

Texture Mapping. Images from 3D Creative Magazine

Texture Mapping. Images from 3D Creative Magazine Texture Mapping Images from 3D Creative Magazine Contents Introduction Definitions Light And Colour Surface Attributes Surface Attributes: Colour Surface Attributes: Shininess Surface Attributes: Specularity

More information

Mastering Truspace 7

Mastering Truspace 7 How to move your Truespace models in Dark Basic Pro by Vickie Eagle Welcome Dark Basic Users to the Vickie Eagle Truspace Tutorials, In this first tutorial we are going to build some basic landscape models

More information

Rendering. Illumination Model. Wireframe rendering simple, ambiguous Color filling flat without any 3D information

Rendering. Illumination Model. Wireframe rendering simple, ambiguous Color filling flat without any 3D information llumination Model Wireframe rendering simple, ambiguous Color filling flat without any 3D information Requires modeling interaction of light with the object/surface to have a different color (shade in

More information

Advanced Gemstone Shaders

Advanced Gemstone Shaders Advanced Gemstone Shaders Introduction: I am fascinated from crystals and minerals and gemstones. As a game developer, I always look for solutions to simulate such precious stones. When most people hear

More information

GLOBAL ILLUMINATION. Christopher Peters INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION

GLOBAL ILLUMINATION. Christopher Peters INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION DH2323 DGI17 INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION GLOBAL ILLUMINATION Christopher Peters CST, KTH Royal Institute of Technology, Sweden chpeters@kth.se http://kth.academia.edu/christopheredwardpeters

More information

COMP371 COMPUTER GRAPHICS

COMP371 COMPUTER GRAPHICS COMP371 COMPUTER GRAPHICS SESSION 15 RAY TRACING 1 Announcements Programming Assignment 3 out today - overview @ end of the class Ray Tracing 2 Lecture Overview Review of last class Ray Tracing 3 Local

More information

AR-media TUTORIALS IMPROVING REALISM AMBIENT OCCLUSION. (June, 2011)

AR-media TUTORIALS IMPROVING REALISM AMBIENT OCCLUSION. (June, 2011) AR-media TUTORIALS IMPROVING REALISM AMBIENT OCCLUSION (June, 2011) Copyright Copyright 2008/2011 Inglobe Technologies S.r.l. All rights reserved. No part of this publication may be reproduced, transmitted,

More information

GEOMETRIC OPTICS. LENSES refract light, so we need to know how light bends when entering and exiting a lens and how that interaction forms an image.

GEOMETRIC OPTICS. LENSES refract light, so we need to know how light bends when entering and exiting a lens and how that interaction forms an image. I. What is GEOMTERIC OPTICS GEOMETRIC OPTICS In geometric optics, LIGHT is treated as imaginary rays. How these rays interact with at the interface of different media, including lenses and mirrors, is

More information

I have a meeting with Peter Lee and Bob Cosgrove on Wednesday to discuss the future of the cluster. Computer Graphics

I have a meeting with Peter Lee and Bob Cosgrove on Wednesday to discuss the future of the cluster. Computer Graphics Announcements Assignment 4 will be out later today Problem Set 3 is due today or tomorrow by 9am in my mail box (4 th floor NSH) How are the machines working out? I have a meeting with Peter Lee and Bob

More information

What is it? How does it work? How do we use it?

What is it? How does it work? How do we use it? What is it? How does it work? How do we use it? Dual Nature http://www.youtube.com/watch?v=dfpeprq7ogc o Electromagnetic Waves display wave behavior o Created by oscillating electric and magnetic fields

More information

Assignment 10 Solutions Due May 1, start of class. Physics 122, sections and 8101 Laura Lising

Assignment 10 Solutions Due May 1, start of class. Physics 122, sections and 8101 Laura Lising Physics 122, sections 502-4 and 8101 Laura Lising Assignment 10 Solutions Due May 1, start of class 1) Revisiting the last question from the problem set before. Suppose you have a flashlight or a laser

More information

Reflection & Refraction

Reflection & Refraction Reflection & Refraction Reflection Occurs when light hits a medium and bounces back towards the direction it came from Reflection is what allows us to see objects: Lights reflects off an object and travels

More information

REFLECTION & REFRACTION

REFLECTION & REFRACTION REFLECTION & REFRACTION OBJECTIVE: To study and verify the laws of reflection and refraction using a plane mirror and a glass block. To see the virtual images that can be formed by the reflection and refraction

More information

Refraction Ch. 29 in your text book

Refraction Ch. 29 in your text book Refraction Ch. 29 in your text book Objectives Students will be able to: 1) Identify incident and refracted angles 2) Explain what the index of refraction tells about a material 3) Calculate the index

More information

CS452/552; EE465/505. Intro to Lighting

CS452/552; EE465/505. Intro to Lighting CS452/552; EE465/505 Intro to Lighting 2-10 15 Outline! Projection Normalization! Introduction to Lighting (and Shading) Read: Angel Chapter 5., sections 5.4-5.7 Parallel Projections Chapter 6, sections

More information

TSBK 07! Computer Graphics! Ingemar Ragnemalm, ISY

TSBK 07! Computer Graphics! Ingemar Ragnemalm, ISY 1(84) Information Coding / Computer Graphics, ISY, LiTH TSBK 07 Computer Graphics Ingemar Ragnemalm, ISY 1(84) Lecture 5 3D graphics part 3 Illumination Illumination applied: Shading Surface detail: Mappings

More information