Need 2 renderstates for one object

hi again,



there are a few 3ds models that are made out of 2 parts (children). one needs a specific alphastate, the other one doesn't.

this one is neccessary for making the leafs transparent:

 final AlphaState l_astate = p_engine.getDisplay().getRenderer().createAlphaState();
      l_astate.setEnabled(true);
      l_astate.setTestEnabled(true);
      l_astate.setReference(0.0F);
      l_astate.setTestFunction(AlphaState.TF_GREATER);
      l_nodes[i].setRenderState(l_astate);



but the logs do not have an alpha-channel. if i use this alphastate, they are black. if i don't use it, the invisible parts between the leafs are black.
dilemma :(
i don't want to hardcore this (if (modelname.equals("....") ...). any elegant way to solve this?

export in a format that handles alphastates? :slight_smile: