# How can I render an X-ray image from a volume data?

**URL:** https://discourse.paraview.org/t/how-can-i-render-an-x-ray-image-from-a-volume-data/13707
**Category:** ParaView Support
**Tags:** vtk
**Created:** [January 16, 2024, 1:02am UTC](https://discourse.paraview.org/t/how-can-i-render-an-x-ray-image-from-a-volume-data/13707 "2024-01-16T01:02:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![miles\_nanshan](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/96bed5/32.png) [@miles\_nanshan](https://discourse.paraview.org/u/miles_nanshan)
#### Post date: [January 16, 2024, 1:02am UTC](https://discourse.paraview.org/t/how-can-i-render-an-x-ray-image-from-a-volume-data/13707/1 "2024-01-16T01:02:42Z")

</div>

Say that I have a 3D VTU data consisting of values between 0 and 1. My goal is to render it as X-ray imaging, which means the lower the value, the more transparent the corresponding part should be.

For now, after importing the VTU data, ParaView just renders every voxel, which only gives a large cube.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 16, 2024, 8:12am UTC](https://discourse.paraview.org/t/how-can-i-render-an-x-ray-image-from-a-volume-data/13707/2 "2024-01-16T08:12:55Z")

</div>

Switch from “Surface” representation to “Volume” representation:  
[https://docs.paraview.org/en/latest/Tutorials/ClassroomTutorials/targetedComputationFluidDynamics.html#volume-rendering](https://docs.paraview.org/en/latest/Tutorials/ClassroomTutorials/targetedComputationFluidDynamics.html#volume-rendering)
