Hello,
I am trying to symbolize the relationships between UI elements with some lines.
These lines might be rotated, which necessitates using Urho3D::Sprite elements. I create a Sprite element with the required line width and stretch the texture onto that.
For a “simple” (uniformly colored) line this works perfectly fine.
Now I want to display a different kind of relationship where there is transparency dividing the line continously.
But I just can’t get it to wrap the texture properly, instead it always stretches it. I have tried playing around with Sprite->GetTexture()->SetAddressMode(…) and setting U (and V) to Urho3D::TextureAddressMode::ADDRESS_WRAP but it is still stretched.
Here is a visualisation, the horizontal “line” is the problem:
It was strange that the texture is just cut off without BLEND_ALPHA mode. Just like how the colors are somehow different from the actual texture, but both those things are not much of an issue.
But now I am kind of stuck with the stretched texture, and it should somehow be possible to get it to wrap properly?
The only relevant topic I had found is this but that does refer to “regular” sprites, not UI sprites I guess.
Anyone know what the problem might be?