Unity AR Core Capstone Design Main by Esensia - 3

MobileVR & AR

3D architecture AR rendering in android phone (Unity, ARCore)

Unity 2018.3.0f2Unknown LicenseUpdated 33 days agoCreated on May 22nd, 2019
Go to source

Preview

  • Software : Unity, ARCore, AWS, Nodejs
  • Users can experience architecture and allocate furnitures by using mobile phone (android)
  • ARCore helps you to render AR
    Screenshot_20190522-170004_scene_1

ARCore

53875879-ebd5ef80-4048-11e9-9948-e7333be00c4d ARCore : https://developers.google.com/ar/


Architecture

스크린샷 2019-05-22 오후 4 01 07

ObjectToAssetBundle

[MenuItem("Assets/ Build AssetBundles")]
static void BuildAllAssetBundles()
{
    BuildPipeline.BuildAssetBundles(@"/Users/hongmingi//Desktop/AssetBundle", BuildAssetBundleOptions.ChunkBasedCompression,BuildTarget.Android);
}

MainScreen

스크린샷 2019-05-22 오후 4 16 17

AssetBundle_Scene_Load

UnityWebRequest www;
AssetBundle bundle;
float delayTime = 1; // time to delay

IEnumerator Start()
{
    if (findObject.Curobj == "First")
    {
        www = UnityWebRequestAssetBundle.GetAssetBundle("http://13.125.111.193/scene1/scene_1");
    } 
    else if (findObject.Curobj == "Second")
    {
        www = UnityWebRequestAssetBundle.GetAssetBundle("http://13.125.111.193/scene2and/scene_2");
    }
    else if(findObject.Curobj == "Third")
    {
        www = UnityWebRequestAssetBundle.GetAssetBundle("http://13.125.111.193/scene3/scene_3");
    }
    
    yield return www.SendWebRequest();
    bundle = DownloadHandlerAssetBundle.GetContent(www);
    if (www.isNetworkError || www.isHttpError)
    {
        Debug.Log(www.error);
    }
    else
    {
        if (bundle.isStreamedSceneAssetBundle)
        {
            string[] scenePaths = bundle.GetAllScenePaths();
            string sceneName = System.IO.Path.GetFileNameWithoutExtension(scenePaths[0]);
            //SceneManager.LoadSceneAsync(sceneName, LoadSceneMode.Single);
            SceneManager.LoadSceneAsync(sceneName,LoadSceneMode.Additive);
            
            yield return new WaitForSeconds(delayTime); 
            
            // AssetBundle Unload and Warning Scene Unload 
            bundle.Unload(false);
            www.Dispose();
            SceneManager.UnloadSceneAsync("WarningLandscape");
        }

    }
}
Show all projects by Esensia