Simulating the Physics of Pool using RenerMan ● Shaders and Texture Mapping ● Spherical Texture Maps ● Rotating the Balls ● Lighting ● Physics Equations.

Slides:



Advertisements
Similar presentations
Color: This channel applies color, textured patterns, or images to the surface.
Advertisements

Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
1 Graphics CSCI 343, Fall 2013 Lecture 18 Lighting and Shading.
Linear Momentum Vectors again.
Center of Mass and Linear Momentum
Reflections from Bumpy Surfaces GPU Graphics. What are we trying to achieve?  Most surfaces are not flat like glass  Some of these surfaces still give.
ARCH 481 3d Modeling and Rendering lecture four: texture maps.
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
Physics 218: Mechanics Instructor: Dr. Tatiana Erukhimova Lectures 27, 28.
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
Physics 218, Lecture XVII1 Physics 218 Lecture 17 Dr. David Toback.
Direct Volume Rendering w/Shading via Three- Dimensional Textures.
Shading Languages By Markus Kummerer. Markus Kummerer 2 / 19 State of the Art Shading.
1 3D –graphics and animation Shading and Surface Characteristics Harri Airaksinen.
Classical Mechanics Review 4: Units 1-19
The Physics of Cue Sports
Physics Unit Review Trivia Game. Mass Inertia is a measure of…
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Chapter 3 Vectors and Two-Dimensional Motion. Vector vs. Scalar Review All physical quantities encountered in this text will be either a scalar or a vector.
Ch. 8 Momentum and its conservation
Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get.
Let’s play snooker!. Overview Introduction to snooker UML diagram Physics Simulation techniques Result Conclusion Further research.
Newton’s Laws of Motion
Momentum and Collisions
Steve Sterley. Real World Lighting Physical objects tend to interact with light in three ways: Absorption (black body) Reflection (mirror) Transmission.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Impulse and Momentum AP Physics B.
Momentum, impulse, and collisions Chapter 8 Sections 1-5.
Work is defined as the transfer of energy from one body to another. Or more rigorously:
Cel shading By jared brock.
UV Mapping After a 3D object has been modeled it must be prepared for texturing. 3D surfaces can be “unwrapped” into a 2D representation with. This process.
Color: This channel applies color, textured patterns, or images to the surface.
Physics 211 Second Sample Exam Fall 2004 Professors Aaron Dominguez and Gregory Snow Please print your name _______________________________________________________________.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
Pool Billiard can be viewed as elastic collision in 1D if balls are hit head on. Professional tables have balls of equal mass. What happens if the white.
Impulse and Momentum AP Physics.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Introduction to Physical Science Monday, Wednesday, Thursday Tom Burbine
Physics 111 Projectile Motion 2.0.
Projectile Motion.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Part 2 Kinematics Chapter 3 Vectors and Two-Dimensional Motion.
Conservation of Momentum Conservation of momentum: Split into components: If the collision is elastic, we can also use conservation of energy.
This file is intended to be used with the blog post “Drawing in PowerPoint: Spheres, Planets and Balls” at
Week 11 - Wednesday CS361.
Do Now: I want to drop a 25 gram marble on top of an ant that will have a vertical displacement “h”. Assuming it was dropped from rest, write an expression.
CHAPTER 4: Systems of Particles
3D Graphics Rendering PPT By Ricardo Veguilla.
What is Projectile Motion?
--Jia Ming Simon Ma CMPS 162
Motion in two directions
Motion in two directions
Reflections from Bumpy Surfaces
(c) 2002 University of Wisconsin
9.2 Calculating Acceleration
Lighting.
Aim: How do we solve collisions in two dimensions?
9.2 Calculating Acceleration
Instructor: Dr. Tatiana Erukhimova
Chapter 9: Linear Momentum and Collisions
Two-Dimensional Motion
9.2 Calculating Acceleration
ICG 2018 Fall Homework1 Guidance
Chapter IX Lighting.
9.2 Calculating Acceleration
9.2 Calculating Acceleration
Instructor: Dr. Tatiana Erukhimova
Presentation transcript:

Simulating the Physics of Pool using RenerMan ● Shaders and Texture Mapping ● Spherical Texture Maps ● Rotating the Balls ● Lighting ● Physics Equations ● Functions Yet to Be Implemented

Shaders and Texture Maps ● Shaders are a part of the rendering program that calculates the appearance of visible surfaces in the scene. In RenderMan, a written procedure is used as a shader. ● There are three types of shaders: – Light Shaders – Surface Shaders – Volume Shaders

Light Shaders ● Light Source Shaders calculates the intensity and color of light sent by a light source to a point on a surface ● Basic light source shaders include: – ambient light – distant light – point light – spotlight

Light Shaders (cont’d) ● Light Shaders used in project include: – ambient light – three point light sources

Surface Shaders ● A surface shader calculates the color of light reflecting from a point on a surface in a particular direction ● Basic Surface Shaders Include: – constant – matte – metal – plastic – texture map

Surface Shaders (cont’d) ● Surface Shaders used in project include: – felt – wood – pool ball texture map

Spherical Texture Maps ● Applying texture maps to spheres is a special case ● When a texture is applied to a sphere, the texture will be stretched horizontally

Spherical Texture Maps (cont’d) ● The original image has the size of 2h x h. ● Then scale the image’s x-axis by half

Volume Shaders ● Volume Shaders calculates the color and intensity of light as it passes through a volume (a region of space). ● Volume Shaders include: – Fog – Jell-O ● I intend to use fog to simulate the smoky environment of a pool hall

How Shaders All Come Together ● Draw Picture

Physics Equations ● Most pool applications use the ninety degree rule to simulate the deflection of pool balls, even those that claim to simulate the actual physics of the game. ● Just because you used physics equations, does not mean you used the correct equations. ● The ninety degree rule holds true only in frictionless environments (air hockey, collisions in space, etc.)

Physics (cont’d) Friction, and Deceleration ● Most people assume the friction between a billiard ball and the table is so small, friction can be ignored. ● This is not true, friction does exist on a pool table, causing an average deceleration of 0.21 m/s 2. ● Since friction does exist, the ninety degree rule does NOT hold true for pool

Physics (cont’d) Deflection ● The actual equations of deflection, in components, are: (where the subscripts o and c refer to the object ball and cue ball, respectively)

Physics (cont’d) Angular Velocity ● To make the billiard balls roll correctly, the angular velocity is needed. ● The equation for angular velocity is:

Functions Yet to Be Implemented ● Smoky Environment ● Motion Blur ● Camera Motion ● Pockets, and other pool accessories. ● Ball deflection off of wall ● Ball Falling In Pocket (maybe...)