Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

  • Correspondence
  • Published:

3Dscript: animating 3D/4D microscopy data using a natural-language-based syntax

This is a preview of subscription content, access via your institution

Relevant articles

Open Access articles citing this article.

Access options

Buy this article

Prices may be subject to local taxes which are calculated during checkout

Fig. 1: Natural-language-based animation.

Code availability

The peer-reviewed version of the software is available as Supplementary Software. The source code is available at https://github.com/bene51/3Dscript, and binary releases for Windows, Linux and Mac OS X versions are available from our Fiji update site, https://romulus.oice.uni-erlangen.de/updatesite/. User documentation is available at https://bene51.github.io/3Dscript.

Data availability

All raw data used to create the figures and videos in this paper are available from the corresponding author upon reasonable request.

References

  1. Wan, Y., Otsuna, H., Chien, C.-B. & Hansen, C. IEEE Pac. Vis. Symp. 2012, 201–208 (2012).

    Google Scholar 

  2. Schindelin, J. et al. Nat. Methods 9, 676–682 (2012).

    Article  CAS  Google Scholar 

  3. Rueden, C. T. et al. BMC Bioinformatics 18, 529 (2017).

    Article  Google Scholar 

  4. Royer, L. A. et al. Nat. Methods 12, 480–481 (2015).

    Article  CAS  Google Scholar 

  5. Schmid, B., Schindelin, J., Cardona, A., Longair, M. & Heisenberg, M. BMC Bioinformatics 11, 274 (2010).

    Article  Google Scholar 

  6. Pietzsch, T., Saalfeld, S., Preibisch, S. & Tomancak, P. Nat. Methods 12, 481–483 (2015).

    Article  CAS  Google Scholar 

Download references

Acknowledgements

We thank J. He and E. Haynes for the time-lapse image data of the zebrafish nervous system; A. Wandersee for the image data of the mouse organoid; D. Thieme for the image data of the human cornea; and A. Schmied and K. Enderle for extensive testing and feedback. This work was supported by DFG-CRC1181 Z02 (T.F.); DFG-CRC1181 C02 and DFG-FOR2438 P9 (C.K., A. Schmied and K. Enderle; awarded to C. Neufert, Med1, UK Erlangen); DFG-CRC1181 C05 and DFG-CRC796 B9 (A. Wandersee and B.R.; awarded to C. Becker, Med1, UK Erlangen); DFG-CRC1181 A02 (A.G.); and ERC-2014-CoG 647885 (SmartMic; J.H.).

Author information

Authors and Affiliations

Authors

Contributions

B.S., R.P. and J.H. conceived the project. B.S. designed and implemented the software. C.K., B.R. and A.G. prepared samples and acquired imaging data. P.T. and T.F. tested the software on image data from multiple acquisition modalities. B.S., R.P. and J.H. wrote the manuscript. R.P. and J.H. supervised the project.

Corresponding author

Correspondence to Benjamin Schmid.

Ethics declarations

Competing interests

The authors declare no competing interests.

Integrated supplementary information

Supplementary Figure 1 Screenshot of all software components.

Top: The ImageJ main window. Left: The animation editor, which is based on the Fiji Script Editor. Middle: The 3D window with the rendering output. Right: The control window for adjusting all possible settings of the integrated 3D renderer.

Supplementary Figure 2 Influence of non-linear gamma adjustment on the rendering output.

Leaf of A. thaliana, acquired with a Zeiss LSM880 NLO 2-photon microscope. All nine panels are rendered with identical settings for intensity and opacity minimum and maximum. Gamma for intensity increases from top to bottom (0.5, 1, 2), gamma for opacity increases from left to write (0.5, 1, 3). Scale bar: 50 µm..

Supplementary Figure 3 Comparison of different rendering algorithms.

From left to right: Independent transparency, combined transparency and maximum intensity projection rendering of colon tumors in an inflammation-related mouse colon cancer model. Images were acquired on a light sheet microscope after blood vessel staining (CD31; red) and ECi-based tissue clearing1. Gray: autofluorescence, scale bar: 500 µm.

Supplementary Figure 4 Using virtual lighting to emphasize surfaces.

Left: No lighting. Middle: ko = 0.7, kd = 0.3, ks = 0.2, s = 20. Right: ko = 0.4, kd = 0.5, ks = 0.3, s = 20. ko, kd, ks and s are the parameters of the Blinn-Phong shading model for the contributions of object light, diffuse light, specular light and shininess, respectively. No surfaces (e.g. in form of triangle meshes) were calculated. Example MRI dataset bundled with ImageJ, scale bar 20 mm.

