view 3D and AR with model-viewer

Welcome! Forums Unity Plugins In-App Web Browser view 3D and AR with model-viewer

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1804
    FabioTG
    Participant

    Hi there!

    Is it possible to load 3D and AR inside the In-App Web Browser ?

    Regards,

    Fabio

    #1805
    PiotrPiotr
    Keymaster

    Hi,
    What do you want to load exactly? WebGL?

    #1806
    FabioTG
    Participant

    Hi!

    I load these scripts:
    <script type=”module” src=”https://unpkg.com/@google/model-viewer/dist/model-viewer.js”></script&gt;
    <script nomodule src=”https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js”></script&gt;

    and this code:
    <model-viewer ar preload camera-controls auto-rotate poster=”assets/poster-shishkebab.png” src=”https://www.olo.promo/webAR/assets/tamp.glb&#8221; ios-src=”apple-watch-series-5.usdz” alt=”A 3D model of an astronaut.”></model-viewer>

    #1809
    FabioTG
    Participant

    Hi Piotr!

    Did you get that I want to load?
    3D using model-viewer.
    Could you please try my code to see if it works?

    Best regards

    #1812
    PiotrPiotr
    Keymaster

    Hey, sorry I am out for couple of days. Send me an email so I can send you voucher code and try it by yourself.

    #1813
    FabioTG
    Participant

    Thanks Piotr

    This is my e-mail: fabiotgarcia at gmail dot com

    What’s your?

    Regards

    #1814
    PiotrPiotr
    Keymaster

    Just sent you email 🙂

    #1818
    FabioTG
    Participant

    Thanks so much Piotr!

    I’m trying to install it on my project. On Adroid it’s working perfectly.
    I’m using the Example Scene.
    But in IOS the button is not opening the browser.
    What I’m missing?

    Best Regards,

    Fabio

    #1819
    FabioTG
    Participant

    I replaced the file from: https://drive.google.com/open?id=1H4Oiil-zDd7geb7JRxFStH3lYYHmSj2E

    and now it’s working.

    But my HTML code is not working on IOS, only in Android. ;(

    • This reply was modified 1 year, 11 months ago by FabioTG.
    #1821
    FabioTG
    Participant

    For Android, the In-App Web Browser understand that we are on mobile and it shows the AR button.
    But for IOS, the In-App Web Browser doesn’t understand that he is in mobile and have the behavior that we are seen in a desktop.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.