Surface Detail and Non-PhotoRealistic Rendering Lecture 3 (Rendering)

Slides:



Advertisements
Similar presentations
Virtual Realism TEXTURE MAPPING. The Quest for Visual Realism.
Advertisements

03/16/2009Dinesh Manocha, COMP770 Texturing Surface’s texture: its look & feel Graphics: a process that takes a surface and modifies its appearance using.
Texture Mapping. Texturing  process that modifies the appearance of each point on a surface using an image or function  any aspect of appearance can.
Week 7 - Monday.  What did we talk about last time?  Specular shading  Aliasing and antialiasing.
Real-Time Rendering TEXTURING Lecture 02 Marina Gavrilova.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
Computer Graphics Bing-Yu Chen National Taiwan University.
Texture Visual detail without geometry. Texture Mapping desire for heightened realism.
Week 7 - Wednesday.  What did we talk about last time?  Transparency  Gamma correction  Started texturing.
Computer Graphics Inf4/MSc Computer Graphics Lecture 13 Illumination I – Local Models.
COMPUTER GRAPHICS CS 482 – FALL 2014 OCTOBER 6, 2014 TEXTURE MAPPING TEXTURES BUMP MAPPING ENVIRONMENT MAPPING PROCEDURAL TEXTURING.
Texture Mapping CPSC /24/03 Abhijeet Ghosh.
Computer Graphics (Spring 2008) COMS 4160, Lecture 19: Texture Mapping Many slides from Greg Humphreys, UVA and Rosalee.
Chapter 4 Digital Multimedia, 2nd edition Vector Graphics.
(conventional Cartesian reference system)
X86 and 3D graphics. Quick Intro to 3D Graphics Glossary: –Vertex – point in 3D space –Triangle – 3 connected vertices –Object – list of triangles that.
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 18: Shading & Texture Mapping Many slides from Greg.
Texture Mapping from Watt, Ch. 8 Jonathan Han. Topics Discussed Texture Map to Models Bump Maps, Light Maps Environment (Reflection) Mapping 3D Textures.
Texture Mapping April 9, The Limits of Geometric Modeling Although graphics cards can render over 10 million polygons per second, that number.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
1 3D –graphics and animation Shading and Surface Characteristics Harri Airaksinen.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Shading Week 5, Wed 1 Oct 2003 recap: lighting shading.
Shading, Surfaces & Textures
Computer Graphics Inf4/MSc Computer Graphics Lecture 11 Texture Mapping.
Introduction to 3D Graphics Lecture 6: Real-Time Rendering Anthony Steed University College London.
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
Computer Graphics Inf4/MSc Computer Graphics Lecture 9 Antialiasing, Texture Mapping.
3D Computer Graphics: Textures. Textures: texels Texture is a way of assigning a diffuse color to a pixel – can be with 1, 2 or 3D- can use maps, interpolation.
1 Texture. 2 Overview Introduction Painted textures Bump mapping Environment mapping Three-dimensional textures Functional textures Antialiasing textures.
Computer Graphics Inf4/MSc Computer Graphics Lecture 7 Texture Mapping, Bump-mapping, Transparency.
ECSE 4750: Computer Graphics Rensselaer Polytechnic Institute Nov 5, 2012 Texture and Texture Mapping.
Computer Graphics Texture Mapping
1 Texture Mapping ©Anthony Steed Overview n Texture mapping Inverse and Forward Mapping Bilinear interpolation Perspective correction n Mipmapping.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Texture Mapping.
1 SIC / CoC / Georgia Tech MAGIC Lab Rossignac Textures and shadows  Generation  Mipmap  Texture coordinates,
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS 1 Shading (Shading) & Smooth Shading Graphics.
09/09/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Event management Lag Group assignment has happened, like it or not.
Computer Graphics The Rendering Pipeline - Review CO2409 Computer Graphics Week 15.
Advanced Computer Graphics Advanced Shaders CO2409 Computer Graphics Week 16.
Computing & Information Sciences Kansas State University Lecture 10 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
CHAPTER 8 Color and Texture Mapping © 2008 Cengage Learning EMEA.
CS418 Computer Graphics John C. Hart
Vector Graphics Digital Multimedia Chap 이병희
Computing & Information Sciences Kansas State University Lecture 12 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
Image Space Rendering and Texturing ©Celine Loscos 2004 Anthony Steed 1999.
Painterly Rendering for Animation Introduction speaks of focus and detail –Small brush strokes focus and provide detail –Large strokes are abstract and.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Texture Mapping Greg Humphreys University of Virginia CS 445, Fall 2003.
Acquiring, Stitching and Blending Diffuse Appearance Attributes on 3D Models C. Rocchini, P. Cignoni, C. Montani, R. Scopigno Istituto Scienza e Tecnologia.
Texturing CMSC 435/ What is Texturing? 2 Texture Mapping Definition: mapping a function onto a surface; function can be: – 1, 2, or 3D – sampled.

- Introduction - Graphics Pipeline
Week 7 - Wednesday CS361.
CSE 167 [Win 17], Lecture 18: Texture Mapping Ravi Ramamoorthi
Week 7 - Monday CS361.
Texture Mapping cgvr.korea.ac.kr.
ATEC Procedural Animation
ATCM 3310 Procedural Animation
Graphics, Fall 2017 Lecture 24: Texture Mapping
So Far We have assumed that we know: The point The surface normal
Chapter 14 Shading Models.
3D Game Programming Texture Mapping
Procedural Animation Lecture 6: Mapping
ATCM 6317 Procedural Animation
Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
Computer Graphics Material Colours and Lighting
Chapter 14 Shading Models.
Advanced Computer Graphics: Texture
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Presentation transcript:

