We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Do you have to refresh the page after exiting AR mode?

Home Forums WebGL & WebXR Troubleshooting Do you have to refresh the page after exiting AR mode?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #44160
    adamgr
    Customer

    Hi,

    We are building a configurator which I’m now loading into AR mode.

    When exiting AR mode back to the Verge3D scene the view is black and it seems the only way to reinitialize Verge is to refresh the page which is the solution used in the Augmented Reality sample.

    Is there any way to resume the Verge3D scene without refreshing the page? Our configurator takes quite a while to load and it’s also embedded on quite a heavy web page. Also all the users configuration options are lost on exiting AR, I have already built a saving and loading system I can use for this but refreshing the page isn’t really a usable solution for us.

    Thanks.

    #44256
    adamgr
    Customer

    Does anyone have any experience with this?

    After further testing I can see that if I remove the refresh puzzle from the Augmented Reality demo (https://cdn.soft8soft.com/demo/applications/augmented_reality/augmented_reality.html) exiting AR shows a white screen but I can move the camera around back to the model but the camera is in a different free look state rather than orbiting.

    Can somebody please confirm whether the Verge3D scene can be resumed after AR mode without refreshing the page?

    Thanks.

    #44323
    adamgr
    Customer

    Has nobody else had this issue? Verge devs do you know what happens to the camera and scene when exiting AR mode?

    #44326

    Hi,
    Thanks for reporting this! Going to fix it in the upcoming Verge3D pre-release.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #44346
    adamgr
    Customer

    Hi Alexander,

    Thank you for letting me know!

    I wasn’t sure if this was a bug or just a technical limitation but glad to hear it will be fixed as exiting AR without refreshing will be really helpful for our project, thanks!

    #44393
    adamgr
    Customer

    Hi,

    I can see this has been reported as fixed for 3.8.pre-5 but unfortunately I can’t seem to see any difference.

    I just performed the following steps:

    1) Installed Verge3D Maya 3.8 pre-5
    2) In the augmented reality sample I disabled the “on exit do: open web page” puzzle block (please see attached screenshot)
    3) Uploaded the project to our web server
    4) Open AR mode on Android, then after placing the farmer press the back button to exit AR mode.
    5) Now all I can see is a white background. If I spin the camera around I can eventually see the farmer model but in a first person camera mode.

    Is this what is supposed to have been fixed in pre-5? We don’t want to have to refresh the page after exiting AR mode we just want to resume the scene exactly how it was before entering AR.

    Please let me know if I’ve done something wrong here, thanks.

    Attachments:
    You must be logged in to view attached files.
    #44404

    Hi,
    We fixed issue with missing background in pre-5, however it looks like the behavior you see is not a bug. When user places Farmer in the AR mode we place it out of the center of the screen and move the camera (using phone device). Basically to return everything back to normal you need to restore camera and Farmer position. Since we wanted to make the demo as simple as possible, we just reload the scene, but you can update your own app to fix the things upon AR exit.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #44455
    adamgr
    Customer

    Hi Alexander,

    I see – yes the main issue was nothing in the scene rendering anymore once leaving AR mode.

    Thanks for letting me know how you modify the camera when entering AR, I’m doing all this in code not puzzles so I’ll have a look at resetting the camera and meshes when exiting AR.

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