Module: tfg.rendering.texture.mipmap
Stay organized with collections
Save and categorize content based on your preferences.
This module implements mip-mapping.
Mip-mapping is texture mapping with a multi resolution texture. The original
texture is downsampled at multiple resolutions. These downsampled images are
blended at each pixel to reduce aliasing artifacts. You may find more
information on mipmapping on https://en.wikipedia.org/wiki/Mipmap
In practice, you may use mip-mapping the same way as you use standard texture
mapping. You will see reduced aliasing artifacts when there are edges or other
high frequency details.
Texture mapping is the process of fetching values (e.g. colors) from an image or
tensor based on the (u, v) coordinates at each pixel (please see
https://en.wikipedia.org/wiki/Texture_mapping for more information on
texturing). You can find how the uv-coordinates map to textures exactly in the
documentation of the ops.
Functions
map_texture(...)
: Maps the texture texture_image using uv_map with mip-mapping.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-08-09 UTC.
[null,null,["Last updated 2021-08-09 UTC."],[],[],null,["# Module: tfg.rendering.texture.mipmap\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/texture/mipmap.py) |\n\nThis module implements mip-mapping.\n\nMip-mapping is texture mapping with a multi resolution texture. The original\ntexture is downsampled at multiple resolutions. These downsampled images are\nblended at each pixel to reduce aliasing artifacts. You may find more\ninformation on mipmapping on \u003chttps://en.wikipedia.org/wiki/Mipmap\u003e\n\nIn practice, you may use mip-mapping the same way as you use standard texture\nmapping. You will see reduced aliasing artifacts when there are edges or other\nhigh frequency details.\n\nTexture mapping is the process of fetching values (e.g. colors) from an image or\ntensor based on the (u, v) coordinates at each pixel (please see\n\u003chttps://en.wikipedia.org/wiki/Texture_mapping\u003e for more information on\ntexturing). You can find how the uv-coordinates map to textures exactly in the\ndocumentation of the ops.\n\nFunctions\n---------\n\n[`map_texture(...)`](../../../tfg/rendering/texture/mipmap/map_texture): Maps the texture texture_image using uv_map with mip-mapping."]]