Model3dsBeforeReading3dsFile Event |
Namespace: Ab3d.Visuals
The BeforeReading3dsFile is useful if you want to set some special properties on the Reader3ds object before it reads the 3ds file.
The following examples shows the BeforeReading3dsFile event handler that sets custom shading and custom DefaultMaterial.
private void MyModel3ds_BeforeReading3dsFile(object sender, EventArgs e) { MyModel3ds.UsedReader3ds.Shading = Ab3d.Reader3ds.ShadingType.Flat; MyModel3ds.UsedReader3ds.DefaultMaterial = new DiffuseMaterial(Brushes.Green); }