Fog and Cloud Effects. Karl Smeltzer Alice Cao John Comstock

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

SAMPLING AND NOISE. Increasing the number of samples per pixel gives an anti-aliased image which better represents the actual scene.

Lecture 11. More Ray Casting/Tracing

Ray Tracing. Kjetil Babington

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

Topics and things to know about them:

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

Lighting and Shading

Ray Tracer I: Ray Casting Due date: 12:00pm December 3, 2001

Photorealism: Ray Tracing

Homework #2. Shading, Ray Tracing, and Texture Mapping

Intro to Ray-Tracing & Ray-Surface Acceleration

Level of Details in Computer Rendering

Deferred Rendering Due: Wednesday November 15 at 10pm

Design Visualization with Autodesk Alias, Part 2

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

Quadric Surfaces. Philippe B. Laval. Spring 2012 KSU. Philippe B. Laval (KSU) Quadric Surfaces Spring /

Quadric Surfaces. Philippe B. Laval. Today KSU. Philippe B. Laval (KSU) Quadric Surfaces Today 1 / 24

Lecture 15: Shading-I. CITS3003 Graphics & Animation

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

Photo Studio Optimizer

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Ray casting. Ray casting/ray tracing

Graphics and Interaction Surface rendering and shading

Lecture outline Graphics and Interaction Surface rendering and shading. Shading techniques. Introduction. Surface rendering and shading

Simple Lighting/Illumination Models

