Advanced Concepts in Computer Graphics - cse.iitm [PDF]

Examples include oranges, strawberries, stucco, wood, etc. An intuitive representation of surface bumpiness is formed by

0 downloads 3 Views 10MB Size

Recommend Stories


Computer Graphics (Advanced course for Mechanical Engineers)
The beauty of a living thing is not the atoms that go into it, but the way those atoms are put together.

Advanced Computer Graphics Materials and Lights
Love only grows by sharing. You can only have more for yourself by giving it away to others. Brian

Computer Graphics
Respond to every call that excites your spirit. Rumi

Computer Graphics
Your big opportunity may be right where you are now. Napoleon Hill

Computer Graphics & Animation - SciTechnol [PDF]
books including Drawing the Line: The Untold Story of the Animation Unions from Bosko to Bart Simpson (Univ Press of Kentucky, 2006), and Moving Innovation, a History of Computer Animation (MIT Press, 2013). [email protected]. Tom Sito, J Comput Eng In

Computer Graphics
Sorrow prepares you for joy. It violently sweeps everything out of your house, so that new joy can find

computer graphics
Be like the sun for grace and mercy. Be like the night to cover others' faults. Be like running water

Programming computer graphics and the development of concepts in geometry
Learn to light a candle in the darkest moments of someone’s life. Be the light that helps others see; i

Computer Graphics
You have survived, EVERY SINGLE bad day so far. Anonymous

Computer Graphics
What we think, what we become. Buddha

Idea Transcript


Advanced Concepts in Computer Graphics

Topics to be discussed: • Antialiasing • Texture Bump Mapping • Animation • Soft Object Modeling • Image-based rendering • Visual Realism

ANTIALIASING

ALIASING Aliasing occurs when signals are sampled too infrequently (coarse sampling), giving the illusion of a lower frequency signal.

SAMPLING AND RECONSTRUCTION

Continuous function

Sampling Function

Discrete Samples

Reconstruction Reconstructed Kernel signal

DRAWBACKS OF ALIASING

Jagged Profiles

L Loss off Detail D t il

Disintegrating Textures

• Techniques to reduce aliasing : Antialiasing

ANTIALIASING TECHNIQUES Increasing g Resolution

More memory cost, bandwidth and scan conversion time required. q

ANTIALIASING TECHNIQUES (Cont.) Area Sampling • Setting intensity proportional to amount off area covered. d • The intensity decreases as the distance between the pixel and the edge increases. • Unweighted Area Sampling : Equal areas contribute equal intensity, regardless of distance between the pixel’s center and the area; only the total amount of overlapped area matters. matters

• Weighted Area sampling: Equal areas contribute unequally. A smaller area closer to the pixel center has a greater influence than does one at greater distance.

Intensity Proportional to Area Covered

ANTIALIASING TECHNIQUES (Cont.) Point Sampling • Select one point for each pixel, evaluate the original signal at this point and assign its value to the pixel. • The projected vertices are not constrained to lie on a square grid. • Because the signal’s values at a finite set of points are sampled, p p important p features of the signal may be missed. • The approach of taking more than one sample for each pixel and combining them is known as supersampling. p p g • Supersampling corresponds to reconstructing the signal and resampling the reconstructed signal.

Problems o e s in Point o Sampling a p g

ANTIALIASING TECHNIQUES (Cont.) Filtering • By removing high frequency components from the original signal, the new signal can be reconstructed properly from a finite number of samples.

Result for Low Pass Filtering

Original Image

Result for High Pass Filtering il i

Functions ( (Gaussian-derived) ) for anti-aliasing g

TEXTURE Mapping & BUMP MAPPING

Te t re B Texture Bump mp Mapping Bump mapping, like texture mapping, is a technique to add more realism to synthetic images without adding a lot of geometry. Texture mapping adds realism attaching images to geometric surfaces.

by

Bump mapping adds per-pixel surface relief li f shading, h di i increasing i th the apparentt complexity of the surface.

RELIEF MAP IN DIGITAL CARTOGRAPHY

