Resonite-Issues icon indicating copy to clipboard operation
Resonite-Issues copied to clipboard

Import Image Slices as Volumetric Texture Hangs Infinitely

Open lxw404 opened this issue 1 year ago • 4 comments

Describe the bug?

When importing any volume as slices, the importer hangs infinitely at the encoding step.

To Reproduce

  • Drag a folder of images which represent a 3D volume and import as slices.

Expected behavior

The volume should import properly.

Screenshots

Resonite_Zo26Shv9wr

Resonite Version Number

2024.1.18.775

What Platforms does this occur on?

Windows

What headset if any do you use?

Valve Index, Desktop

Log Files

Import Volume As Slices - 2024.1.18.775 - 2024-01-18 22_33_47.log

Additional Context

As part of testing the recent update, I was importing test volumes to validate changes, however this proved impossible while running into this bug.

Reporters

LuxKitty @ginjake

lxw404 avatar Jan 19 '24 03:01 lxw404

I noticed this behavior a bit ago, there's a few additional details I noticed

  • The import indicator spawns at 0,0,0
  • The volumetric visual/hierarchy loads in after some time at the expected location
  • The volumetric visual root is scaled to 0.005 except for the slicer handle

badhaloninja avatar Jan 19 '24 04:01 badhaloninja

I've noticed the same. The slots for the visuals + slicer are eventually created, but the asset never loads.

A possible relevant line in the log:

10:35:28 PM.038 ( 60 FPS)	Exception integrating asset: System.ArgumentException: SetPixelData: size of data to be filled was larger than the size of data available in the source array.
  at (wrapper managed-to-native) UnityEngine.Texture3D.SetPixelDataImplArray(UnityEngine.Texture3D,System.Array,int,int,int,int)
  at UnityEngine.Texture3D.SetPixelData[T] (T[] data, System.Int32 mipLevel, System.Int32 sourceDataStartIndex) [0x00057] in <c5a41139b01b40a09f2ec8dd4a1062f7>:0 
  at UnityFrooxEngineRunner.TextureConnector.UploadTextureDataUnity (UnityFrooxEngineRunner.TextureConnector+TextureUploadData data) [0x00134] in <732e2972bd3d478eac79fc7c9f299cdc>:0 
  at UnityFrooxEngineRunner.TextureConnector+<>c__DisplayClass35_0.<SetTextureData>b__1 () [0x00000] in <732e2972bd3d478eac79fc7c9f299cdc>:0 
  at UnityFrooxEngineRunner.UnityAssetIntegrator.ProcessQueue (System.Double maxMilliseconds, System.Boolean renderThread) [0x00076] in <732e2972bd3d478eac79fc7c9f299cdc>:0 

lxw404 avatar Jan 19 '24 05:01 lxw404

I'm running into this, volumetric import is completely broken for me.

zahndy avatar Mar 25 '24 20:03 zahndy

@ginjake also ran into this issue in #2248:

Describe the bug?

「Image slices as volumetric texture」 で連続写真をインポートした場合、Importが終わらない場合があります。

なお、同じファイルをNeosVRでimportしたところ問題なくimportすることが出来、 migrateでResoniteに持ってくることが出来ました。

Image slices as volumetric texture When importing a series of photos with “Image slices as volumetric texture”, the import may not be completed.

I imported the same file in NeosVR, and it imported without any problem, I was able to import the same file in NeosVR without any problem and bring it to Resonite by “migrate”.

To Reproduce

下記のzipを解答し、フォルダ毎importする。 import時に「Image slices as volumetric texture」 を選択 VolumeUnlitMaterialとSlicerは生成されるが、何も生成されない。 しばらく待ってもimport中のメッセージが消えない MRIImport.zip

Answer the following zip file and import the whole folder. Select “Image slices as volumetric texture” when importing. VolumeUnlitMaterial and Slicer are generated, but nothing is generated. The message “importing” is not disappearing even after waiting for a while.

Expected behavior

The VolumeUnlitMaterial object is displayed (Image from NeosVR) image

Screenshots

VolumeUnlitMaterial and Slicer are generated, but nothing is generated. The message “importing” is not disappearing even after waiting for a while. image

Resonite Version Number

2024.6.5.1084

What Platforms does this occur on?

Windows

What headset if any do you use?

Desktop

Log Files

DESKTOP-M5QK91C - 2024.6.5.1084 - 2024-06-07 01_16_39.log

Additional Context

No response

Reporters

No response

LexiBasilisk avatar Jun 06 '24 16:06 LexiBasilisk