Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - angiishere

Pages: [1]
1
Graphics / Re: Pixel Offset when drawing images
« on: January 06, 2020, 05:08:52 pm »
Yes i have noticed the problem with the texture rectangle! That's the part i meant with "rewrite a lot of code" :D

The stretching is also a good workaround but i was planing on having some borders with patterns, etc.

Nine Patch seems nice (and if i ever code a UI again i will use something like this) but at this point my UI is basically done so i don't want to change up my whole code that way :D

Thank you very much for your input!

2
Graphics / Re: Pixel Offset when drawing images
« on: January 06, 2020, 04:31:17 pm »
Hello and thank you for your answer!
I have tried out the repeated Textures and it seems to be working as expected (no more weird pixels!)

I am still hoping to find another solution because with repeated Textures i have to rewrite a lot of code.

But at least i have a working solution in case i don't. :D



3
Graphics / Pixel Offset when drawing images
« on: December 28, 2019, 11:09:38 pm »
Hello!

First time poster here (could not find an answer to my question).
I am working on a game and using sfml and c++.

I am working on an UI with basic textboxes an for the borders i draw and 8x8 image move it and draw it again (and so on). The image is Scaled by 2.
I have a system that changes my sf::View when i resize the window.

This is what it normally should look like:


But with some variations of sf::View i get this result:


i have looked for float to integer conversion or something but cant find anything.

its hard to see on these screenshots but when you zoom in, the image itself is kinda devided in half diagonally.

Does anyone have an idea?

Thanks

Pages: [1]
anything