Giter VIP home page Giter VIP logo

Comments (2)

julapy avatar julapy commented on August 21, 2024

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.

vheun avatar vheun commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.