webarkit / ARnft

A small javascript library for WebAR with NFT
GNU Lesser General Public License v3.0
219 stars 54 forks source link

Can't an NFT file be a network path? #278

Open z821922141 opened 2 years ago

z821922141 commented 2 years ago

ARnft.ARnft.init(width, height, [["https://wljhealth-oss.oss-cn-shenzhen.aliyuncs.com/20220626/defaultScene/smoking_boy"]], [["smoking_boy"]], "./config.json", false)

An error occurs when using the network path

TypeError: C.push is not a function at 55ac1918-87a1-4e19-a1a4-3c591f769f67:1

kalwalt commented 2 years ago

Hi @z821922141 it should accept network path, but i'm not sure 100%, can you try with the pinball https://raw.githack.com/webarkit/ARnft/master/examples/DataNFT/pinball ? But i think there is a similar issue as in jsartoolkitNFT https://github.com/webarkit/jsartoolkitNFT/issues/161