# is it possible to use vtkDistanceToCamera to keep an actor size fixed without using vtkGlyph3D

**URL:** https://discourse.vtk.org/t/is-it-possible-to-use-vtkdistancetocamera-to-keep-an-actor-size-fixed-without-using-vtkglyph3d/1559
**Category:** Support
**Created:** [August 12, 2019, 1:58pm UTC](https://discourse.vtk.org/t/is-it-possible-to-use-vtkdistancetocamera-to-keep-an-actor-size-fixed-without-using-vtkglyph3d/1559 "2019-08-12T13:58:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![embeddedmz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/embeddedmz/32/12_2.png) [@embeddedmz](https://discourse.vtk.org/u/embeddedmz)
#### Post date: [August 12, 2019, 1:58pm UTC](https://discourse.vtk.org/t/is-it-possible-to-use-vtkdistancetocamera-to-keep-an-actor-size-fixed-without-using-vtkglyph3d/1559/1 "2019-08-12T13:58:18Z")

</div>

Hi,

First of all, there’s this example : [https://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DistanceToCamera](https://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DistanceToCamera) that shows how to keep 2 arrows size fixed, whatever the camera zoom level using vtkDistanceToCamera and vtkGlyph3D.

I took this last example and I successfully replaced the arrows by a PNG image file texture mapped on a plane. I used this example to create the PNG glyphs : [https://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TextureMapPlane](https://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TextureMapPlane)

My question is : Is there another way other than using vtkGlyph3D to use vtkDistanceToCamera to keep the PNG image size fixed (or even a vtkArrowSource).

Thanks.

---

<div class="post-metadata">

### Author: ![embeddedmz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/embeddedmz/32/12_2.png) [@embeddedmz](https://discourse.vtk.org/u/embeddedmz)
#### Post date: [August 12, 2019, 2:45pm UTC](https://discourse.vtk.org/t/is-it-possible-to-use-vtkdistancetocamera-to-keep-an-actor-size-fixed-without-using-vtkglyph3d/1559/2 "2019-08-12T14:45:59Z")

</div>

The answer is yes, I have to use a vtkGlyph3DMapper instead of vtkPolyDataMapper.
