ARCore — 如何把一個Object匯入進Android Studio中使用

JLin
JLin
Sep 7, 2018 · 2 min read

以官方HelloWorld的範例來修改,第一次接觸的可能會很困擾,並不是一個obj就可以使用了,還看到

sampledata

.sfa

.sfb

.mtl

raw/*.sfb

等等….

這些到底是什麼?

先不管,直接跟你說怎麼匯入一個3d object

  1. 可以到3D Free網站下載

加入會員就可以下載免費的

下載後將obj放入Android Studio

/sampledata/modles/

透過外掛import

就會產生相對應的

sfa / sfb

會產生sfb在 assets中,將他複製到 /raw中

修改ModelRender的檔名 R.raw.knight

ok然後開始建置,就

    JLin

    Written by

    JLin

    share about Photography(360 / DSLR / DC / Mobile) , Programer (Android / Javascript / Code) , 3C Product @ Taipei,Taiwan

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade