The fonts need re-processing for some reason. I think something was changed in the engine and broke order projects @ray Can you think of anything that has changed recently that would break older projects?
I have a feeling that some font assets that were imported a long time ago might not work with the latest engine. I haven’t seen this error in a long time, but I have a sneaky suspicion you just have to re-import the TTF and it’ll be fine again.
@yaustar - the new font asset version PR hasn’t been merged - so it can’t be causing this issue - however, the font asset loading code: https://github.com/playcanvas/engine/blob/master/src/resources/font.js does look like it supports older font asset versions - so maybe there is a bug in this versioning code? (Github’s Blame feature can help identify the person to ask )
I’ve tried AR Toolkit 5 / PlayCanvas NFT examples, and it seems like detection performance is much poorer than their ThreeJS integration. Basically, from my measurements getNFTMarker event gets fired only 2 - 3 times per second, while ThreeJS works pretty well in realtime (see NFT marker example with Three.js + pinball test image).
Has anybody experienced the same issue and / or tried to fix it? Would be happy to have a chat. Cheers!
When using official artoolkit.min.js build + updated PlayCanvas AR script with NFT markers - it throws error that loadNFTMarkerEX function isn’t found. That’s expected, because NFT feature requires loading multiple marker data files (.fset, .iset, .fset3) from a path which is problematic with PlayCanvas, so @dyangrun proposed a fix: https://github.com/playcanvas/playcanvas-ar/issues/6
But turns out artoolkit.min.js version with added loadNFTMarkerEX is extremely slower on all markers and detection modes. I simply tested them side by side against matrix markers and hiro markers as well.
So seems like this modified artoolkit.min.js with added loadNFTMarkerEX is problematic. Someone probably recompiled it with wrong flags or modified it improperly (since it’s 1.53MB vs 1.19MB original) and now it’s used by all other PlayCanvas NFT projects:
Maybe artoolkit was compiled for debug, not release. 10 times speed boost for release. Bigger filesize would also suggest that. You can find out by checking if some asserts are present (mentioned here: https://github.com/Carnaux/NFT-Marker-Creator/issues/81)