Transparency

I am trying to load a bush model i made in blender that has transparency.

I cant get transparency to work though. All i'm getting is black quads around the the leaves.

here is the code i am using:

BlendState as = display.getRenderer().createBlendState();
        as.setBlendEnabled(true);
        as.setSourceFunction(BlendState.SourceFunction.SourceAlpha);
        as.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha);
        as.setTestEnabled(true);
        as.setTestFunction(BlendState.TestFunction.GreaterThanOrEqualTo);
        as.setEnabled(true);
        n.setRenderState(as);

For me transparency in blender translates just fine to jme2 with obj and I think also with OgreXML with export settings set to "render materials".

what settings do you use when exporting in blender as obj?

I got it to work!  :wink:

It was just that certain model that was not working correctly.

thanks