[java] private void intMaterials(){
tree=new Material();
tree = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);
tree.setTexture(“ColorMap”, assetManager.loadTexture(“Scenes/AndroRoom1/Tree2.png”));
tree.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);
}
private void loadLvL(){
Room = (Node)assetManager.loadModel("Scenes/AndroRoom1/AndroRoom1.j3o");
for(int i=0;i<Room.getQuantity();i++){
if(Room.getChild(i).getName().startsWith("Tree")){
Room.getChild(i).setMaterial(tree);
Room.getChild(i).setQueueBucket(RenderQueue.Bucket.Transparent);
}
}
rootNode.attachChild(Room);
}[/java]
hm…the tree is wrong way round…
its as the texcoords are not used… i even manipulatet the texcoords but it was always the same result
do i have to activate texcoords???