react-native-arkit icon indicating copy to clipboard operation
react-native-arkit copied to clipboard

ARKit.Model is not working

Open dianazzz opened this issue 6 years ago • 3 comments

I successfully added art.scnassets folder and added ship.scn image. But image doesn't appeared in the app. Please explain the steps to add images. And also to add .dae image file

dianazzz avatar Jul 17 '18 06:07 dianazzz

What file path did you use in the model definition. It needs to include the folder i.e "i.e: file:'art.scnassets/file_name.scn',"

jwanga avatar Aug 21 '18 23:08 jwanga

I am having the same issue, I am using the same path: art.scnassets/ship.scn And I added the folder and file under my iOS App

joseocasioserra avatar Aug 02 '19 17:08 joseocasioserra

Turns out the code in the example does not work, but this one does:

<ARKit.Model
          model={{ file: 'art.scnassets/iphone6.dae' }}
          position={{ x: 0, y: -2.0, z: -3.0 }}
          eulerAngles={{ x: 0, y: Math.PI * 2.0, z: 0 }}
        />

joseocasioserra avatar Aug 02 '19 17:08 joseocasioserra