# How to scale vtkTensorGlyphs to get constant size glyphs with respect to the screen

**URL:** https://discourse.vtk.org/t/how-to-scale-vtktensorglyphs-to-get-constant-size-glyphs-with-respect-to-the-screen/9020
**Category:** Support
**Created:** [July 26, 2022, 10:29am UTC](https://discourse.vtk.org/t/how-to-scale-vtktensorglyphs-to-get-constant-size-glyphs-with-respect-to-the-screen/9020 "2022-07-26T10:29:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rischoe](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/b3f665/32.png) [@rischoe](https://discourse.vtk.org/u/rischoe)
#### Post date: [July 26, 2022, 10:29am UTC](https://discourse.vtk.org/t/how-to-scale-vtktensorglyphs-to-get-constant-size-glyphs-with-respect-to-the-screen/9020/1 "2022-07-26T10:29:57Z")

</div>

With vtkGlyph3d I’m able to visualize points as spheres with constant “screensize” by using SetScaleModeToScaleByScalar and vtkDistanceToCamera to generate the distance scalars. Another point representation I want to realize is a local oriented triad on each point. Because of the orientation issue I have to use vtkTensorGlyph with tensor data for the triad directions. Everything works fine, except the scaling of the glyphs. I’d like to have a constant size of the triads with respect to the screen but until now I couldn’t find a way. Did I miss something?  
Or is there another maybe slower way via data manipulation (scaling the tensor data with scalars from vtkDistanceToCamera)

Thank you  
Richard

 ![ric-xvtk-4](https://discourse.vtk.org/uploads/default/original/2X/f/fe485f95e71fede40a1674500594ef620a0b13f4.jpeg)