Texture Bump Mapping Bump mapping is done for surfaces that should have a patterned roughness. Examples include oranges, strawberries, oranges strawberries stucco, wood, etc. An intuitive representation of surface bumpiness is formed by a 2D height field array, or bump map. Bump map is defined by the scalar difference F(u, F(u v) between the flat surface P(u, v) and the desired bumpy surface P'(u, v) (u v). v) along the normal N at each point (u,

Te t re B Texture Bump mp Mapping A bump map is an array of values that represent an object object's s height variations on a small scale. A custom renderer is used to map these height values into changes in the local surface normal. These perturbed normals are combined with the surface normal, and the results are used to evaluate the lighting equation at each pixel. i l

Texture Bump Mapping

Texture Space: (s, t)

Surface Space: (u, v)

Image Space: (x, y)

EXAMPLE

Bump p Mapping pp g • Textures can be used to alter the surface normal of an object. • This does not change the actual shape of the surface -we are only shading it as if it were a different shape!

Sphere p w/Diffuse / Texture

Swirlyy Bump p Map p

MIT EECS 6.837, Durand and Cutler

Sphere p w/Diffuse / Texture & Bump p Map p

Another Bump p Mapp Example p

Bump Map

Cylinder w/Diffuse Texture Map

Cylinder l d w/Texture / Map & Bump Map

MIT EECS 6.837, Durand and Cutler

Bump Map Example

Displacement Mapping

Displacement mapping algorithms take sample points and displace them perpendicularly to the normal of the macrostructure surface f with i h the h di distance obtained b i d from f the h height map. The sample points can be either the vertices of the original or tessellated mesh (per-vertex displacement mapping) i ) or the h points i corresponding di to the h texell centers (per-pixel displacement mapping). In case of per-vertex displacement mapping the modified geometry goes through the rendering pipeline. H However, iin per-pixel i l di displacement l mapping, i surface f details d il are added when color texturing takes place.

r (u , v)  p (u , v)  N (u , v)h(u , v) r – mesostructure; p – macrostructure; N – unit normal; h – scalar height function/map

Solve for:

(u ' , v' , h(u ' , v' ))  (u , v, o)  V .t

Displacement Mapping

Displacement p Mapping pp g • Use the texture map to actually move the surface point. • The geometry must be displaced before visibility is determined.

MIT EECS 6.837, Durand and Cutler

Displacement Mapping

Environment Mapping pp g Example p

Terminator II

MIT EECS 6.837, Durand and Cutler

Environment Mapping pp g Example p

MIT EECS 6.837, Durand and Cutler

Relief Textures

Colo map Color

D th Map Depth M

Relief Mapping on Pol gonal Surfaces Polygonal S faces

Bump/parallax p p mapping

Relief Mapping with Self-shadowing

Interpenetration of Relief map p and texture mapped pp surfaces

Relief Mapping of Non-height-field

A realistic scene implemented using: NURBS ( (Non-uniform Rational B-Splines), p ), image maps, bump maps, texture map, procedural noise and depth of field. Courtesy: http://realsoft.fi/gallery/

ANIMATION

APPLICATIONS OF ANIMATION • Special Effects (Movies, TV) • Video Games • Simulation, Training, Military • Virtual Reality • Medical • Robotics, Animatronics • Visualization • Communication

ANIMATION A technique in which the illusion of movement is created by photographing g g a series of individual drawings on successive frames of film (Cartoon production)

COMPUTER ANIMATION Animation Pipeline p 3D Modeling

A ti l ti Articulation

Motion Si Simulation l ti

Shading g

Lighting

Motion Specification

Rendering

Post processing

2D AND 3D ANIMATION

Animation characters in 2D and 3D

TYPES OF COMPUTER ANIMATION • • • •

Keyframe Animation Procedural Animation Motion Captured Animation Kinematics

KEYFRAME ANIMATION Define character poses at different time steps called keyframes; and interpolate steps, variables describing keyframes to determine poses of character - “inbetween” inbetween . Also called - Inverse Kinematics or dynamics

