this.setRenderState(ms);
mynode.setRenderState(ms);
        private void convertToTriMesh() {            for (int i = 0; i < numOfObjects; i++) {                ASEObject object = (ASEObject) objectList.get(i);                Vector2f[] texCoords2 = new Vector2f[object.getTotalVertices()];                for (int j = 0; j < object.faces.length; j++) {                    int index = object.faces[j].vertIndex[0];                    texCoords2[index] = new Vector2f();                    texCoords2[index] =                        object.tempTexVerts[object.faces[j].coordIndex[0]];                    index = object.faces[j].vertIndex[1];                    texCoords2[index] = new Vector2f();                    texCoords2[index] =                        object.tempTexVerts[object.faces[j].coordIndex[1]];                    index = object.faces[j].vertIndex[2];                    texCoords2[index] = new Vector2f();                    texCoords2[index] =                        object.tempTexVerts[object.faces[j].coordIndex[2]];                }                int[] indices = new int[object.faces.length * 3];                int count = 0;                for (int j = 0; j < object.faces.length; j++) {                    indices[count] = object.faces[j].vertIndex[0];                    count++;                    indices[count] = object.faces[j].vertIndex[1];                    count++;                    indices[count] = object.faces[j].vertIndex[2];                    count++;                }                object.setIndexBuffer(0, BufferUtils.createIntBuffer(indices));                object.setTextureBuffer(0, BufferUtils.createFloatBuffer(texCoords2));                object.setModelBound(new BoundingBox());                object.updateModelBound();                this.attachChild(object);            }            for (int j = 0; j < numOfMaterials; j++) {                ASEMaterialInfo mat =                    (ASEMaterialInfo) materials.get(j);                if (mat.file.length() > 0) {                    MaterialState ms =                        DisplaySystem                            .getDisplaySystem()                            .getRenderer()                            .createMaterialState();                    ms.setEnabled(true);                    ms.setAmbient(                        new ColorRGBA(                            mat.ambient[0],                            mat.ambient[1],                            mat.ambient[2],                            1));                    ms.setDiffuse(                        new ColorRGBA(                            mat.diffuse[0],                            mat.diffuse[1],                            mat.diffuse[2],                            1));                    ms.setSpecular(                        new ColorRGBA(                            mat.specular[0],                            mat.specular[1],                            mat.specular[2],                            1));                    ms.setEmissive(new ColorRGBA(0, 0, 0, 1));                    ms.setShininess(mat.shine);                    this.setRenderState(ms);                }            }            for (int j = 0; j < numOfMaterials; j++) {                URL fileURL = null;                // Check if the current material has a file name                if (((ASEMaterialInfo) materials.get(j)).file.length()                    > 0) {                    String filename =                        ((ASEMaterialInfo) materials.get(j)).file;                    fileURL = ASEModelCopy.class.getClassLoader().getResource(filename);                    if (fileURL == null) {                        try {                            fileURL = new URL("file:" + filename);                        } catch (MalformedURLException e) {                            LoggingSystem.getLogger().log(                                Level.WARNING,                                "Could not load: " + filename);                            return;                        }                    }                    TextureState ts =                        DisplaySystem                            .getDisplaySystem()                            .getRenderer()                            .createTextureState();                    ts.setEnabled(true);                    Texture t=new Texture();                    t.setImageLocation("file:/"+filename);                    ts.setTexture(t);                    this.setRenderState(ts);                }            }        }