Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hi Andrew,
- Just saw your cool tango scans on Sketchfab, thanks for sharing them here!
- I was wondering if you had any plans to build a tango 3D capture app? We just met with the tango team, and we'd love to see more apps specifically focused on capture, with a built-in share to Sketchfab feature.
- Best,
- Alban
- Alban Denoyel
- Co-founder & CEO
- sketchfab.com/alban
- Corentin Metgy
- Jan 30
- Reply
- to Jeanne, Alban, me, James
- Hi Andrew,
- Quick follow up on this. We saw that some users started uploading Simple Scanner models: https://sketchfab.com/models/0f8af64400554006931755c6ebfd4288
- Would be cool to give it a try. We have a Phab2 Pro device, can you please give us an access?
- Also, can you share any update on the Sketchfab integration?
- Cheers,
- Corentin
- ᐧ
- Andrew Nakas <andrew.nakas@gmail.com>
- Jan 30
- Reply
- to Corentin, Alban, James, Jeanne
- Hey Corentin,
- Great timing, as of this weekend I built an mvp for a post processing section allowing users to paint, fill and extrude/ deform the mesh after they scan it in Simple Scanner. It's rough but I feel like this will fill a unique void in the scanning space and provide interesting value to users. It is going to get some big updates soon, I'll post a video talking about it. Now as of the last tango sdk c release the tango 3dr api allows for mesh texturing from the camera so much higher texture details in the near future will happen.
- Here is a link to the app with the next post processing section.
- https://play.google.com/store/apps/details?id=com.Nakas.SimpleScanForTango&hl=en
- Around sketchfab integration, I really want to do it, and am confident I could get the token upload working pretty easily. Though I see Tim Swan, who has the best scanning app currently got oAuth upload in unity. The UX around that is so much better. I want to try to implement something like that, but idk when I will get to it.
- Do you have any examples around Oauth uploading in unity that I could possibly plug and play? I would integrate it asap if there was some examples I could implement.
- Thanks!
- James Green
- Jan 30
- Reply
- to me, Corentin, Alban, Jeanne
- Hi Andrew,
- We're working on a Unity plug-in internally and it includes OAuth login. It hasn't hit the public repo yet, so I'll get a code snippet for you ASAP.
- James
- James Green
- Jan 31
- Reply
- to me, Corentin, Alban, Jeanne
- Hi again,
- Send request:
- https://github.com/sketchfab/Unity-glTF-Exporter/blob/master/ExporterSKFB.cs#L557-L606
- Retrieve data:
- https://github.com/sketchfab/Unity-glTF-Exporter/blob/master/ExporterSKFB.cs#L176-L263
- I hope that helps!
- Andrew Nakas <andrew.nakas@gmail.com>
- Feb 10 (8 days ago)
- Reply
- to support, James, Corentin, Alban, Jeanne
- Hey James and Sketchfab team!
- Appreciate the editor code, it really helps.
- Great news! I'm planning to add Sketchfab Oauth upload to Simple Scanner this weekend. Stoked, here is the app information for the id and secret.
- Application name: Simple Scanner
- Grant type: Implicit
- Redirect URI:com.Nakas.SimpleScanForTango
- Fired up for the spatial computing revolution and for Sketchfab to be the best 3d model website when everyone's smartphones can scan things easily. Can't wait to get it in my Tango app with Oauth upload. Some big plans for Simple Scanner, shooting for it to be the best free unity multiplatform 3d scanner for mobile phone that can scan well.
- Thanks,
- -Nakas
- Alban Denoyel
- Feb 10 (8 days ago)
- Reply
- to me, James, Corentin, Jeanne, support
- Hi Andrew, happy to hear that, can't wait to give it a try!
- James Green
- Feb 10 (8 days ago)
- Reply
- to Alban, me, Corentin, Jeanne
- Hey,
- Sounds great, but I'm afraid the OAuth library we're using doesn't support reverse DNS notation ( com.example.app:/path ) or custom app protocols ( myapp://path ) for the redirect URI. You should be able to use an IP address with a listening port ( http://127.0.0.1:port ), or localhost. Another alternative is to use a redirect URI on your server/domain which then redirects to your custom protocol.
- A common workflow for apps like this is to open the OAuth in an iframe, redirect to something like localhost (doesn't really matter), and have your native code catch the URI (with the token) of the iframe once it changes.
- If one of these workarounds isn't possible, we can manually add support for your scheme, but it will have to go through a release cycle on our end.
- Cheers,
- James
- Andrew Nakas <andrew.nakas@gmail.com>
- Feb 10 (8 days ago)
- Reply
- to James, Alban, Corentin, Jeanne
- Ok cool not a problem. For now can we just make the URI andrewnakas.com/simplescanner.html I'll redirect it back there.
- Thanks!
- James Green
- Feb 10 (8 days ago)
- Reply
- to me, Alban, Corentin, Jeanne
- Great, here you go:
- Client ID:
- CyRJ719vEi5XhTAzt1GcG6hosje8IkXtOkZr2uBZ
- Client Secret:
- BGG6LUN3wvALStN4voLfv1qCj8rDpj5NuYn4FES6PsVetv0XG1eYmWgsJmJ0Vk1cH0NesyxdOjnyAXkzd3miHFPzZlRIQxGKZQKzBB5jxfpKRGm888ebE5GmRJ2lwr6X
- Redirect URI:
- http://andrewnakas.com/simplescanner.html
- Andrew Nakas <andrew.nakas@gmail.com>
- Feb 11 (7 days ago)
- Reply
- to James, Alban, Corentin, Jeanne
- Awesome, I've made progress getting the deep linking and connecting my app back to the redirect uri. When i try to go in app or in editor to the authorization url in the docs i get
- Error: invalid_request
- Invalid client_id parameter value.
- I'm using this link https://sketchfab.com/oauth2/authorize/?state=123456789&response_type=token&client_id=[CyRJ719vEi5XhTAzt1GcG6hosje8IkXtOkZr2uBZ]/
- One hunch is that its going to take a bit to go through the system and make my client id valid. The other hunch is that i may be doing some really silly.
- Any ideas about what i am doing wrong?
- Thanks,
- -Nakas
- James Green
- Feb 13 (5 days ago)
- Reply
- to me, Alban, Corentin, Jeanne
- At first glance, you don't need the square brackets around your client ID :)
- James
- --
- Andrew Nakas Feb 13 (5 days ago)
- Hmm interesting cause I totally tried that, but regardless now it does work w...
- Andrew Nakas Feb 16 (2 days ago)
- Hey James, Thanks a bunch. That was strange but now everything seems to be wo...
- James Green
- Feb 16 (2 days ago)
- Reply
- to me
- Glad to hear it.
- The access token should be a parameter in the redirect URL, e.g. http://example.com/cb#access_token=2YotnFZFEjr1zCsicMWpAA&state=xyz&token_type=example&expires_in=3600
- See: https://tools.ietf.org/html/rfc6749 (search for "access_token")
- I hope that helps!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement