IScene myScene = new Scene(); // Create a new scene myScene.AddObject(new Model("tree.obj")); // Add a 3D model to the scene myScene.AddObject(new Light(LightType.Directional)); // Add a directional light to the scene myScene.SetAmbientLight(Color.Gray); // Set the ambient light to gray
IScene myScene = new Scene(); // Create a new scene myScene.AddObject(new Model("car.obj")); // Add a 3D car model to the scene myScene.AddObject(new Camera()); // Add a camera to the scene myScene.SetBackgroundColor(Color.Black); // Set the background color of the scene to blackThis example creates a new scene and adds a 3D car model and a camera to the scene. It also sets the background color of the scene to be black.