2021-09-01 at 9:49 am #44160
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.2021-09-03 at 8:17 am #44256
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.2021-09-06 at 10:11 am #44323
Has nobody else had this issue? Verge devs do you know what happens to the camera and scene when exiting AR mode?2021-09-06 at 11:29 am #44326Alexander KovelenovStaff2021-09-06 at 3:37 pm #44346
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!2021-09-08 at 1:32 pm #44393
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.
- This reply was modified 9 months, 3 weeks ago by adamgr.
Attachments:You must be logged in to view attached files.2021-09-08 at 8:30 pm #44404Alexander KovelenovStaff
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.
2021-09-09 at 1:03 pm #44455
- This reply was modified 9 months, 3 weeks ago by Alexander Kovelenov.
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.
- You must be logged in to reply to this topic.