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 - uint9

Pages: [1]
1
Graphics / Re: Rendering sprites at floating point positions
« on: March 31, 2013, 08:53:04 pm »
Smoothing the texture when rasterized at decimal coordinates. After some googling I found another post of yours which explained how it works though, so thanks ;)

2
Graphics / Re: Rendering sprites at floating point positions
« on: March 31, 2013, 07:59:26 pm »
Thank you for the response!
I wrote a small piece of code and used a different image. Turns out I was using a bad texture the first time, so now it works.

For the record what is this process called?

3
Graphics / Rendering sprites at floating point positions
« on: March 31, 2013, 03:43:23 pm »
Hello, I am using SFML 2.0.
If I try to draw a sprite between two pixels, it looks like the texture is clamped to integer coordinates before being drawn.

I'm looking for a way to get results similiar to the screenshow below (drawing the same sprite in Love2D), where the texture edges are smoothed between the pixels.

I have tried using texture.setSmooth(true), but it appeared to only affect resizing.

[attachment deleted by admin]

Pages: [1]