texture mapping world object coordinates 2d 3d sources
play

Texture mapping World/object coordinates 2D/3D Sources : scanners, - PowerPoint PPT Presentation

Texture mapping World/object coordinates 2D/3D Sources : scanners, raytracers Mapping one object pixel to a texture pixel Object parameterization Planar map shape Planar map shape Planar map shape Cylindrical map shape Cylindrical map


  1. Texture mapping

  2. World/object coordinates

  3. 2D/3D

  4. Sources : scanners, raytracers

  5. Mapping one object pixel to a texture pixel

  6. Object parameterization

  7. Planar map shape

  8. Planar map shape

  9. Planar map shape

  10. Cylindrical map shape

  11. Cylindrical map shape

  12. Cylindrical map shape

  13. Spherical map shape

  14. Spherical map shape

  15. Spherical map shape

  16. Cube map shape

  17. Cube map shape

  18. What do we get from the texture?

  19. Parametric patches

  20. Parametric patches

  21. Parametric patches

  22. Parameterized cube

  23. Non-linear mapping

  24. Triangular meshes • One texture coordinate per vertex • Regular parameterization of the mesh • Requirements: – Continuous – Small angular deformations – Small area deformations – Covers the entire mesh – In practice: at most two

  25. Triangular mesh example

  26. Singularities (poles)

  27. Bump mapping

  28. Examples

  29. Bump mapping • Input = normal map (nx, ny, nz) • Local frame: – z = geometric normal – x,y = tangent, bitangent Follow the texture coordinates!

  30. Bump mapping • Example : note how blue ( z ) is dominant

  31. Bump mapping • Shading normal : local frame • Light, eye: global frame • Move everything to the same frame • [TBN]: transformation matrix – To inverse, or not to inverse? • Note: – textures in [0,1] 3 – normals in [-1,1] 3

  32. Bump mapping

  33. Displacement mapping

  34. Displacement mapping: how? • Not in the fragment shader – Except towards the inside? – Candidate for tesselation shader • Easier with other rendering methods – ray-tracing

  35. Relief textures • displacement mapping extreme case

  36. Relief textures • How? • Warp textures before mapping • Or follow rays in a height field • Polygons = convex hull

  37. Environment mapping

  38. Raytracing/Env. mapping

  39. Raytracing/Env. mapping

  40. Environment mapping • Texture = distant light • Parameterization: cube, sphere • Incoming ray + reflection = outgoing ray • Query texture in this direction

  41. Environment mapping Example environment map (spherical parameterization)

  42. Environment mapping

  43. Environment mapping • Can also work with refracted rays • Only one interface – huge approximation

  44. Environment mapping

  45. Environment mapping

  46. Aliasing

  47. Under-sampling

  48. Need pre-filtering

  49. Multiple samples per pixel

  50. Aliasing • Texture + distance = aliasing – Looks bad – Multi-sampling is not enough • Color textures: can pre-filter • Normal maps, height maps: – Pre-filtering doesn’t make sense – Open research problem

  51. 3d textures

  52. 3D parameterization

  53. Examples: distance to a plane

  54. Distance to a line

  55. Color ramps, sinus…

  56. Color-table

  57. Noise is useful

  58. Simplex noise • Same as gradient noise • Use a simplex instead of a cube • 3D: tetrahedron + gradient interpolation • Underlying structure is invisible http://en.wikipedia.org/wiki/Simplex_noise

  59. Frequency 8 16 32

  60. 5 octaves together Persistence = 0.5

  61. 5 octaves together Persistence = 0.2

  62. Noise • Parameters : – Number of octaves – Amplitude of first octave – Persistence: ratio amplitude octaves •Geometric sequence – Lacunarity: ratio of octave periods

  63. Noise • Often compared to salt in cooking • Only noise: not very good • 3D textures without noise: a bit bland • Combination textures 3D + noise – Really interesting

  64. Procedural textures

  65. Perturbations

  66. Procedural textures + noise • Not limited to color • Normals, material parameters... • Regular structure + a bit of noise – Wood, bricks, floor tiles... • Filtering / anti-aliasing : harder, but necessary

  67. Procedural textures for object definition

  68. All together...

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend