3DS with transparent textures (jme 1.0)

Hello,



I've seen several different posts about this, none offering a clear solution. I am importing a 3D Studio Max file (.3ds) into my game, and the textures are coming through with large black squares around them (this is problematic because the reason these models are so low-poly is because they are able to use transparent textures).



The texture came referencing a TGA file. I then opened that in IrfanView and converted it to a GIF file with black as the transparency. I opened the model in Blender and reassigned the texture to my new GIF file, and that doesn't work either.



I have tried applying AlphaStates, I've tried setting the render queue to transparent, and I'm now at a loss.



Do any of you have an idea as to how to make these transparent textures work?

I just made a comment about a patch JOC wrote in another thread, here is the actual changes: http://code.google.com/p/jmonkeyengine/source/diff?spec=svn4094&r=4094&format=side&path=/trunk/src/com/jme/image/util/TGALoader.java



You could probably port those to your 1.0 (I don't think it will ever be committed to the 1.0 CVS…)

Ported and loaded in. Unfortunately, nothing.

I just SVN'd jME 2.0 and it has the same problem! Nothing is working! Stresss!



OK. jME v2.0 and this works:


BlendState as= this.getRenderer().createBlendState();
            as.setBlendEnabled(true);
            as.setSourceFunction(BlendState.SourceFunction.SourceAlpha);
            as.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha);
            as.setTestEnabled(true);
            as.setTestFunction(BlendState.TestFunction.Always);
            as.setEnabled(true);

Thanks Trussell, that really helped!  :smiley: