Comments (2)
hey @vheun,
the ofxiOSVideoPlayer has a method where you can check if a new frame is available.
im not sure if there is a way of preventing ofxQCAR from drawing a frame...
you might be able to prevent the frame buffer from being cleared?
maybe draw everything into a FBO and only update the FBO only when a new video frame is available..?
from ofxqcar.
I solved it with a small hack. I assume that your hands never stand still and therefore every model view matrix contains entirely new values. Therefore when two matrices have identical values there is no new content. Just taking one number out of all the 16 is enough to test for that.
if(QCAR.numOfMarkersFound()>0) {
if(matrixOld == matrixTemp[0]._mat[0][0]) {
updateDraw = false;
}else{
updateDraw = true;
}
matrixOld = matrixTemp[0]._mat[0][0];
}else{
updateDraw = true;
}
if(updateDraw) {
renderContent();
}
from ofxqcar.
Related Issues (12)
- How to change makers target? HOT 1
- How to detect 2 or more markers? HOT 1
- vuforia-sdk-ios-1-5-8 HOT 1
- Can't color strings HOT 4
- ofxiOSEAGLView.h not found and no member named isRetinaEnabled HOT 1
- NOT SOLVED - ofxiOSEAGLView.h not found and no member named isRetinaEnabled HOT 6
- Far boundary value of the GL_PROJECTION matrix is too low (?) HOT 1
- vuforia for android HOT 3
- pause, resume and *stop* HOT 2
- iPhone 6+ scale issue
- orientation left and right
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxqcar.