This PR adds a very simple proof-of-concept for displaying a QR code that will take one to an AR version of the current glue view. The implementation here does the following:
Saves the current view to a temporary glTF file and model-viewer HTML using the default export settings
Sets up a small server in the temporary directory
Creates and displays a QR code that points to the temporary HTML file. This QR code has the glue logo in the center and uses the red from the glue logo as the dark color.
When the Qt window that shows the QR code is closed, the server is shut down and the temporary files deleted.
Limitations:
Since we're just spinning up a server on the user's local machine, any phone that wants to use this will need to be on the same network in order for this to work.
We aren't doing anything different to generate this view - it's the same code as the file export, just without the option to change settings. It would be nice to develop some sort of way to give a quicker preview (maybe using resolutions lower than the default would be a start?)
Obviously the first limitation could solved once we have some permanent location online to upload things - we could upload and then point the QR code there instead. The second issue will obviously require some more thought. But for now this is just a demo.
This PR adds a very simple proof-of-concept for displaying a QR code that will take one to an AR version of the current glue view. The implementation here does the following:
Limitations:
Obviously the first limitation could solved once we have some permanent location online to upload things - we could upload and then point the QR code there instead. The second issue will obviously require some more thought. But for now this is just a demo.