Пример #1
0
        /// <summary>
        /// Main Task Designer Form.
        /// </summary>
        public Form_TaskDesigner()
        {
            InitializeComponent();

            m_objectsToDraw = (StromoLight_RemoteDrawingList.DrawingList)Activator.GetObject(typeof(StromoLight_RemoteDrawingList.DrawingList), "tcp://localhost:8002/TaskDesignerConnection");
            m_prevHeight = this.numericUpDownObjectHeight.Value;
            
            Connect();
            //Set up getting tasks from server
            
            remote_DataManager = (Task_Remote_DataManager)Activator.GetObject(typeof(Task_Remote_DataManager), TCPProcessor.BuildServerRemotingString(8005,"TaskRemoteDataManagerConnection"));
            
            //make the default task
            _defaultTask = new Task();
            Corridor corridor = new Corridor(-1.5f, 0.0f, 4.0f, 1.5f, 6.0f, -500.0f);
            _defaultTask.ObjectList.Add(corridor);
           
        }
Пример #2
0
        private void InitialiseScene()
        {
            _remoteDrawingList.Clear();
            _remoteDrawingList.VisualiserController.DrawCollisionModels = false;
            avatar.Z = 0.0f;

            Corridor corridor = new Corridor(-1.5f, 0.0f, 4.0f, 1.5f, 6.0f, -500.0f);

           _remoteDrawingList.Add(corridor);
#if(DEBUG)
           {
               _remoteDrawingList.VideoBackground = new VideoBackground(@"C:\Users\mag501\Desktop\DemoPathStablised\Augmented");

               

               //m_VideoTextureManager = new VideoBackground("C:\\Users\\mag501\\Desktop\\Path1JPEG");
               //m_VideoTextureManager.Start();
           }
#endif
        }