Camera freezing when using FlareNFT with FLARManager
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 t开发者_Go百科racker. 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.).
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>
...
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?
精彩评论