Hello I want To Use Multiple Patterns With Different Ratio . Can Any One Help Me to Sort Out This . I Can Use Use Multiple Markers With Different Ratio But I Am Not Able To Use Multiple Markers With Dirrerent Ration .
Like Pattern One (Hiro) - HIRO ( Which has ratio of 0.50 by default),
Pattern Two (Custom QR Code) With Ratio 0.75 - PATTERN,
Tag <a-scene arjs="patternRatio: 0.75">
<a-marker type="pattern" preset="hiro" vidhandler="target: #vid1">
--------
<a-marker
type="pattern"
url="https://cdn.glitch.com/e85b316e-eed9-4e96-814e-d12630bc00df%2Fpattern-qr-code.patt?v=1577440081157"
vidhandler="target: #vid2"
>
Glitch : Multi Pattern Code
I think that actually it is not possible, because is not implemented. You could add as you did
patternRatioto the<a-scene>but this will add the same patternRatio to all markers in the scene. You could add PatternRatio to the a-marker component inside the component-anchor.js in this way:you should rebuild the lib before using, run:
npm installand thennpm run buildin the main AR.js folder. I have not tested the code so i can not sure that this code works. BTW it will be nice to add such a feature...