In-betweening

Linear Interpolation Cubic Spline Interpolation

Keyframe k

Keyframe k+1 In-between

Spline Interpolation

Spline Interpolation Lagrange polynomials of small degree are fine but high degree polynomials are too wiggly. wiggly Spline (piecewise cubic polynomial) interpolation produces nicer interpolation. interpolation

t

t

t

x t 

8-degree 8 degree polynomial

Lecture 10

spline

Slide 48

spline vs vs. polynomial

PROCEDURAL ANIMATION • Most of the work is done by Computer • Object Obj t positions iti and d shapes h are controlled t ll d by b : g and crowd systems y • Particle,, flocking • Cloth, Fire, Smoke and Water simulations

Smoke simulation

Human and Cloth Animation

Particle System Applications

MOTION CAPTURED ANIMATION • Most of the work is done by y Human Actor • Human joint angles are taken from a live model via sensors on a motion capture suit

Soft Modelling Of Objects Need for Soft Modeling : Various deformable parts such as cords, leather products and sheet metals are handled and manipulated in a lot of manufacturing processes. Modeling of deformable objects is thus required so that the shape of the soft objects bj can be b analyzed l d and d can be b evaluated on a computer.

Applications Of Soft Modeling : Computer aided design and computer drawing applications Deformable models are used to create and edit di complex l curves, surfaces f and d solids. lid C Computer t aided id d apparell design d i p g and folding. g Used to simulate fabric draping Image analysis Used to segment images and to fit curved y image g data. surfaces to noisy Surgical simulation and training systems

Techniques q for modeling g deformable models : Non Physical Models : Splines and Patches : Bezier curves, double-quadratic curves,Bsplines, Non-uniform rotational B-Splines(NURBS) and Beta-splines are used to represent planar and 3d curves. Free-form deformation (FFD): FFD is a general method for deforming objects that provide a higher and powerful level of control.

Techniques for modeling deformable models : Physical Models : Mass-Spring Models : An object is modeled as a collection of point masses connected by springs in a lattice structure. structure Widely used in face animation The spring forces are often linear, linear but nonlinear springs can be used to model tissues such as human skin that has inelastic behavior.

Cloth Modeling

IMAGE BASED RENDERING

IMAGE BASED RENDERING (IBR) IBR refers f t to a class l off rendering d i methods. It takes a series of images as input and uses them to form a new image from different camera locations. The images produced by IBR systems are often more realistic, realistic when compared with classical rendering models. Basic principle is to take some subset of the required viewpoints and from these synthesize the picture that we need to see from a new viewpoint. viewpoint

Two Image based rendering methods • Mosaicing Matching multiple images by aligning and pasting images to a wider field of view image

• Light field rendering (lumigraph) Light field rendering is the process of rendering novel views of a scene captured by the light field function.

Mosaicing

The e top two t o images ages mosaiced osa ced toget together e to form a panoramic view of a scene

Light field rendering (lumigraph) A light field is a 4D function describing the radiance across a boundary between the volume containing g a scene,, and the disjoint volume in which the eye point may p y be p placed.

Visual Realism

Objective - Creation of realistic pictures Techniques used are: • • • • • • • • • •

Effect of texture mapping Material properties Shadows, procedural texture/noise Transparency and Reflection Radiosity and photon mapping Stereopsis Dynamics y a cs Anti-aliasing p Displays p y Improved Haptics (non-visual feedback) and use of other senses • Image/Video based rendering

Tae pot with Shading, shadows and Radiosity

Triangle mesh

Stanford Michaelangelo project

Ra Tracing Ray

Ray y Tracing g+ Semi-local illumination

peter henry

R di it Radiosity

Diffuse reflections + Radiosity R di it

The Cornell Box • Using careful calibration and measurement

photograph

simulation

Light Li ht Measurement M t Laboratory L b t Cornell University, Program for Computer Graphics

End of Lectures on Advanced Concepts in Computer Graphics

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.