Mip Map in Blitz3D

Blitz3D Forums/Blitz3D Beginners Area/Mip Map in Blitz3D

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you have this command -
ClearTextureFilters()

then the filters will be removed and mip-mapping is turned off.

If you want to turn it back on again, use this command -
TextureFilter "",1+8


What it does is - filter 1 is for COLOR (ie. you need that anyway) and filter 8 is for MIP-MAPPING. You can add additional filters to the list if you want - have a look in the help section for the TextureFilter command to see what's available.

Remember that once the filters are on they cannot be switched off unless you use the ClearTextureFilters command, so if you want to load different models / textures with different filters, you will need a layout sort of like this -
ClearTextureFilters()
TextureFilter "",1
;load non mip-mapped textures here

ClearTextureFilters()
TextureFilter "",1+8
;load mip-mapped textures here

etc..


TextureFilter "",1+8 is the default setting, so unless you tell the program otherwise, mip-mapping should always be turned on for any loaded model or texture.

Hope that is helpful.
James