hurali97 / viro-ar

This repo contains POC on viro AR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

viro-ar

This repo contains POC on viro AR ( Viro Community )

Installation for viro react package

https://github.com/ViroCommunity/viro/blob/main/readmes/INSTALL_ANDROID.md

Code samples

https://github.com/viromedia/viro/tree/master/code-samples/js

Viro Docs

https://viro-community.readme.io/docs

Helpful links

https://blog.viromedia.com/https-blog-viromedia-com-asset-pipeline-animating-3d-characters-for-ar-vr-arkit-arcore-c7aff566bcf8

Troubleshooting

  • If you see any error related to file not found, a potential reason could be you didn't setup asset resolver in metroconfig.js, like so:
const {getDefaultConfig} = require('metro-config');

module.exports = (async () => {
  const {
    resolver: { assetExts }
  } = await getDefaultConfig();

  return {
    transformer: {
    getTransformOptions: async () => ({
      transform: {
        experimentalImportSupport: false,
        inlineRequires: true,
      },
    }),
    },
    resolver: {
      assetExts: [
        ...assetExts,
        'obj',
        'mtl',
        'JPG',
        'vrx',
        'hdr',
        'gltf',
        'glb',
        'bin',
        'arobject',
        'gif',
      ],
    },
  };
})();
  • If you see error related to expoplayer:2.7.1 not found, duplicate source, a solution might be to comment out the exoplayer dependency.

About

This repo contains POC on viro AR


Languages

Language:TypeScript 57.9%Language:Java 19.5%Language:Objective-C 13.8%Language:JavaScript 4.4%Language:Ruby 2.4%Language:Starlark 1.9%