-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGL Output error #125
Comments
Hi! File browsing: NIFTI / NRRD files ** texSubImage2D **
I'll have a look and see if I can detect these issues and downscale automatically if needed. |
Yes i had pre imported the volume for testing as i cant upload file from computer hdd as flie browsing is not working in webgl output |
I'll try with the downscale option you have mentioned thanks for the reply |
Ok, great! Hope that works for you :) |
will try with this |
Great! |
i had tried to import the nifti file from editor window and it works fine ,now iam tring to implement it through runtime window importing option |
also i have a tried this one dataset.DownScaleData(); but still Iam getting the same error ,i will try to sort it |
Hmm.. Are you able to share your dataset with me? |
I can share my dicom datas but there are 241 slices |
Could you please share me your email id so that i can share my dicom files |
Need a help in this nifti file uploading script,here is my updated part,I need the nifiti file uploading file in runtime gui when we hit playbutton and need to upload nifti file like Dicom files ,i tried to do all my best but could'nt get a solution private void OnOpenNIFTIDatasetResult(RuntimeFileBrowser.DialogResult result)
|
Hi again! Sorry for the delay. And that code looks right, I think? Where does it fail? |
Hai sorry for the delay i'll send the mail soon, i tried to import the nifti file by flie browser,but i cant upload the nifti file directly from desktop through the file browser option but i can upload same file through editor nifti file uploading option |
Hi again @Karthikarc115 So I tried importing the first DICOM dataset, and I got an error message (in the dev console) about a failed memory allocation. #if UNITY_EDITOR
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEngine;
class MyCustomBuildProcessor : IPreprocessBuildWithReport
{
public int callbackOrder { get { return 0; } }
public void OnPreprocessBuild(BuildReport report)
{
PlayerSettings.SetPropertyString("emscriptenArgs", "-s ALLOW_MEMORY_GROWTH=1", BuildTargetGroup.WebGL);
Debug.Log("OK!");
}
}
#endif And then make a new build. That fixed the issue for me: If you pull latest version from master, you will also be able to move the camera around in the build (using WASD keys to move, and hold right mouse button and move mouse to rotate). |
And regarding your question about loading Nifti from desktop.
I'm not really much of a web developer, so I don't know much about alternative (2). I found this project that apparently implemented it: https://github.com/xelfia/XELF.FileReceiver.WebGL |
Thankyou so much i 'll try |
|
Hai Matias I have a doubt regarding the length calculation of the rendered object when we cut it using the cross section plane if we want to calculate a particular distance inside the object how can we do it, i tried it but didn't get any output and not getting the logic behind it that's the main problem any help would be appreciated ,hoping for the best. |
Hi again @Karthikarc115 !
Then you should be able to measure distances by just picking two points and measuring the length/magnitude between them. |
Thank you i'll try to make changes as you mentioned |
Hai Matias I have a doubt regarding the length calculation of the rendered object , i had tried to implement line rend for length calculations and iam getting values but a bit confused about the calculated values when i try to do cross section and measured length, its showing values inside the rendered object ,although iam using camera position to calculate length, but when i try to use the volume rendered object as a reference to calculate length iam not getting any results, could you please help me to sort the issue, it would be grateful for me here iam attaching the code and screenshot too. `using System.Collections; namespace UnityVolumeRendering
} |
I created a separate issue fr this request: #140 |
Thankyou i will test it |
I'll close this issue since the original problem (WebGL memory issue) has been answered. |
Hai ,
Firstly I need to say a big thanks to you as you had helped me a lot by creating this plugin as I was all blank on from where should I start this project as I had no idea how to produce volume rendering and googled so much to find a solution and finally got this amazing plugin here ,Really appreciate you for this amazing project, keep going and do more amazing jobs like this.
I tried to use your plugin for my volume rendering project and done changes in slice rendering, cross section also Realtime rotation and zooming of object with mouse button, all works fine in Windows out and unity editor, but when run same output in webGL expect slice rendering ,File browsing and Isosurfuce button every thing works fine
When i click on the file browser I can't upload in webgl output,
and when click on isosurface and slice rendering button an error message is show that the array buffer exceeds view range
Also i had faced issues regarding the Nifti file upload as i can't able to upload in any window
Any help will be helpful as I am new to volume rendering and got stuck in this situation
The text was updated successfully, but these errors were encountered: