# Mrview z limit sagittal and coronal disappearing

**URL:** <https://community.mrtrix.org/t/mrview-z-limit-sagittal-and-coronal-disappearing/3045>\
**Category:** Uncategorized\
**Created:** [November 21, 2019, 3:41pm UTC](https://community.mrtrix.org/t/mrview-z-limit-sagittal-and-coronal-disappearing/3045 "2019-11-21T15:41:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![serhenmar](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@serhenmar](https://community.mrtrix.org/u/serhenmar)\
**Post date:** [November 21, 2019, 3:41pm UTC](https://community.mrtrix.org/t/mrview-z-limit-sagittal-and-coronal-disappearing/3045/1 "2019-11-21T15:41:24Z")

</div>

Hi MRtrix.

I work with images with many slices. It seems that when there are more than 2048 slices, the sagittal and coronal part of “Ortho view” becomes all black, nothing to see.

Here are some example checkerboard images to illustrate the issue:

> **[zlimit\_mifs\_uint8](https://www.dropbox.com/sh/qnp5d2sdxun2z48/AAAon3Wa46T9IT43gyIDXihva?dl=0)**
>
> Shared with Dropbox

Is this happening on your machines as well, and might it be possible to change this behaviour?

Best regards  
Simon

---

<div class="post-metadata">

**Author:** ![jdtournier](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jdtournier/32/2594_2.png) [@jdtournier](https://community.mrtrix.org/u/jdtournier)\
**Post date:** [November 26, 2019, 7:59pm UTC](https://community.mrtrix.org/t/mrview-z-limit-sagittal-and-coronal-disappearing/3045/2 "2019-11-26T19:59:43Z")

</div>

Yes, that’s a limitation of OpenGL, unfortunately. We use 3D textures to store the images on the GPU, and these are typically limited to dimensions of 2048 on typical hardware – as reported by the [GL\_MAX\_3D\_TEXTURE\_SIZE](https://feedback.wildfiregames.com/report/opengl/feature/GL_MAX_3D_TEXTURE_SIZE#16384) value. This depends on your specific hardware and OpenGL drivers.

There’s not a lot we can do about this without considerable effort. The solution would be to implement tiled rendering, which would require a lot of changes to the code. It’s not inconceivable we might do something about this in due course, but it’s unfortunately just one feature on a long list of requests…

One maybe simpler approach might be to use 2D textures when rendering in locked to axes mode (i.e. not cutting through obliquely, or using the volume render). This would still require some effort, but might be worth doing as this isn’t the first time this has been an issue…

---

<div class="post-metadata">

**Author:** ![serhenmar](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@serhenmar](https://community.mrtrix.org/u/serhenmar)\
**Post date:** [November 27, 2019, 9:29am UTC](https://community.mrtrix.org/t/mrview-z-limit-sagittal-and-coronal-disappearing/3045/3 "2019-11-27T09:29:02Z")

</div>

Thanks for the reply and explanation! I’ll enjoy the axial view then 🙂
