--Load the static geometry ConsoleSource = LoadColladaSource("Content//Models//Console"); SwitchSource = LoadColladaSource("Content//Models//ConsoleSwitch"); PlaySource = LoadColladaSource("Content//Models//ConsolePlay"); LoadSource = LoadColladaSource("Content//Models//ConsoleLoad"); SetupSource = LoadColladaSource("Content//Models//ConsoleSetup"); QuitSource = LoadColladaSource("Content//Models//ConsoleQuit"); PracticeSource = LoadColladaSource("Content//Models//ConsolePractice"); --Load the Screen displays and Holograms whos textures are set by the ModeSelector HologramSource = LoadColladaSource("Content//Models//ConsoleHologram"); PracticeMainSource = LoadColladaSource("Content//Models//ConsoleMainScreen"); PracticeSideSource = LoadColladaSource("Content//Models//ConsoleSideScreen"); --Instance the geometry Console = CreateModel(ConsoleSource); Switch = CreateModel(SwitchSource); Play = CreateModel(PlaySource); Load = CreateModel(LoadSource); Setup = CreateModel(SetupSource); Quit = CreateModel(QuitSource); Practice = CreateModel(PracticeSource); Hologram = CreateModel(HologramSource); PracticeMain = CreateModel(PracticeMainSource); PracticeSide = CreateModel(PracticeSideSource); --Position the renderables Console.Position = Vector3(0, 0, 0); Hologram.Position = Vector3(0, 0, 0); Switch.Position = Vector3(0, 0, 0); Play.Position = Vector3(0, 0, 0); Load.Position = Vector3(0, 0, 0); Setup.Position = Vector3(0, 0, 0); Quit.Position = Vector3(0, 0, 0); Practice.Position = Vector3(0, 0, 0); PracticeMain.Position = Vector3(0, 0, 0); PracticeSide.Position = Vector3(0, 0, 0); --Add some ambient color to the screens HologramMaterial = Hologram.SourceData.DefaultMaterial; HologramMaterial.AmbientColor = Color(2, 10, 2); PracticeMainMaterial = PracticeMain.SourceData.DefaultMaterial; PracticeMainMaterial.AmbientColor = Color(20, 20, 30); PracticeSideMaterial = PracticeSide.SourceData.DefaultMaterial; PracticeSideMaterial.AmbientColor = Color(20, 20, 30); SetModeSelectorScreens(Hologram, PracticeMain, PracticeSide); --Position the Camera and Lights myCamera = GetModeSelectorCamera(); myCamera.Position = Vector3(5, 0, 1.75); myCamera.TargetPoint = Vector3(0, 0, 1); LookThroughCamera(myCamera); centerPos = Vector3(2, 0, 1.75); centerTar = Vector3(0, 0, 1.25); practicePos = Vector3(1.2, 1.1, 1.4); practiceTar = Vector3(0, 1.7, 1.25); setupPos = Vector3(5, 0, 1.75); setupTar = Vector3(0, 0, 1); SetModeSelectorCameraLocations(centerPos, centerTar, practicePos, practiceTar, setupPos, setupTar); SetLightDir(5, -1, 10); SetLightPower(1.0); SetLightAmbient(0.05); SetLightColor(Color(255,255,255));