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

Pages: [1]
1
Audio / Re: Failed to open audio device (AL_INVALID_OPERATION)
« on: November 03, 2020, 06:32:52 pm »
I found the issue, but I need help! It turns out the problem was CLion the IDE I'm using. For whatever reason when the program is ran inside of CLion the console is filled with openal errors, but when run from the terminal it works perfectly fine. Does anyone know which setting in an IDE could cause this issue?

2
Audio / Re: Failed to open audio device (AL_INVALID_OPERATION)
« on: November 03, 2020, 08:47:25 am »
After further inspection the issues occurs before the sound buffer is even loaded. Just created a sf::SoundBuffer period is the issue for me.

3
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.

4
General / Re: Disable Font Antialiasing / Smoothing
« on: October 31, 2020, 02:59:46 am »
With PR #1690 you can and should this now also do via sf::Font::setSmooth(bool) directly.

This is a very convenient change thank you. 

5
General / Re: Disable Font Antialiasing / Smoothing
« on: October 29, 2020, 08:46:45 pm »
You're right that there's no solution to your problem.

he usual advice is to modify SFML:
https://github.com/SFML/SFML/blob/master/src/SFML/Graphics/Font.cpp#L609
... changing FT_RENDER_MODE_NORMAL to FT_RENDER_MODE_MONO should do the job.

Is there any specific reason this is baked into SFML? It seems like over the years the community has been doing this work around for a while. If the "fix" is so easy why isn't this just a feature some sort of flag you can change when loading up a font. Sorry if it's deeper than that I'm not familiar with the FreeType library, but having to bring around my own build of SFML for each of my platforms just isn't something I want to maintain  ;D

6
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