Surface Detail and Non-PhotoRealistic Rendering Lecture 3 (Rendering)

Section I: Surface Detail lSo far, we have assumed perfectly smooth, uniformly coloured surfaces. lThis is unrealistic. In reality surfaces are:  Multi-coloured (e.g. a painting, bottle label, page in a book), bumpy (e.g. almost every surface, few things are perfectly smooth), and textured (e.g. wood, leaves) Without Surface Detail With Surface Detail

Surface Detail Polygons lOverlay co-planar polygons (e.g. doors, windows) onto a base polygon (e.g. a wall). lIn visible surface determination, surface-detail polygons are ignored. lIn rendering, the surface-detail polygons take precedence over the base. lNot a serious contender. Only good for broad scale detail.

Basic Texture Mapping lA texture is simply an image (or a procedure for generating an image), with a 2D co-ordinate system. lEach 3D object is parametrized in 2D texture space. lPixels map to part of an object’s surface. lThat part of the surface maps to a portion of the texture. lCan be visualized as wrapping an image around an object.

Parametrizing a Primitive lParametrization:  Polygon: Assign co-ordinates to each vertex  Plane: Give -axis and -axis directions in the plane.  Cylinder: One axis goes up the cylinder, the other axis around.  Surface: Assign each parameter of a surface to and. (e.g. ) lOther Issues:  Sliding: The texture can be translated, rotated and scaled relative to a surface by an affine co-ordinate transformation of.  Seams: If the texture joins without visual discontinuity across opposite edges then repetition can be used to cover an entire object with a single small texture.  Interpolation: During polygon scan conversion care must be taken in interpolating texture co-ordinates. Have to compensate for perspective projection so that the texture is correctly foreshortened.

Sampling Issues lBasic approach assumes square texel (texture element) geometry. This produces poor visual results. lAlternative: Treat each texel (texture element) in a texture map as an (r,g,b) value at a point. lA projected pixel may: Cover Several Texels Fall between Texels (oversampling) (undersampling)

Handling UnderSampling lThe texture co-ordinates of the pixel’s centre are found. lThe value at this point in the texture map is a combination of surrounding texels. lInterpolation Methods: 1.Nearest neighbour: the pixel value is that of the nearest texel. [Fast with many artefacts] 2.Bilinear reconstruction: the pixel value is the weighted mean of the surrounding texels. [Reasonably fast but blurry] 3.Biquadratic reconstruction: use a quadratic function of distance to weight the mean [slower, good results] 4.Bicubic reconstruction [even slower, slightly better results]

Handling OverSampling lThere are several solutions if the pixel covers a large area of the texture: 1.Basic Area: Texels are treated as rectangles. Their contribution is weighted by the texel area covered by a pixel. 2.Filters: A filter (e.g. Gaussian) is used, centred on the pixel centre. Can be very expensive if a single pixel covers a large area of the texture map. 3.Multi-resolution Textures: Store multiple versions of the same texture at different resolutions. Use interpolation between maps to get pixel values. MIP Maps (Multum in Parvo – many things in a small space) are an efficient way to store these textures.

Summary lWhat can a texture map modify?  Any, or all, of the colour components  Transparency  reflectivity lProblems: 1.Veneer Effect: textures appear to be wall-papered onto the surface. Looks unrealistic in carved objects. 2.Seams: The match between the shape of a texture (rectangular) and object may cause visible distortion and seams. Classic case: a globe. 3.Bumpy surfaces: A lot of texture is caused by bumps on the surface.

Bump Mapping lThe surface normal is used in calculating both diffuse and specular reflection. lBump mapping modifies the direction of the surface normal so that the surface appears more or less bumpy. lA 2D function (bump map) can be used to vary the surface normal smoothly across the plane. lBut bump mapping doesn’t change the object’s silhouette. lDisplacement mapping fixes this by actually adjusting the position of vertices in polygonal fragments but it is very expensive.

Solid Textures lTexture mapping applies a 2D texture to a surface lSolid textures have colour defined for every point in space lPermits the modelling of objects that appear to be carved from a solid material (e.g. wood, marble). lSimplifies the mapping to texture space. lHowever, creating 3D texture maps cannot be done by hand. It requires procedural textures (e.g. fractals). From Perlin, K. “An Image Synthesizer”, SIGGRAPH 1985

Exercise: Procedural Textures lGiven the following functions:  lDesign the following procedural texture functions, taking a point and returning a colour : 1.A marble texture Marble consists of heterogeneous layers. The marble look derives from turbulent forces which create deformations before these layers solidify. Given: a colour ramp 2.A water texture Create a spherical wave front which emenates from a centre and perturbs the normal at a point towards the centre using a cycloidal function. Given: a specular water shader

Solution: Procedural Textures 1.Marble 2.Water

Section II: Non-PhotoRealistic Rendering and Animation lComputer Graphics has generally striven for heightened realism. lAn alternative: concentrate on the aesthetics of the image. lArtistic effects: loosely simulate oil or pastel paintings, or pen and ink illustrations. lAchieve artistic effects:  Variations in brush stroke size, direction, colour and texture allow abstraction (downplay artistically unimportant aspects), rhythm (sense of energy), focus (emphasize artistically important aspects) and mood. lBut must avoid:  Introducing too much noise or loosing coherence between frames of an animation.

‘What Dreams May Come’ l‘Painted world’ relying on 19 th C. art ranging from Germanic Romanticism to Stained Glass Impressionism. lRequirements: 1.Needed to allow interaction between actor and painted environment. 2.Didn’t want an image-based technique prone to a shower-door effect. Before VFX Post-Production After VFX Post-Production