-
-
vignesh
@cvp and @JonB and @Brun0oO have worked to adapt ARkit to Pythonista. I was wondering how able Pythonista is to handle code adapted from swift iOS tutorials into the ARkit sample code provided by @Brun0oO. I want to see if I am able to put an image on a surface using the AR framework in Pythonista, similar to this in swift:
https://mobile-ar.reality.news/how-to/arkit-101-place-2d-images-like-painting-photo-wall-augmented-reality-0187598/ -
vignesh
Thanks so much, @cvp this makes sense and I just tested it myself and it works
-
vignesh
@JonB said:
[4,4,4,4,4,4, # six faces, each has 4 sides
0,3,2,1# bottom face
1,2,6,5,# right face
2,3,7,6# back face
3,0, 4,7# left face
0,1,5,4 # front face
4,5,6,7]So I used the new index array you provided on the cube defined by these vertices:
verts = [ SCNVector3(0, 0, 0), SCNVector3(0.05, 0, 0), SCNVector3(0.05, 0, 0.05), SCNVector3(0, 0, 0.05), SCNVector3(0, 0.05, 0), SCNVector3(0.05, 0.05, 0), SCNVector3(0.05, 0.05, 0.05), SCNVector3(0, 0.05, 0.05)]
and the result for me is triangles (covering half the face) instead of full square faces on the cube. Is there anything else I should change in cvp's original code to allow the new index array to work?
-
vignesh
In this part of the code:
indexes = [3,3,3,3,3,3,3,3, 0, 1, 2, 2, 3, 0, 3, 4, 0, 4, 1, 0, 1, 5, 2, 2, 5, 3, 3, 5, 4, 4, 5, 1]
what does this part do:
[3,3,3,3,3,3,3,3,
I am trying to make a cube and I have four sides completed, but I can't cover the top and bottom because of these 3's I think.
-
vignesh
@RomSpy it worked and my app is waiting on review now thank you!!
-
vignesh
@RomSpy with the updated template, I am still getting code signing errors :(
-
vignesh
@RomSpy So in the updated template, in the Py3kit_preflight.py file, there is no "#import pythonista' " statement at the beginning, was this intentional?
-
-