Camera freezing when using FlareNFT with FLARManager

411 Views Asked by At

I'm trying to run the example application from the FlarManager download. It worked first time using the FlarToolkit engine, but the webcam freezes if I change to the FlareNFT tracker. The only change I've made is to the onAdded function:

From this:

this.flarManager = new FLARManager("../resources/flar/flarConfig.xml", new FlarToolkitManager(), this.stage);

To this:

this.flarManager = new FLARManager("../resources/flar/flarConfig.xml", new FlareNFTManager(), this.stage);

When using the FlareNFTManager it compiles but freezes the camera feed. No errors are thrown, but the FlarManager event handlers are not triggered (e.g. onFlarManagerInited, onMarkerAdded, etc.).

2

There are 2 best solutions below

0
On

you have to make sure that the flare settings in the flarConfig.xml file are correct (i.e. check that all listed file are in place):

<trackerSettings>
        <flareSettings
            resourcesPath="../resources/flare/"
            cameraParamsFile="cam.ini">
            <nftSettings
                featureSetFile="featureSet.ini"
                framerate="30"
                multiTargets="false" />
        </flareSettings>

...

1
On

I had this problem too, and resolved it by putting the .lic file in placein the bin-debug folder when compiling the app. On a side note though - do you know how to create markers that flarNFT will recognize?