![]()  | 
  
    SLProject
    4.2.000
    
   A platform independent 3D computer graphics framework for desktop OS,  Android,  iOS and online in web browsers 
   | 
 
All video capturing and video tracking functions are in here. More...
#include <AppDemoSceneView.h>#include <AppCommon.h>#include <AppDemoSceneID.h>#include <SLScene.h>#include <SLSceneView.h>#include <CVImage.h>#include <CVCapture.h>#include <CVTracked.h>#include <CVTrackedAruco.h>#include <SLGLTexture.h>#include <CVCalibrationEstimator.h>#include <GlobalTimer.h>#include <Profiler.h>#include <FtpUtils.h>Go to the source code of this file.
Functions | |
| void | updateTrackingSceneCamera (CVCamera *ac) | 
| void | runCalibrationEstimator (CVCamera *ac, SLScene *s, SLSceneView *sv) | 
| void | ensureValidCalibration (CVCamera *ac, SLSceneView *sv) | 
| logic that ensures that we have a valid calibration state  More... | |
| bool | onUpdateVideo () | 
| Implements the update per frame for video update and feature tracking.  More... | |
Variables | |
| SLGLTexture * | gVideoTexture = nullptr | 
| CVTracked * | gVideoTracker = nullptr | 
| SLNode * | gVideoTrackedNode = nullptr | 
All video capturing and video tracking functions are in here.
Definition in file AppDemoVideo.cpp.
| void ensureValidCalibration | ( | CVCamera * | ac, | 
| SLSceneView * | sv | ||
| ) | 
logic that ensures that we have a valid calibration state
Definition at line 174 of file AppDemoVideo.cpp.
| bool onUpdateVideo | ( | ) | 
Implements the update per frame for video update and feature tracking.
This routine is called once per frame before any other update within the the main rendering loop (see: AppDemoMainGLFW::onPaint or GLES3View::onDrawFrame). See the documentation within SLCVTracked and in all of its inheritants.
Definition at line 227 of file AppDemoVideo.cpp.
| void runCalibrationEstimator | ( | CVCamera * | ac, | 
| SLScene * | s, | ||
| SLSceneView * | sv | ||
| ) | 
Definition at line 63 of file AppDemoVideo.cpp.
always update scene camera fovV from calibration because the calibration may have been adapted in adjustForSL after a change of aspect ratio! Attention: The active scene view camera may be a different one that the tracking camera but we have to update the tracking camera only!
Definition at line 51 of file AppDemoVideo.cpp.
| SLGLTexture* gVideoTexture = nullptr | 
Global pointer for the video texture defined in AppDemoLoad for video scenes It gets updated in the following onUpdateTracking routine
Definition at line 33 of file AppDemoVideo.cpp.
| SLNode* gVideoTrackedNode = nullptr | 
Global pointer to a node that from witch the gVideoTracker changes the pose. it gets updated in the following onUpdateTracking routine
Definition at line 43 of file AppDemoVideo.cpp.
| CVTracked* gVideoTracker = nullptr | 
Global pointer for a gVideoTracker that is set in AppDemoLoad for video scenes It gets updated in the following onUpdateTracking routine
Definition at line 38 of file AppDemoVideo.cpp.