Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3D volume rendering

See original GitHub issue


I am trying to implement rendering a volume in the way that is displayed in both videos below (the first video was taken from the 3D Slicer program). I couldn’t find anything like this in the docs or the examples. Does anyone have a tip on how this could be implemented? I’d just need someone to point me in a direction so I can investigate this further.

I found this example on the VTK.js website that seems to do what I need but I’m not sure how to do these things through Cornerstone3D. It seems like I need to use a vtkImageMarchingCubes filter inside a viewport but I’m not sure how it’s done.

Thank you!

Video 1: Video 2:

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

sedghicommented, Nov 1, 2022

I had some time to look at this, see my branch here, which is just very ugly implementation, but you get the idea, if you can create a PR I would be happy to review it

cd packages/tools
yarn run example 3dViewport


sedghicommented, Oct 27, 2022

There are two things here

  1. 3D Volume Viewport support: currently our volume viewports are forcing the clipping planes on a tiny tiny slice which is not required for the 3D Volume viewport. So that is not yet implemented. Solution: you can create another volume viewport basically copy pasting the whole thing and just removing the places where we are enforcing the clipping planes
  2. Application of filters which is another thing we don’t support right now, I guess we need to add api to apply a filter on the image data before feeding it to the mapper (or revise the mapper to get it from the filtered image data)

Happy to review PRs for any of them

Read more comments on GitHub >

github_iconTop Results From Across the Web

Volume rendering - Wikipedia
In scientific visualization and computer graphics, volume rendering is a set of techniques used to display a 2D projection of a 3D discretely...
Read more >
Chapter 39. Volume Rendering Techniques - NVIDIA Developer
This chapter describes volume rendering techniques that exploit the flexible programming model and 3D texturing capabilities of modern GPUs.
Read more >
What is Volume Rendering? Definition and FAQs - HEAVY.AI
3D texture volume rendering, or simply 3D texturing or texture mapping, is a special hardware technique that allows users to generate interactive view- ......
Read more >
Volume rendering - 3D Slicer documentation - Read the Docs
Volume rendering (also known as volume ray casting) is a visualization technique for displaying image volumes as 3D objects directly - without requiring ......
Read more >
Volume Rendering for Developers - Scratchapixel
We have all we need to render our first 3D image. We will render a sphere that we assume is filled with some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found