English subtitles

← Procedural Textures - Interactive 3D Graphics

Get Embed Code
2 Languages

Showing Revision 2 created 05/25/2016 by Udacity Robot.

  1. We've shown how an image texture can be applied to a model. However, these
  2. sorts of mappings are only skin deep. If we carve away any part of the object,
  3. the fact that a 2D texture is getting used is revealed. What we'd like is
  4. something that's more like a real material. The solution is to create a 3D
  5. texture that fills space. One way to define this texture is to actually create
  6. something like a stack of images. Unfortunately 3D textures are not yet
  7. available in WebGL. My guess is wait a year. Another method is to make a
  8. function that takes in a point on a surface and gives back a color. If you
  9. think about it, these are equivalent in intent. Using images also takes in a 3D
  10. point and gives back a color. Each approach has its strengths and weaknesses.
  11. Functions have an unlimited resolution compared to textures, but you also have
  12. to be careful to filter their results. While I'm at it, I should mention you
  13. can shade points on surfaces however you want with a fragment shader program.
  14. Here's an example of animated procedural textures in use. These examples are 2D
  15. functions. They don't fill space, but show how elaborate effects can be
  16. computed on the fly in the fragment shader.