3ds model texture problem

i found some trees in 3ds format and loaded them. they needed to be rotated and are fine now - except for the textures. every model has 2 textures (tga). one (leafs) has an alpha channel, white is transparent, black is opaque. the other one has no alpha channel and should always be visible.

this

final AlphaState l_alphaState = p_display.getRenderer().createAlphaState();
        l_alphaState.setReference(0.0F);
        l_alphaState.setTestEnabled(true);
        l_alphaState.setTestFunction(AlphaState.TF_EQUAL);
        l_alphaState.setEnabled(true);


should do it, but the whole tree gets invisible.

here's an example:
http://telias.free.fr/zipsz/models_3ds/plants/tree06.zip

if i hardcode my own tga loader (i'm using jimi) into the 3ds-loader (was causing other bugs, i randomly hacked it in without understanding how the whole thing works), the alpha-test is done correctly. what's wrong?

Use this:



        final AlphaState l_alphaState = p_display.getRenderer().createAlphaState();

        l_alphaState.setReference(0.0F);

        l_alphaState.setTestEnabled(true);

        l_alphaState.setTestFunction(AlphaState.TF_NOTEQUAL);

        l_alphaState.setBlendEnabled(false);



Also, the trunk texture is RLE (run length encoded) which is why our TGA loader can not handle it.  I've uploaded a copy of the texture with normal encoding here:  http://www.renanse.com/jme/t_skin21.tga