public static void Discreet3DSLoadOption() { // ExStart:Discreet3DSOption // The path to the documents directory. string MyDir = RunExamples.GetDataDir(); Discreet3DSLoadOptions loadOpts = new Discreet3DSLoadOptions(); // Sets wheather to use the transformation defined in the first frame of animation track. loadOpts.ApplyAnimationTransform = true; // Flip the coordinate system loadOpts.FlipCoordinateSystem = true; // Prefer to use gamma-corrected color if a 3ds file provides both original color and gamma-corrected color. loadOpts.GammaCorrectedColor = true; // Configure the look up paths to allow importer to find external dependencies. loadOpts.LookupPaths = new List<string>(new string[] { MyDir }); // ExEnd:Discreet3DSOption }
public static void Discreet3DSLoadOption() { // ExStart:Discreet3DSOption // The path to the documents directory. string dataDir = RunExamples.GetDataDir(); Discreet3DSLoadOptions loadOpts = new Discreet3DSLoadOptions(); // Sets wheather to use the transformation defined in the first frame of animation track. loadOpts.ApplyAnimationTransform = true; // Flip the coordinate system loadOpts.FlipCoordinateSystem = true; // Prefer to use gamma-corrected color if a 3ds file provides both original color and gamma-corrected color. loadOpts.GammaCorrectedColor = true; // Configure the look up paths to allow importer to find external dependencies. loadOpts.LookupPaths = new List <string>(new string[] { dataDir }); // ExEnd:Discreet3DSOption }