cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
575 stars 294 forks source link

[Bug] Axial view on a volume not working on 2.0.0 beta #1469

Closed e-simpson closed 1 month ago

e-simpson commented 1 month ago

Describe the Bug

The following issue is with the 2.0.0 beta running on Next.js as described in the nextjs-cornerstone3d example repo.

When I try to load and view an axial view on a volume in orthographic mode it seems to break Cornerstone3D. Sagittal, coronal in orthographic mode and volume_3d mode work just fine. However, when I try to render the axial view and call setVolumesForViewports:

I have tried loading both wadouri: and wadors: volumes.

Steps to Reproduce

  1. Clone nextjs-cornerstone3d repo
  2. Change page.tsx line 60 to orientation: Enums.OrientationAxis.AXIAL,
  3. Change imageIds to wadouri: usage

The current behavior

Blank view displays

The expected behavior

Axial view renders

OS

macOS 14.6.1

Node version

20

Browser

Chrome 126.0.6478.183

e-simpson commented 1 month ago

Note: currently editing details to better reflect Steps to Reproduce

e-simpson commented 1 month ago

It seems that this issue only occurs when using wadouri:. So this issue seems to be a duplicate of https://github.com/cornerstonejs/cornerstone3D/issues/958.

I will close this now and reference there.