예제 #1
0
 public OvrvisionTextureProcessor()
 {
     _ovr = new COvrvisionUnity();
     _ovr.useProcessingQuality = COvrvisionUnity.OV_CAMQT_DMS;
     _processorThread          = new ProcessorThread(this);
     _processorThread.Start();
 }
예제 #2
0
        public IEventProcessor Start()
        {
            if (Started)
            {
                return this;
            }

			foreach (var module in Configuration.Modules)
			{
				module.Initialize(this);
			}

	        Configuration.ProjectionService.AttemptInitialization(this);

			foreach (var eventProjection in _eventProjections)
            {
                var processorThread = new ProcessorThread(string.Format("EventQueue-{0}", eventProjection.Name),
                    new EventProjectionProcessor(this, eventProjection));

                processorThread.Start();

                _processorThreads.Add(processorThread);
            }

            _started = true;

	        return this;
        }
 public TxOVRVisionImageProcessor(TxKitEyes e)
 {
     _eyes = e;
     _ovr  = new COvrvisionUnity();
     _ovr.useProcessingQuality = COvrvisionUnity.OV_CAMQT_DMS;
     _processorThread          = new ProcessorThread(this);
     _processorThread.Start();
 }
예제 #4
0
        internal void Start(int id)
        {
            _Id = id;

            _Thread.SetProcessorAffinity(id % Environment.ProcessorCount);
            _Thread.Priority = ThreadPriority.Lowest;
            _Thread.Start();
        }
예제 #5
0
    public TxOVRVisionImageProcessor(TxKitEyes e)
    {
        _eyes = e;
        _ovr  = new COvrvisionUnity();
        _ovr.useProcessingQuality = COvrvisionUnity.OV_CAMQT_DMS;
        _processorThread          = new ProcessorThread(this);
        _processorThread.Start();

        for (int i = 0; i < 2; ++i)
        {
            _flipProcessor[i]              = new OffscreenProcessor();
            _flipProcessor[i].ShaderName   = "Image/FlipCoord";
            _flipProcessor[i].TargetFormat = RenderTextureFormat.ARGB32;
        }
    }