jsartoolkit5 icon indicating copy to clipboard operation
jsartoolkit5 copied to clipboard

Jttering of the model or mesh when tracking a NFT marker

Open kalwalt opened this issue 5 years ago • 6 comments

You notice that the model or mesh (sphere) without the @hatsumatsu trick interpolating the tracking matrices is flickering/moving a lot. Why this happens? Because we should apply after the tracking a filter to remove the 'noise' with the arFilterTransMat It was 'planned' to add in the first implementation of NFT in jsartoolkit5 in ARMarkerNFT.c The ARMArkerNFT.c is a modified and improved version of ARWrapper/ARMarkerNFT.c. Probably wasn't added for performances reasons. We could try to add this function in a future to test ( if are not threaded functions) and/or develop another one with gpu.js ? @nicolocarpignoli @ThorstenBux What do you think?

kalwalt avatar Jan 13 '20 16:01 kalwalt

The arFilterTransMat seems that not require threading, I think we can try. Starting from ARMarkerNFT.c i willl try to extract an utility function to apply a filter to the pose matrix. I have no a clear idea if I come to something fruitful, maybe it is only a test.

kalwalt avatar Jan 25 '20 16:01 kalwalt

I started to work on this subject in this branch https://github.com/kalwalt/jsartoolkit5/tree/filtering-feature

kalwalt avatar Jan 25 '20 17:01 kalwalt

I have a nice update! I will soon make a PR for this, in my opinino is better, but i would like to see what do you think...

kalwalt avatar Jan 27 '20 17:01 kalwalt

see PR #36

kalwalt avatar Jan 27 '20 17:01 kalwalt

@kalwalt that is a good one! I have been implementing also my own filters for my projects and they are doing okey, I shouldn't ask them for more actually. However my projects with AR.js NFT are demo only.

What of the things that I haven't been able to find out is if the noise filter parameters would change by the characteristics of the target image?

evaristoc avatar May 15 '20 20:05 evaristoc

As far as I see, this hasn't been merged yet. Any plans to do so?

juanapp avatar Sep 02 '20 23:09 juanapp