Global Illumination. CSCI 420 Computer Graphics Lecture 18. BRDFs Raytracing and Radiosity Subsurface Scattering Photon Mapping [Ch

Computer Graphics Ray Casting. Matthias Teschner

Ray Tracing Basics I. Computer Graphics as Virtual Photography. camera (captures light) real scene. photo. Photographic print. Photography: processing

Supplement to Lecture 16

TNM079 Modeling & Animation Lecture 6 (Implicit surfaces)

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

Announcements. Written Assignment 2 out (due March 8) Computer Graphics

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

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

Illumination Algorithms

Introduction Ray tracing basics Advanced topics (shading) Advanced topics (geometry) Graphics 2010/2011, 4th quarter. Lecture 11: Ray tracing

Chapter 7 - Light, Materials, Appearance

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

Raytracing CS148 AS3. Due :59pm PDT

Lighting. To do. Course Outline. This Lecture. Continue to work on ray programming assignment Start thinking about final project

CPSC GLOBAL ILLUMINATION

COMP371 COMPUTER GRAPHICS

How do we draw a picture?

Questions??? Announcements Assignment 3 due today

Ray Tracer Due date: April 27, 2011

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

03 RENDERING PART TWO

Rendering Algorithms: Real-time indirect illumination. Spring 2010 Matthias Zwicker

A Little Background. Motivation. Motivation

Illumination and Shading

Shading Languages. Seminar Computer Graphics. Markus Kummerer

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

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

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

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

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

Introduction to Computer Graphics 7. Shading

CHAPTER 1 Graphics Systems and Models 3

Graphics for VEs. Ruth Aylett

w Foley, Section16.1 Reading

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

Ray Tracing. Foley & Van Dam, Chapters 15 and 16

Computer Graphics 1. Chapter 7 (June 17th, 2010, 2-4pm): Shading and rendering. LMU München Medieninformatik Andreas Butz Computergraphik 1 SS2010

Computer Graphics. Illumination Models and Surface-Rendering Methods. Somsak Walairacht, Computer Engineering, KMITL

Ray Tracing Foley & Van Dam, Chapters 15 and 16

Surface Rendering Methods

3D Programming. 3D Programming Concepts. Outline. 3D Concepts. 3D Concepts -- Coordinate Systems. 3D Concepts Displaying 3D Models

Homework #2. Shading, Projections, Texture Mapping, Ray Tracing, and Bezier Curves

Assignment 6: Ray Tracing

Visualisatie BMT. Rendering. Arjan Kok

Chapter 10. Surface-Rendering Methods. Somsak Walairacht, Computer Engineering, KMITL

Computer Graphics. Ray Tracing. Based on slides by Dianna Xu, Bryn Mawr College

Understanding Variability

Ray Tracing. Brian Curless CSEP 557 Fall 2016

Computer Graphics (CS 543) Lecture 13b Ray Tracing (Part 1) Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

Computer Graphics. Lecture 13. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura

Global Illumination CS334. Daniel G. Aliaga Department of Computer Science Purdue University

Bioluminescence Chris Fontas & Forrest Browning

Ray Tracing COMP575/COMP770

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

Rendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane

Ray Tracing Part 1. CSC418/2504 Introduction to Computer Graphics. TA: Muhammed Anwar & Kevin Gibson

Surface Rendering. Surface Rendering

CS5620 Intro to Computer Graphics

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

Illumination. The slides combine material from Andy van Dam, Spike Hughes, Travis Webb and Lyn Fong

Advanced Distant Light for DAZ Studio

Evolution of Imaging Technology in Computer Graphics. Related Areas

Lecture 18: Primer on Ray Tracing Techniques

Interactive Real-Time Raycasting

CS 4620 Midterm, March 21, 2017

Illumination Models III: Ray Tracing (View Dependent Global Illumination)

Key Idea. It is not helpful to plot points to sketch a surface. Mainly we use traces and intercepts to sketch

CS 4204 Computer Graphics

Ray Tracing: Whence and Whither?

CS559 Computer Graphics Fall 2015

lecture 21 volume rendering - blending N layers - OpenGL fog (not on final exam) - transfer functions - rendering level surfaces

SUMMARY. CS380: Introduction to Computer Graphics Ray tracing Chapter 20. Min H. Kim KAIST School of Computing 18/05/29. Modeling

Transcription:

Fog and Cloud Effects Karl Smeltzer Alice Cao John Comstock

Goal Explore methods of rendering scenes containing fog or cloud-like effects through a variety of different techniques Atmospheric effects make rendered scenes become more natural and realistic create a better sense of depth impact the viewer to wonder whether they are indeed seeing a photo or a rendered picture

Natural Variation Real environmental fog and clouds vary greatly in size, shape, definition, density, etc. Not feasible to judge one rendering method as the best or most realistic

Enclosed Fog vs. Overall Fog Fog Enclosed in a Volume Fog Around the Entire Scene

Fog Rendering Techniques Traditional texture mapping Two-dimensional noise texturing Volumetric ray casting Pixel fog Single scattering model

Volumetric Ray Casting For each pixel Shoot a ray through a three dimensional volume Take samples within the volume at various points Compute the color for each sample point Composite the various samples into a final color

Volumes using Quadric Surfaces The basic general form of a three-dimensional quadric surface function: AX 2 + BY 2 + CZ 2 + DXY + EXZ + FYZ + GX + HY + IZ + J = 0 This implies that any quadric surface anywhere in 3D space can be defined using ten numbers, A through J.

Quadric Surfaces (cont.) This formula can then be reduced through substitution to a more familiar form: A c t 2 + B c t + C c = 0 where A c = AX d2 + BY d2 + CZ d2 + DX d Y d + EX d Z d + FY d Z d B c = 2AX o X d + 2BY o Y d + 2CZ o Z d + DX o Y d + DY o X d + EX o Z d + EZ o X d + FY o Z d + FZ o Y d + GX d + HY d + IZ d C c = AX o2 + BY o2 + CZ o2 + DX o Y o + EX o Z o + FY o Z o + GX o + HY o + IZ o + J R(t) = R d t + R o This allows us to generalize two calculations: Visibility We can use B c2-4a c C c to determine whether an intersection exists and then solve the complete quadratic equation for t 1 and t 2, to substitute back into our R(t) above. Normal at any point Given the normal defined as the following: N x = 2AX + DY + EZ + G N y = 2BY + DX + FZ + H N z = 2CZ + EX + FY + I With the value for t, from the visibility calculation above, we can define P x = X d t + X o P y = Y d t + Y o P z = Z d t + Z o We can now substitute the P values in for X, Y, and Z in the normal equation for the normal at any point.

Pixel Fog Apply a fog factor to each pixel to determine how much of a pixel is obscured by fog. The fog factor is calculated by linearly interpolating the accumulated color and the fog color along a ray at various sample points. This can be applied to the complete rendered scene and not just a single piece of geometry DirectX uses the following formula to compute the fog coefficient: f = e -(ρ*d*n) with p = density, d = camera distance, and n = Perlin noise factor.

Pixel Fog (cont.) This method is popular and used in both the OpenGL and the DirectX models only have to apply a fog density value once to each pixel However, this method has many short comings: glow around light sources are missing object shading tends to be incorrect may look two-dimensional in 3D space

Single Scattering Model The single scattering model improves upon the pixel fog formula by: adding the glow around point light sources softening the diffuse radiance on reflected objects brightening dark regions dimming and diffusing specular highlights creating a noticeable loss of contrast and color saturation

Single Scattering Model (cont.) Our current Phong illumination model calculates light based on the following: Calculating a single scatter point and use a Point Spread Formula for each pixel

Single Scattering Model (cont.) From a simple Phong illumination model we can add the single scatter point and Point Spread Formula to create the following:

Implementation Volumetric ray casting with Perlin noise in a couple quadric surfaces Sphere Cone Cylinder Additional volumes (time permitting) Pixel fog with Perlin noise and Gaussian Filter The single scattering model with 2D texture lookup (time permitting)

Potential Problems We are unable to achieve any functioning, satisfactory results The results don t simulate real fog very well, so our results look really fake Possible 2D vs. 3D appearance Real fog refracts light off each water droplet and is significantly more complex than our models