You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing Dataset not working in Meta Quest 3 but working when running the app in unity
This is the code I am using
using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityVolumeRendering;publicclassPlaneDicom:MonoBehaviour{// Start is called before the first frame updatevoidStart(){stringdir="Assets/VisMale.raw";// Get all files in DICOM directory// add variable for the format to be uint8
Debug.Log("Importing dataset from "+dir);// Create the importerRawDatasetImporterimporter=new RawDatasetImporter(dir,128,256,256, DataContentFormat.Uint8, Endianness.LittleEndian,0);// Import the datasetVolumeDatasetdataset= importer.Import();
Debug.Log("Dataset imported");
Debug.Log("Dataset size: "+ dataset.dimX +"x"+ dataset.dimY +"x"+ dataset.dimZ);// Spawn the objectVolumeRenderedObjectobj= VolumeObjectFactory.CreateObject(dataset);
obj.transform.position =new Vector3(0,1.0f,2.26f);}// Update is called once per framevoidUpdate(){}}
The text was updated successfully, but these errors were encountered:
Hi, you won't be able to load from the "Assets" directory directly in builds. You'll probably want to put it somewhere else, for example under "StreamingAssets": https://docs.unity3d.com/Manual/StreamingAssets.html
Importing Dataset not working in Meta Quest 3 but working when running the app in unity
This is the code I am using
The text was updated successfully, but these errors were encountered: