supereggbert / aframe-htmlembed-component

HTML Component for A-Frame VR that allows for interaction with HTML in VR. Demo https://supereggbert.github.io/aframe-htmlembed-component/dist/examples/index.html
MIT License
196 stars 41 forks source link

Not working with arjs inside a-marker #28

Open dev-mohib opened 2 years ago

dev-mohib commented 2 years ago

I want to use html inside a-scene for web ar. This library works as usual but not showing the contenet between `

An Example

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

` According to the arjs documentation https://ar-js-org.github.io/AR.js-Docs/marker-based/ I would really appreciate if anyone has alternative solution for this is problem

giaaaacomo commented 2 years ago

I want to use html inside a-scene for web ar. This library works as usual but not showing the contenet between <a-scene> <a-marker> <a-entity htmlembed> <h1>An Example</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </a-entity> </a-marker> </a-scene> According to the arjs documentation https://ar-js-org.github.io/AR.js-Docs/marker-based/ I would really appreciate if anyone has alternative solution for this is problem

did you find a way to work it out?

val14-98 commented 2 years ago

Hello, @giaaaacomo @dev-mohib did you find a solution ?

giaaaacomo commented 2 years ago

Hello, @giaaaacomo @dev-mohib did you find a solution ?

what i'm doing now is creating a screenshot of the rendered html page (there are many tools for that, like https://github.com/microweber/screen or https://github.com/maaaaz/webscreenshot, and more, or some external paid services) server side, saving it as image.png on the server, then loading https://your.server.url/image.png as a-entity.

basically i'm doing what this lib does, but externally. of course you need a server that you can control via ssh to install the needed packages, so services like github pages won’t work