Render: getAnisotropicFiltering

getAnisotropicFiltering()
  • Returns the anisotropic filtering level used for textures.

Return Type:

  • integer
  • Returns: 1, 2, 4, 8 or 16
  • 1 is the lowest level of anisotropic filtering.  
  • 16 is the highest level of anisotropic filtering.
Note:
  • Anisotropic Filtering (AF) enhances the image quality of textures that are at an angle with respect to the camera.
     
  • Anisotropic filtering does not filter the same in every direction.
     
  • Anisotropic filtering eliminates aliasing effects, but improves on these other techniques by reducing blur and preserving detail at extreme viewing angles.
     
  • Using anisotropic filtering uses more processor power. 
     
  • Your game/computer must have Anisotropic Filtering (AF) enabled.
Sample Code

################  get the anisotropic filtering level

# import bge module
import bge

# get the render module
rend = bge.render

# get the anisotropic filtering level
level = rend.getAnisotropicFiltering()