jeromeetienne / AR.js

Efficient Augmented Reality for the Web - 60fps on mobile!
MIT License
15.79k stars 2.22k forks source link

Display aframe-ar.js scripts on jquery window #384

Closed osper66 closed 5 years ago

osper66 commented 6 years ago

Hello.

I'd like to call script susing aframe from my web app, but I couldn’t display this demo within jquery's window and still displayed webcam's image and not turned off this.

Without webcam option, I could display aframe on jquery window .

Could you tell me how to solve this?

Thanks for advance.

mnutsch commented 6 years ago

The AR.js library combines image recognition with Aframe to position an Aframe scene on top of a recognized target.

If you only want Aframe without the camera feed and image recognition, then follow the examples at: https://aframe.io/docs/0.8.0/introduction/

On Sun, Jul 22, 2018, 9:48 AM osper66 notifications@github.com wrote:

Hello.

I'd like to call script susing aframe from my web app, but I couldn’t display this demo within jquery's window and still displayed webcam's image and not turned off this.

Without webcam option, I could display aframe on jquery window .

Could you tell me how to solve this?

Thanks for advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jeromeetienne/AR.js/issues/384, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLZX05Jz6S2VAzQQ5ehIIGN9ZVLKuNVks5uJJDCgaJpZM4VaBZ0 .

osper66 commented 6 years ago

@mnutsch thanks for your comment.

I tried to display aframe on newly created tab in following code, but nothing displayed.

 var arTab = window.open ('about:blank');
 arTab.document.write("aframe test <a-scene embedded arjs></a-scene>");
osper66 commented 6 years ago

Hi.

I forgot to call aframe-ar related scripts, so I retry in following code. However browser returned error message "Webcam Error, Name: NotAllowedError, Message: Permission denied"

arTab.document.write("aframe test ");