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.


Topics - Kuliu

Pages: [1]
1
Audio / Failed to open audio device (AL_INVALID_OPERATION)
« on: November 02, 2020, 10:03:57 am »
When trying to load a sound from file it successfully loads then spams the output with

(click to show/hide)

This is the simple test code I'm running
           
int main() {
    sf::SoundBuffer test { };
    if (test.loadFromFile("explosion.ogg")) {
        sf::Sound test_sound { test };
        test_sound.play();
    }
}
 

Also note I'm running on Ubuntu 20.04.1 LTS using pulseaudio
I uninstalled pulseaudio and reinstalled it but the issue continues.
This problem doesnt occur when this is built out on windows so I'm not entirely sure what the issue is.

2
General / Disable Font Antialiasing / Smoothing
« on: October 26, 2020, 10:05:36 pm »
Let me preface this post with the fact that, yes I have seen the 100 other posts on this exact topic but I cant find a solid solution in any of that material to achieve what I want.

I want to use a Bitmap font with the SFML font but no settings allow me to disable the smoothing or baked in antialiasing.
I have seen the multitude of posts saying to
Quote
const_cast<sf::Texture&>(font->getTexture(13)).setSmooth(false);
This does disable the smoothing / filtering of the actual texture but the font its self has some sort of baked in antialising applied to it that I want to disable.

This is what the result of the the line of code above provides but you can see how its trying super hard to make this pixel font smooth.


This is the actual desired result I would like to achieve

Sharp clean pixels without any type of antialising or smoothing applied.

Pages: [1]
anything