masked colour images tip

Blitz3D Forums/Blitz3D Programming/masked colour images tip

MadJack(Posted 2005) [#1]
This tip might be of use to someone (or maybe it's already common knowledge?), but anyway..

Been developing an app which uses masked PNG textures(loadtexture s$,2) on quads to function as buttons.

The buttons were showing their full texture colours on my ATI Radeon9800. On the target machine (some oddball ATI on-board thingy, relatively new) the textures were monochrome - the textures were displayed, but were the colour of the quad mesh.

Had to set the extra flag +1 to the loadtexture commands to have the textures appearing in full-colour. Loadtexture(s$,2+1)

This might be of use to someone...feel free to tell me I'm a damn fool and should have known this already.


Ross C(Posted 2005) [#2]
Well, the 1 indicates the texture should be loaded in colour. IF you use:

ClearTextureFilters()


It should disable any texture flags that blitz defaultly sets. Blitz by default uses texture flags 1 and 8, colour and mipmapping :o)