You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure this is a problem, but in SimpleVisualizationController.mm, I was getting cautions so renamed this method: - (void)buildProjectionMatrix:(Matrix33)cameraMatrix screenWidth:(int)screen_width screenHeight:(int)screen_height projectionMatrix:(Matrix44&) projectionMatrix
In ViewController.mm, frameSize is not correctly being evaluated and returns (0,0):
To fix this fast: Just change frameSize parameter to CGSizeMake(640,480) (which is the correct video dimensions as the entire project revolves around that resolution preset in VideoSource).
Activity
coryl commentedon Aug 20, 2016
I debugged the issue.
Not sure this is a problem, but in SimpleVisualizationController.mm, I was getting cautions so renamed this method:
- (void)buildProjectionMatrix:(Matrix33)cameraMatrix screenWidth:(int)screen_width screenHeight:(int)screen_height projectionMatrix:(Matrix44&) projectionMatrixIn ViewController.mm, frameSize is not correctly being evaluated and returns (0,0):
To fix this fast: Just change frameSize parameter to CGSizeMake(640,480) (which is the correct video dimensions as the entire project revolves around that resolution preset in VideoSource).
To fix this correctly: Implement a notification to get the correct frameSize when the camera is ready. The problem is in VideoSource.mm getFrameSize returning 0,0 because its not ready. Here is a link to implementing that notification: http://stackoverflow.com/questions/26175409/cmformatdescriptionref-and-cmvideoformatdescriptiongetdimensions