CSCI 440.  So far we have learned how to  build shapes  create movement  change views  add simple lights  But, our objects still look very cartoonish.

Slides:



Advertisements
Similar presentations
CSE 781 Anti-aliasing for Texture Mapping. Quality considerations So far we just mapped one point – results in bad aliasing (resampling problems) We really.
Advertisements

Normal Map Compression with ATI 3Dc™ Jonathan Zarge ATI Research Inc.
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.
Week 7 - Wednesday.  What did we talk about last time?  Transparency  Gamma correction  Started texturing.
Week 9 - Wednesday.  What did we talk about last time?  Fresnel reflection  Snell's Law  Microgeometry effects  Implementing BRDFs  Image based.
(conventional Cartesian reference system)
Hofstra University1 Texture Motivation: to model realistic objects need surface detail: wood grain, stone roughness, scratches that affect shininess, grass,
Texture Mapping April 9, The Limits of Geometric Modeling Although graphics cards can render over 10 million polygons per second, that number.
University of New Mexico
CS 4731: Computer Graphics Lecture 17: Texturing Emmanuel Agu.
GPU Graphics Processing Unit. Graphics Pipeline Scene Transformations Lighting & Shading ViewingTransformations Rasterization GPUs evolved as hardware.
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
Texture Mapping. 2 The Limits of Geometric Modeling Although graphics cards can render over 10 million polygons per second, that number is insufficient.
Basic Graphics Concepts Day One CSCI 440. Terminology object - the thing being modeled image - view of object(s) on the screen frame buffer - memory that.
GPU Programming Robert Hero Quick Overview (The Old Way) Graphics cards process Triangles Graphics cards process Triangles Quads.
Computer Graphics Texture Mapping Eriq Muhammad Adams
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
11/11/04© University of Wisconsin, CS559 Fall 2004 Last Time Shading Interpolation Texture mapping –Barycentric coordinates for triangles.
Lecture 3 : Direct Volume Rendering Bong-Soo Sohn School of Computer Science and Engineering Chung-Ang University Acknowledgement : Han-Wei Shen Lecture.
Texture Mapping. Scope Buffers Buffers Various of graphics image Various of graphics image Texture mapping Texture mapping.
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.
Texture Mapping Course: Computer Graphics Presented by Fan Chen
Mapping method Texture Mapping Environmental mapping (sphere mapping) (cube mapping)
UW EXTENSION CERTIFICATE PROGRAM IN GAME DEVELOPMENT 2 ND QUARTER: ADVANCED GRAPHICS Textures.
Interactive Time-Dependent Tone Mapping Using Programmable Graphics Hardware Nolan GoodnightGreg HumphreysCliff WoolleyRui Wang University of Virginia.
09/09/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Event management Lag Group assignment has happened, like it or not.
Week 2 - Friday.  What did we talk about last time?  Graphics rendering pipeline  Geometry Stage.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
OpenGL Conclusions OpenGL Programming and Reference Guides, other sources CSCI 6360/4360.
1 Introduction to Computer Graphics SEN Introduction to OpenGL Graphics Applications.
More on Advanced Interfaces, Image Basics Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Friday, November 21, 2003.
Tone Mapping on GPUs Cliff Woolley University of Virginia Slides courtesy Nolan Goodnight.
Computer Graphics 2 Lecture 7: Texture Mapping Benjamin Mora 1 University of Wales Swansea Pr. Min Chen Dr. Benjamin Mora.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CHAPTER 8 Color and Texture Mapping © 2008 Cengage Learning EMEA.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Chris Mayer & Nic Shulver Hidden Surface Wire frame drawings Wire frame drawings are quick to produce but are often confusing It is difficult to determine.
Texture Mapping May 4, Many slides are borrowed from UNC-CH COMP236 Course (Spring 2003) taught by Leonard McMillan
09/16/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Environment mapping Light mapping Project Goals for Stage 1.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Computing & Information Sciences Kansas State University Lecture 12 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
Graphics Graphics Korea University 1 Jang Sumi Texture Mapping Environment Mapping Stencil Buffer.
1 Graphics CSCI 343, Fall 2015 Lecture 25 Texture Mapping.
Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Texture Mapping. For Further Reading Angel 7 th Ed: ­Chapter 7: 7.3 ~ 7.9 Beginning WebGL: ­Chapter 3 2.
CSc4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Texture Mapping.
Image Fusion In Real-time, on a PC. Goals Interactive display of volume data in 3D –Allow more than one data set –Allow fusion of different modalities.
Texturing Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
Ying Zhu Georgia State University
Week 7 - Wednesday CS361.
University of New Mexico
Buffers and texture mapping
Computer Graphics Texture Mapping
Week 7 - Monday CS361.
Texture Mapping cgvr.korea.ac.kr.
Graphics Processing Unit
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Chapters VIII Image Texturing
Interactive Graphics Algorithms Ying Zhu Georgia State University
Static Image Filtering on Commodity Graphics Processors
Real-time Rendering Shadow Maps
(c) University of Wisconsin, CS 559
Texture Mapping Ed Angel Professor Emeritus of Computer Science
OpenGL Texture Mapping
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Presentation transcript:

CSCI 440

 So far we have learned how to  build shapes  create movement  change views  add simple lights  But, our objects still look very cartoonish.  mostly because they lack detail  For more detail, we need to deal with individual pixels, not just big shapes.  so, we move from the vertex shader to the fragment shader.

 All four are the "frame buffer".  Front and Back are typically 32 bits per pixel  8 bits for each of RGBA  Programmer usually sees the frame buffer as a black box.  reading frame data is possible, but contrary to the pipeline

 CPU memory  GPU memory  frame buffer  arrays of vertex data, normals data, …  Texture memory  stored on GPU

 To create a realistic shape, we either need to  A - use a lot of surfaces  B - make the few surfaces look complex  B is more manageable  done in pipeline as part of fragment processing  texture mapping is part of WebGL  standard hardware for most GPUs  bump mapping can be done in the fragment shader

 Texture Mapping  an image influences the color of pixels  image could be a photo, generated pattern, …  Environment Mapping  used to simulate very shiny surfaces  texture of another nearby surface is merged with the shiny surface  Bump Maps  create irregular surfaces by altering the normal vectors

 texel  a texture pixel  texture coordinates  [ s, t ]  range from 0.0 to 1.0  texture map  how points on the surface map to points on the texture

Angel figure 7.5

Angel figure 7.7

 Point Sampling  use the texel closest to the center of the pixel  simple (fast), but creates visible aliasing errors  Linear Filtering  weighted average of neighboring texels Angel figure 7.16

 The size of the pixel may be larger or smaller than the texel. So, we may need to magnify or minify. gl.texParameter(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST); gl.texParameter(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);

 Suppose we have a small distant object textured with a big image. Mapping that huge picture to a tiny surface will look terrible and take a lot of GPU time.  Suppose the opposite. We have a small texture, but the surface has gotten really close, so we see lots of detail.  We can use levels of textures.  64x64, 32x32, … 1x1 Mipmap  That is called a Mipmap.

wikipedia.org

 Nearest_Mipmap_Nearest  point sample with closest mipmap  Nearest_Mipmap_Linear  linear filtering within the closest mipmap  Linear_Mipmap_Nearest  point sampling using filtering between mipmaps  Linear_Mipmap_Linear  linear filtering of linear filtered mipmaps

 Texture code