# OpenAnatomy gltf changing mesh colors

**URL:** <https://discourse.slicer.org/t/openanatomy-gltf-changing-mesh-colors/21655>\
**Category:** Support\
**Tags:** segmentation, openanatomy\
**Created:** [January 27, 2022, 2:47pm UTC](https://discourse.slicer.org/t/openanatomy-gltf-changing-mesh-colors/21655 "2022-01-27T14:47:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 14, 2022, 2:38am UTC](https://discourse.slicer.org/t/openanatomy-gltf-changing-mesh-colors/21655/3 "2022-03-14T02:38:46Z")

</div>

I’ve submitted a fix to VTK that allows setting PBR parameters directly (by setting interpolation mode to PBR in the VTK actor properties), this fix is included in Slicer Preview Release from tomorrow. I’ve also updated SlicerOpenAnatomy extension to take advantage of this and copy PBR material properties directly to the output file. Therefore, for more accurate reproduction of color and surface appearance in glTF files, you can set model display properties to use PBR rendering. When using PBR interpolation it is also recommended to enable image-based lighting, as described [here](https://discourse.slicer.org/t/new-feature-basic-support-for-physically-based-rendering-pbr/21725).

I’ve also updated export of non-PBR materials so that the color is made more saturated during export. This makes the color of the exported models more similar to the original appearance in Slicer.

---

_[View the full topic](https://discourse.slicer.org/t/openanatomy-gltf-changing-mesh-colors/21655)._
