Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed and Extended 1.5.1 Build #246

Closed
chrigi opened this issue Nov 16, 2017 · 9 comments
Closed

Fixed and Extended 1.5.1 Build #246

chrigi opened this issue Nov 16, 2017 · 9 comments

Comments

@chrigi
Copy link

chrigi commented Nov 16, 2017

Hello

As there were quite a few issues/improvements we needed for our project and the relevant pull requests (#212 and #168) are not merged yet, I merged them myself and rebuilt the 1.5.1 version including these fixes. Some of you might be interested in a simple release build so I have attached my fixed version.

This version fixes:

  • Custom Markers
  • Portrait Mode on mobile phones

This version adds:

  • A 'marker-found' and 'marker-lost' event which is thrown by the a-marker component

Notes regarding custom pattern that I found helpful:

  • Beside type="pattern" on your a-marker you will need to use url= and not patternurl=.
  • Your Marker needs a white or almost white background (we used (254, 254, 254)). If you have a transparent background, the generator will generate an incorrect .patt file.

Notes regarding the new events:

(I know this is not a technically a bug but I though this might help some people turning to the issue tracker looking for help)
(Had to attach .txt to the files otherwise I could not upload them)

aframe-ar.js.txt
aframe-ar.min.js.txt
ar.min.js.txt
ar.js.txt
babylon-ar.min.js.txt
babylon-ar.js.txt
artoolkit-webvr-polyfill.min.js.txt
artoolkit-webvr-polyfill.js.txt

@javismiles
Copy link

javismiles commented Nov 16, 2017 via email

@chrigi
Copy link
Author

chrigi commented Nov 17, 2017

@javismiles No, the custom marker fix I marged was #168 so not exactly your code. Your code would require type="custom" which unneccesary as there is already type="pattern" documented.

I'm sorry but I can't help you with your other issues.
I would also be interested in the click handling but I've only found #148 and that there is a "arjs-hit-testing" variable you can set but I thing regarding the hit-testing I might misunderstand the use.

@thehellrider
Copy link

Is it possible to trigger a sound when marker is detected and stop it when marker is lost using the event listener?

@letoast
Copy link

letoast commented Nov 29, 2017

Sorry, but why was this set as invalid?

@germanviscuso
Copy link

Is this merged into the latest AR.js. i.e. can we expect the latest AR.js version to fire 'marker-found' and 'marker-lost'?

@chrigi
Copy link
Author

chrigi commented May 31, 2018

I just checked the changes made since I posted this modified version.
It looks like the portrait fix and the custom marker fix were both merged into the code a while ago. Thanks a lot 😄

The only thing still not merged are the events. There is an older pull request: #303 which sadly has conflicts.

@EBKH
Copy link

EBKH commented Jun 6, 2018

@chrigi You said that 'the portrait fix' is merged, but it doesn't seem to work; Could you tell me in which doc or function a change is needed?

@chrigi
Copy link
Author

chrigi commented Jun 6, 2018

@EBKH I think I just merged the changes I mentioned in my first post here: #212

@EBKH
Copy link

EBKH commented Jun 6, 2018

@chrigi I had check that out, and also the whole aframe-ar.js until artoolkit.setup() (which I can't find what it does)
The app is here, and some markers 1, 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants