Hello !

I am loading a .obj model (a car) and i am using the
EnviroBitmapMaterial to give to the car a nice metalic reflection.

I have to say that it is working like a charm and the result is really
beautiful.

The problem is that it is taking a lot of resources, and i would like
to know if it is possible to apply the EnviroMaterial only on some
faces ?

For example i would like to see the effect only on faces that are
higher than 10 pixels Y.

Is it possible to do that ?

Here is what i use to select faces higher that 10 Y pixels.
That work great.

fo.target = loader3d.model;
var flength = loader3d.model.faces.length;
for (var i:Number = 0; i<flength; i++) {
        var face:Face=loader3d.model.faces[i];
        if (face.maxY < 5){
                face.visible = false;
        }
}

Thank you for your time !

Reply via email to