# what's the meaning of Set Depth Image Scalar Type To UChar,UShort(other than Float)should be used at what situation?

**URL:** https://discourse.vtk.org/t/whats-the-meaning-of-set-depth-image-scalar-type-to-uchar-ushort-other-than-float-should-be-used-at-what-situation/12188
**Category:** Support
**Created:** [August 23, 2023, 12:09pm UTC](https://discourse.vtk.org/t/whats-the-meaning-of-set-depth-image-scalar-type-to-uchar-ushort-other-than-float-should-be-used-at-what-situation/12188 "2023-08-23T12:09:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gpu](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/g/e47c2d/32.png) [@gpu](https://discourse.vtk.org/u/gpu)
#### Post date: [August 23, 2023, 12:09pm UTC](https://discourse.vtk.org/t/whats-the-meaning-of-set-depth-image-scalar-type-to-uchar-ushort-other-than-float-should-be-used-at-what-situation/12188/1 "2023-08-23T12:09:28Z")

</div>

what’s the meaning of SetDepthImageScalarTypeToUnsignedChar and SetDepthImageScalarTypeToUnsignedShort, other than SetDepthImageScalarTypeToFloat?  
isn’t DepthBuffer normally use float? if use UChar/UShort, how to decide the depth value?  
Thanks!