Supplementary Figure 5 Extendibility of our framework.

In general, any third-party rendering software can integrate our text-based animation framework by implementing a couple of interfaces defined by our module. We have implemented modules that use POV-Ray (shown here) and the ImageJ 3D Viewer for rendering.

Supplementary information

Supplementary Information

Supplementary Figures 1–5 and Supplementary Notes 1–8

Reporting Summary

Supplementary Software

3Dscript—text-based animation.

Supplementary Video 1

Simultaneous rotation around multiple axes. 3D animation of mouse colon tumors using blood vessel staining (CD31, red), ECi-based tissue clearing and a LaVision BioTec lightsheet UltraMicroscope II (see also Fig. 1). The image volume is rotated around its y-axis (with a higher speed) and around the x-axis of the view (with a lower speed). Only a couple of text lines (Supplementary Notes, https://bene51.github.io/3Dscript/gallery.html) are required to describe an animation, which is hard to achieve with key frame-based animation. Scale bar, 500 μm.

Supplementary Video 2

Animated transformation through time. Animation of a growing zebrafish nervous system, imaged on a custom-built light-sheet microscope. While the time-lapse progresses, the image volume is spatially transformed. The animation text is available in the Supplementary Notes and at https://bene51.github.io/3Dscript/gallery.html. Scale bar, 100 μm.

Supplementary Video 3

Simultaneous pivoting and channel switching. Animation of a mouse paw, imaged on a LaVision BioTec light-sheet UltraMicroscope II. Pivoting is implemented with a macro. The animation text is available in the Supplementary Notes and at https://bene51.github.io/3Dscript/gallery.html. Scale bar, 500 μm.

Supplementary Video 4

Consecutive zoom-in and scroll-through at different positions. Animation of a mouse paw, imaged on a LaVision BioTec light-sheet UltraMicroscope II. The animation text is available in the Supplementary Notes and at https://bene51.github.io/3Dscript/gallery.html. Scale bar, 500 μm.

Supplementary Video 5

Macro for parameterized zooming. Animation of a human cornea imaged on a Zeiss LSM880 NLO two-photon microscope. The dataset is elongated in one dimension. Instead of zooming out during the entire animation, the zoom is adjusted to the rotation to always fill the available video canvas optimally, using a macro. The animation text is available in the Supplementary Notes and at https://bene51.github.io/3Dscript/gallery.html. Supplementary Video 6 and the Supplementary Notes describe in detail how this animation was created. Scale bar, 50 μm.

Supplementary Video 6

Composing an animation. This screencast demonstrates how the animation of the human cornea (Supplementary Video 5) is built up, and highlights the auto-completion features of the Animation Editor. A detailed step-by-step description also can be found in the Supplementary Notes.

Supplementary Video 7

Auto-completion. A dedicated animation editor, based on Fiji’s script editor, facilitates the composition of the animation description with auto-completion and recording capabilities.

Supplementary Video 8

The dedicated animation editor can record different rendering states and automatically create the description text to transition between them.

Supplementary Video 9

Rendering of an MRI image volume of a human head using the BigDataViewer. To demonstrate the extendibility of our framework, we wrote an adaptor for Fiji’s BigDataViewer. The animation text is available in the Supplementary Notes and at https://bene51.github.io/3Dscript/gallery.html.

Supplementary Video 10

Photo-realistic rendering of an organoid from the mouse intestine in a laboratory environment using POV-Ray. To demonstrate the extendibility of our framework, we wrote an adaptor that uses POV-Ray, a software for photorealistic rendering, instead of the integrated 3D renderer. The animation text is available in the Supplementary Notes and at https://bene51.github.io/3Dscript/gallery.html.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Schmid, B., Tripal, P., Fraaß, T. et al. 3Dscript: animating 3D/4D microscopy data using a natural-language-based syntax. Nat Methods 16, 278–280 (2019). https://doi.org/10.1038/s41592-019-0359-1

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1038/s41592-019-0359-1

This article is cited by

Search

Quick links

Nature Briefing AI and Robotics

Sign up for the Nature Briefing: AI and Robotics newsletter — what matters in AI and robotics research, free to your inbox weekly.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing: AI and Robotics