Render: setAnisotropicFiltering

setAnisotropicFiltering(level)
  • Sets the anisotropic filtering level used for textures.

Level:

  • Type: integer
  • Levels: 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 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 other techniques by reducing blur and preserving detail at extreme viewing angles.
       
    • A high anisotropic filter level uses more processor power. 
    Sample Code

    ################  set the anisotropic filtering level

    # import bge module
    import bge

    # get the render module
    rend = bge.render

    # anisotropic filter level
    level = 2

    # set the anisotropic filtering level
    rend.setAnisotropicFiltering(level)