2

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.).

rlayte
  • 538
  • 4
  • 12

2 Answers2

0

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>

...

Kai Zimmer
  • 1,194
  • 1
  • 8
  • 3
0

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?

mheavers
  • 29,530
  • 58
  • 194
  • 315
  • 1
    FlareNFT is a proprietary product so you need to send them the images you want to use and they convert them to pattern files. The licence is a little expensive, but if you were using AR for any commercial projects you'd need to pay for the original AR library anyway so it's not a great deal more on top of that. – rlayte Jun 16 '11 at 10:09