05-06-2015, 05:04 PM
OK, so I implemented trilinear filtering, mipmap levels, and anisotropy. To use them you need to add 3 lines below to [Setup] section in colobot.ini:
These are very high settings so you can try lower values if game runs slowly. FilterMode=3 means trilinear filtering. Value 2 means bilinear filtering and 1 means nearest neighbour filtering. If they are not present, mode defaults to bilinear, mipmaps are set to 1 and anisotropy to 1. If your computer can't use specified anisotropy, it will use whatever the highest level it can.
Later we can add controls to options menu so we can change these settings in game. Textures have to be reloaded for this to work.
Code:
FilterMode=3
MipmapLevel=8
Anisotropy=16
These are very high settings so you can try lower values if game runs slowly. FilterMode=3 means trilinear filtering. Value 2 means bilinear filtering and 1 means nearest neighbour filtering. If they are not present, mode defaults to bilinear, mipmaps are set to 1 and anisotropy to 1. If your computer can't use specified anisotropy, it will use whatever the highest level it can.
Later we can add controls to options menu so we can change these settings in game. Textures have to be reloaded for this to work.
"After three days without programming, life becomes meaningless."
~The Tao of Programming
~The Tao of Programming