[vtkusers] How to preserve objects size when moving camera

Andrey Ivanov andrei.ivanov at phystech.edu
Fri Dec 14 10:54:41 EST 2018


I am trying to draw a lot of objects with the same shape for CAD system.
Let it be stars or circles for example.
The number of such circles can be about 1000-10000.
I would like to *preserve their size* when moving the camera, scaling
frustrum and changing distance to objects.

For now I found two approaches:

1. Use vtkDistanceToCamera
An example from
is great
for low number of objects, however when their numer grows, the interface
starts to freeze due to
rescaling of shapes on each interaction with camera.

2. Use points (squares with width equal to 4 pixels).
It works fast and points size is fixed, but I would like to have more
complex shapes, like triangles and circles.

Is there another approach to solve this problem? It seems that with pure
OpenGL this can be implemented rather efficiently,
so I am looking for a way to do it in VTK.

Best regards,
Andrey Ivanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181214/c874dee0/attachment.html>

More information about the vtkusers mailing list