> For the complete documentation index, see [llms.txt](https://docs.scenery.graphics/sciview/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scenery.graphics/sciview/basics/volumetric-data.md).

# Volumetric Data

Let's start with our trusty ImageJ toolbar and an empty sciview scene.

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F584c786a67fc6cc7ad3d6f297d538a120a242530.png?generation=1606339024538362\&alt=media)

Now open the script editor by first clicking on the ImageJ toolbar then pressing "\[". Download and open this script in the script editor to generate a 3D image volume that we can use.

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F82d1f600cbed723e78c95f74d7753ab41b098fe4.png?generation=1606339025725215\&alt=media)

Now press "Run" or Ctrl + R

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2Fd79b5d2d27c6767599cb9f114f2d03d3186e97df.png?generation=1606339026470466\&alt=media)

You can close the script editor, then "Add volume" in sciview.

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F31f41dc6c66f09b3fbd1d9e997fa64590c1fd257.png?generation=1606339027624466\&alt=media)

Then you will get a dialog where you can change the resolution of your volume's voxels (for example, if you are using confocal microscopy data, your z-resolution will be much larger)

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F711843b63e26e3a813ff9865cdb75ed7c310b5df.png?generation=1606339029308685\&alt=media)

Your volume should open up in the sciview window

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2Ff0ebddb499be9eb1b38393b1c5a70a813c7f410c.png?generation=1606339029641384\&alt=media)

Now let's do something fun. Start an animation to circle around your volume

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F26cec68bbf02f4add66ab92a8eb3c6e2819ab92d.png?generation=1606339030533489\&alt=media)

Start recording a video

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F068dece4afbcd0e2eb43baef8c8e15dbbd3059eb.png?generation=1606430826865605\&alt=media)

After some time, stop recording the video

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F7a79a0d385d56318da688ec32ac8e876e34e9423.png?generation=1606430824852716\&alt=media)

## Changing colormap

Let's change the colormap of a volume

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F6c6652cf66c0d3cfbf84a7a3bf819c5903092302.png?generation=1606430828680645\&alt=media)

Voila, now we have a new colormap

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2Fccd22b9d9619615b8d3237cfee8a802e9bbbab5f.png?generation=1606430823755033\&alt=media)

## Changing transfer function

Let's change the transfer function

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F03c6b21b8177284abf88d49cbe54aad1ebc00769.png?generation=1606430828105185\&alt=media)

Voila, now we have a new transfer function

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F880b5717e45ec09f804c012f60d35dbc4207c61b.png?generation=1606430825810536\&alt=media)

## What about timeseries?

No problem! Try the "Volume Timeseries" demo

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2Fb671ed8b5553f3f72014d76ecb2089a4fbdf5ee0.png?generation=1606481762002915\&alt=media)

You'll get a volume that looks like this

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F015cdbccaf7a99f22bd7dfc6bc73bc5be313b18a.png?generation=1606481762310221\&alt=media)

Now press play and enjoy

![](https://1840025532-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqBCy3SBefXis0YnrcI%2Fsync%2F369cf89caa2e1c0cf7702cab2265eb0b1b2812c6.png?generation=1606481761932366\&alt=media)
