Model texture will not change Transparent

ar-android
kudan
marker

#1

I have created AR with using Marker bases all are perfectly working fine , but can not change meshNode as a transparent

material2.setTransparent(true); will not work

here is my code

  private void addModelNode() 
{
    // Import model
    ARModelImporter modelImporter = new ARModelImporter();
    modelImporter.loadFromAsset("watch_obj.armodel");
    ARModelNode modelNode =  modelImporter.getNode();

    // Load model texture
    ARTexture2D texture2D = new ARTexture2D();
    texture2D.loadFromAsset("final.png");

    // Apply model texture to model texture material
    ARLightMaterial material = new ARLightMaterial();
    material.setTexture(texture2D);
    material.setAmbient(0.972f, 0.960f, 0.915f);

    //glass2
    /*ARColourMaterial colorMaterial = new ARColourMaterial();
    colorMaterial.setColour(new Vector3f(25.867f,25.867f,0.867f));*/
    
    //want transparent 
    ARLightMaterial material2 = new ARLightMaterial();
    material2.setTexture(texture2D);
    material2.setTransparent(true);
    material2.setAlpha(0.2f);
//        material2.setColour(0.972f,0.972f,0.972f);
    material2.setAmbient(0.867f,0.867f,0.867f);

        // Apply texture material to models mesh nodes
    for (ARMeshNode meshNode : modelImporter.getMeshNodes()) {

        if (meshNode.getName().equalsIgnoreCase("glass2")) // || meshNode.getName().equalsIgnoreCase("glass1")
        {
            //check node and apply transparent Material
            meshNode.setMaterial(material2);

        }else
        {
            meshNode.setMaterial(material);
        }

        meshNode.setMaterial(material);
        Log.e("meshNode",meshNode.getName());
    }

    modelNode.rotateByDegrees(90, 1, 0, 0);
    modelNode.scaleByUniform(150);

    // Add model node to image trackable
    trackable.getWorld().addChild(modelNode);
    modelNode.setVisible(true);

 }