Advertisement
Guest User

Untitled

a guest
Feb 18th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.44 KB | None | 0 0
  1. Hi Andrew,
  2.  
  3. Just saw your cool tango scans on Sketchfab, thanks for sharing them here!
  4.  
  5. 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.
  6.  
  7. Best,
  8.  
  9. Alban
  10.  
  11. Alban Denoyel
  12. Co-founder & CEO
  13. sketchfab.com/alban
  14.  
  15.  
  16. Corentin Metgy
  17. Jan 30
  18. Reply
  19. to Jeanne, Alban, me, James
  20. Hi Andrew,
  21.  
  22. Quick follow up on this. We saw that some users started uploading Simple Scanner models: https://sketchfab.com/models/0f8af64400554006931755c6ebfd4288
  23.  
  24. Would be cool to give it a try. We have a Phab2 Pro device, can you please give us an access?
  25.  
  26. Also, can you share any update on the Sketchfab integration?
  27.  
  28. Cheers,
  29. Corentin
  30.  
  31.  
  32. Andrew Nakas <andrew.nakas@gmail.com>
  33. Jan 30
  34. Reply
  35. to Corentin, Alban, James, Jeanne
  36. Hey Corentin,
  37.  
  38. 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.
  39.  
  40.  
  41. Here is a link to the app with the next post processing section.
  42. https://play.google.com/store/apps/details?id=com.Nakas.SimpleScanForTango&hl=en
  43.  
  44. 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.
  45.  
  46. 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.
  47.  
  48. Thanks!
  49.  
  50.  
  51. James Green
  52. Jan 30
  53. Reply
  54. to me, Corentin, Alban, Jeanne
  55. Hi Andrew,
  56.  
  57. 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.
  58.  
  59. James
  60.  
  61.  
  62. James Green
  63. Jan 31
  64. Reply
  65. to me, Corentin, Alban, Jeanne
  66. Hi again,
  67.  
  68. Send request:
  69. https://github.com/sketchfab/Unity-glTF-Exporter/blob/master/ExporterSKFB.cs#L557-L606
  70.  
  71. Retrieve data:
  72. https://github.com/sketchfab/Unity-glTF-Exporter/blob/master/ExporterSKFB.cs#L176-L263
  73.  
  74. I hope that helps!
  75.  
  76.  
  77. Andrew Nakas <andrew.nakas@gmail.com>
  78. Feb 10 (8 days ago)
  79. Reply
  80. to support, James, Corentin, Alban, Jeanne
  81. Hey James and Sketchfab team!
  82.  
  83.  
  84. Appreciate the editor code, it really helps.
  85.  
  86. 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.
  87.  
  88.  
  89. Application name: Simple Scanner
  90. Grant type: Implicit
  91. Redirect URI:com.Nakas.SimpleScanForTango
  92.  
  93. 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.
  94.  
  95.  
  96. Thanks,
  97. -Nakas
  98.  
  99.  
  100. Alban Denoyel
  101. Feb 10 (8 days ago)
  102. Reply
  103. to me, James, Corentin, Jeanne, support
  104. Hi Andrew, happy to hear that, can't wait to give it a try!
  105.  
  106.  
  107. James Green
  108. Feb 10 (8 days ago)
  109. Reply
  110. to Alban, me, Corentin, Jeanne
  111. Hey,
  112.  
  113. 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.
  114.  
  115. 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.
  116.  
  117. 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.
  118.  
  119. Cheers,
  120. James
  121.  
  122.  
  123. Andrew Nakas <andrew.nakas@gmail.com>
  124. Feb 10 (8 days ago)
  125. Reply
  126. to James, Alban, Corentin, Jeanne
  127. Ok cool not a problem. For now can we just make the URI andrewnakas.com/simplescanner.html I'll redirect it back there.
  128.  
  129. Thanks!
  130.  
  131.  
  132. James Green
  133. Feb 10 (8 days ago)
  134. Reply
  135. to me, Alban, Corentin, Jeanne
  136. Great, here you go:
  137.  
  138. Client ID:
  139. CyRJ719vEi5XhTAzt1GcG6hosje8IkXtOkZr2uBZ
  140.  
  141. Client Secret:
  142. BGG6LUN3wvALStN4voLfv1qCj8rDpj5NuYn4FES6PsVetv0XG1eYmWgsJmJ0Vk1cH0NesyxdOjnyAXkzd3miHFPzZlRIQxGKZQKzBB5jxfpKRGm888ebE5GmRJ2lwr6X
  143.  
  144. Redirect URI:
  145. http://andrewnakas.com/simplescanner.html
  146.  
  147.  
  148. Andrew Nakas <andrew.nakas@gmail.com>
  149. Feb 11 (7 days ago)
  150. Reply
  151. to James, Alban, Corentin, Jeanne
  152. 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
  153. Error: invalid_request
  154.  
  155. Invalid client_id parameter value.
  156.  
  157. I'm using this link https://sketchfab.com/oauth2/authorize/?state=123456789&response_type=token&client_id=[CyRJ719vEi5XhTAzt1GcG6hosje8IkXtOkZr2uBZ]/
  158.  
  159. 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.
  160.  
  161.  
  162.  
  163. Any ideas about what i am doing wrong?
  164.  
  165. Thanks,
  166.  
  167. -Nakas
  168.  
  169.  
  170.  
  171. James Green
  172. Feb 13 (5 days ago)
  173. Reply
  174. to me, Alban, Corentin, Jeanne
  175. At first glance, you don't need the square brackets around your client ID :)
  176.  
  177. James
  178. --
  179.  
  180.  
  181. Andrew Nakas Feb 13 (5 days ago)
  182. Hmm interesting cause I totally tried that, but regardless now it does work w...
  183.  
  184. Andrew Nakas Feb 16 (2 days ago)
  185. Hey James, Thanks a bunch. That was strange but now everything seems to be wo...
  186.  
  187. James Green
  188. Feb 16 (2 days ago)
  189. Reply
  190. to me
  191. Glad to hear it.
  192.  
  193. 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
  194.  
  195. See: https://tools.ietf.org/html/rfc6749 (search for "access_token")
  196.  
  197. I hope that helps!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement