1 / 13

COMPUTER GRAPHICS

COMPUTER GRAPHICS. CS 482 – FALL 2014. OCTOBER 6, 2014. TEXTURE MAPPING. TEXTURES BUMP MAPPING ENVIRONMENT MAPPING PROCEDURAL TEXTURING. TEXTURES. BASICS. Mapping a pattern onto the objects’ surfaces can greatly enhance the scene’s appeal and/or realism. CS 482 – FALL 2014.

ogden
Download Presentation

COMPUTER GRAPHICS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COMPUTER GRAPHICS CS 482 – FALL 2014 OCTOBER 6, 2014 TEXTURE MAPPING • TEXTURES • BUMP MAPPING • ENVIRONMENT MAPPING • PROCEDURAL TEXTURING

  2. TEXTURES BASICS Mapping a pattern onto the objects’ surfaces can greatly enhance the scene’s appeal and/or realism. CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 149

  3. TEXTURES UV COORDINATES One approach to texture mapping directly maps the 2D texture coordinates (called UV SPACE) into the 3D world space coordinates. Spherical Mapping Planar Mapping Cylindrical Mapping CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 150

  4. TEXTURES TILING When the surface being textured is much larger than the image being mapped, it is possible to tile the image repeatedly over the surface. Care must be taken to develop images that do not produce discernible seams or patterns when tiled. The seams and patterns are more noticeable in the tiled hedge image on the left than the one on the right. CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 151

  5. BUMP MAPPING ADJUSTING NORMAL VECTORS To add more realism to a texture-mapped image, an additional action, known as a bump mapping, can be applied to the object’s surface. Applying the texture to this surface, while computationally expensive, produces a sense of depth far superior to simple texture mapping. Bump mapping (left) alters the surface’s normal vector, while displacement mapping (right) alters the surface itself. CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 152

  6. BUMP MAPPING INTACT SILHOUETTE Bump mapping basically applies a pattern of perturbations to the normal vectors on the surface of the object being rendered.  = When an illumination model (e.g., Phong shading) is applied with these altered normal vectors, the appearance of a rich, detailed texture results. CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 153

  7. BUMP MAPPING DISPLACEMENT MAPPING Displacement mapping, which actually alters the object’s underlying grid to implement the 3D surface details, eliminating the silhouette inconsistencies, but greatly increasing the processing cost. CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 154

  8. ENVIRONMENT MAPPING SPHERICAL MAPPING To produce an effect that appears like 3D reflection, environment mapping projects the surrounding environment onto a 2D image and then texture maps that result onto the “reflective” object. With spherical mapping, The entire environment is mapped to a radius-one disk (the front to the inner core of the disk and the rear to the outer ring). Cross-section of environment, with front on the right and rear on the left Bad news: The entire perimeter of the sphere map is mapped to a “singularity” on the far side of the object. CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 155

  9. ENVIRONMENT MAPPING LATITUDE MAPPING With latitude mapping, The sphere is treated like a globe and mapped from 3d to 2d via longitudes and latitudes. Bad news: There is still a seam where the left and right edges of the texture map meet when mapped to the object. CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 156

  10. ENVIRONMENT MAPPING CUBE MAPPING In Cube Mapping, Six textures are created from each positive and negative Cartesian direction surrounding the object. Bad news: Particular facets of the object might require up to three renderings (e.g., front, right, and bottom) to ensure that all faces hit by the reflection rays are displayed. CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 157

  11. PROCEDURAL TEXTURING PERLIN NOISE Certain textures in nature (clouds, marble, streams, etc.) tend to follow a pseudorandom pattern that may be simulated by means of noise functions. A set of pseudorandom values are generated at set intervals. A continuous curve is generated by smoothly interpolating between these values. Several curves like this are generated, each with certain restrictions on the amplitude (the difference between the minimum and maximum values generated) and the wavelength (the interval gap). Summing these curves yields the final noise function. CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 158

  12. PROCEDURAL TEXTURING NOISE TEXTURES Extending the generating of a noise function to two dimensions yields interesting and useful textures. + + + + + = CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 159

  13. PROCEDURAL TEXTURING TEXTURE SYNTHESIS To synthesize a larger image that follows the same pattern as a given smaller image, start with a noisy image of the desired size. Replace each pixel in the new image by looking at its already colored neighbors, finding a pixel in the original image with the closest pattern of neighbors, and coloring the new pixel with that old pixel’s color. CS 482 – FALL 2014 OCTOBER 6, 2014: TEXTURE MAPPING PAGE 160

More Related