Dynamic PixelOffset - scaleByDistance, wrong position?

Hi,

for displaying a billboard/image at at given position I used pixelOffset and calculated this before I added the billboard to the entity.

I also use the function/parameter scaleByDistance, which now causes the billboard-Image to be at the wrong position.

Before scalebydistance

image

after scalebydistance:

image

The end of the white line (Polline-entity) should be the beginning of the black-line (in billboard-image)

Is it possible to interact with the scaleBydistance-function or is it possible to use our own function.

Rüdiger

Hi,

found the answer by myself:

use the pixelOffsetScaleByDistance with the same Parameter as scaleByDistance

Rüdiger

1 Like