I am using ARchitect and trackable2dObject array, and i m recognizing multiple images through my code and images recognized correctly, but after 2-3 recognization application crashes, i think its because ot not releasing trackable2dObject and AR object, so how to release it? or there is any other reason for crashing?
Please suggest me how to release trackable2d objects's array and Ar object?
r
rahul soni
said
over 10 years ago
trackable2DObjects.push , i push 3 images in it , it runs successfully in ipad but not in iphone? so please suggest me how to release this object in javascript? or any other issue?
r
rahul soni
said
over 10 years ago
IR mode, which uses more computing power (and battery power), is started whenever you create a Tracker. Thus make sure to call destroy() on the Tracker if you don?t require the IR instance anymore. If all Trackers are destroyed, IR mode is exited automatically.
So where and how can i call this destroy function?
I using this code, , so no image tracking is done ? and its right also because we destroy this object? so where i call this function? please suggest me?
// we need to pack the arrow animations into a parallel animation group to play them synchronisly
masterAnimationGroup = new AR.AnimationGroup(AR.CONST.ANIMATION_GROUP_TYPE.PARALLEL, ); }
W
Wolfgang Damm
said
over 10 years ago
please use ADE to investigate why the html is not loading. This should allows you to debug the javascript code.
Furthermore you will need to make a better decision when to destroy the tracker. Currently you are destorying it right after creating the trackable2dobjects. You must not destroy the tracker object while you want it to recognize any trackable2dobjects you created.
rahul soni