ipyvolume icon indicating copy to clipboard operation
ipyvolume copied to clipboard

WIP: AR support

Open mariobuikhuizen opened this issue 2 years ago • 7 comments

mariobuikhuizen avatar Nov 01 '21 20:11 mariobuikhuizen

Sharing the demo:

https://user-images.githubusercontent.com/1765949/140309606-6960015a-e729-4173-92c4-3b6d246e1da0.mp4

It seems also that the floor is moving wrt the scene btw.

maartenbreddels avatar Nov 04 '21 11:11 maartenbreddels

To reproduce the klein bottle:

fig = ipv.figure()
ipv.examples.klein_bottle()
ipv.save("ar.html", devmode=True)

To make sure we pick up the right ipyvolume from this branch:

$ (cd js; npm run watch:dev) 
$ ln ~/src/ipyvolume/js/dist/index.js.map index.js.map 
$ ln ~/src/ipyvolume/js/dist/index.js ipyvolume.js
$ python -m ipyvolume.server

Open from your phone:: https:///ar.html (ignore the self signed certificate and continue) click the AR button (only visible when your phone supports it).

@mariobuikhuizen can you share the link where all supported devices are listed?

maartenbreddels avatar Nov 04 '21 15:11 maartenbreddels

Supported devices: https://developers.google.com/ar/devices.

For iOS https://labs.mozilla.org/projects/webxr-viewer/ can be used.

mariobuikhuizen avatar Nov 04 '21 15:11 mariobuikhuizen

@maartenbreddels how can I get your example running? Where does the python code go?

mariobuikhuizen avatar Nov 04 '21 15:11 mariobuikhuizen

just execute it from anywhere, in a script, or from the REPL, since we save it to HTML, no jupyter environment is needed.

maartenbreddels avatar Nov 04 '21 15:11 maartenbreddels

Ah, missed the saving to HTML.

mariobuikhuizen avatar Nov 04 '21 15:11 mariobuikhuizen

I'm a little late to the party, but I noticed you all aren't using a notebook review tool and wanted to invite you to review this pull request with GitNotebooks: https://gitnotebooks.com/widgetti/ipyvolume/pull/397

It lets you do things like comment on rendered markdown and code cells, so might be an easy win for your PR reviews.

smith-kyle avatar Jan 31 '24 22:01 smith-kyle