bgfx
bgfx copied to clipboard
Font bleeding
Running examples on linux machine (ATI Radeon HD 6900 series, latest amd official driver) Have an issue with font examples
This is a normal font example
and this is a sdf example
Tell me if you need any additional info
I was unable to reproduce this on R7 240 with 15.200.1012.2 driver. What's exact version of your driver?
Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Antilles [Radeon HD 6990]
Driver version: fglrx 15.20.2 [Feb 27 2015]
@cyberkm My own experiences with AMD cards and Linux has been miserable. Does the problem occur elsewhere on your system? Also, which distro are you running? I've been working lots with bgfx lately and next week I should be obtaining a new power supply to run tests with my spare 7970 (eventually got fed up, went nVidia for daily use) and I'll try to reproduce the issue then.
Gentoo ~amd64.
Latest distro driver installed by #emerge ati-drivers
If I'll have free time I will try to debug the issue. The problem is that I have no spare time at the moment. :(
Hah. Same feeling. Frankly Gentoo was the only OS that would accept any wierd driver. Glad to see another Gentoo person. It'll make setting up a test environment a bit easier than using one of the lesser distros :P
Same artifacts here.
Apple x86_64 MacBookAir4,1 4 cpus MacOS Version 10.10.3
BGFX Graphics debugger is not present. BGFX Supported capabilities (renderer OpenGL 2.1, vendor 0x0000, device 0x0000): BGFX BGFX_CAPS_TEXTURE_COMPARE_LEQUAL BGFX BGFX_CAPS_TEXTURE_COMPARE_ALL BGFX BGFX_CAPS_TEXTURE_3D BGFX BGFX_CAPS_VERTEX_ATTRIB_HALF BGFX BGFX_CAPS_INSTANCING BGFX BGFX_CAPS_RENDERER_MULTITHREADED BGFX BGFX_CAPS_FRAGMENT_DEPTH BGFX BGFX_CAPS_INDEX32
Update: Ubuntu 15.04 64bit Same device as before, same driver version (but from official Ubuntu repository now)
Same bug :)
Ok, I see, its not related to driver, i just ran it on Ubuntu 15.04 64bit with same graphic card but different driver (opensource one) and mesa 10.5.9. Same bleeding.
Adding an outline of 1, consistent with the black glyph:
///make sure the black glyph doesn't bleed by using a one pixel inner outline
m_blackGlyph.regionIndex = m_atlas->addRegion(W, W, buffer, AtlasRegion::TYPE_GRAY, 1);
e.g.
bool FontManager::addBitmap(GlyphInfo& _glyphInfo, const uint8_t* _data) { _glyphInfo.regionIndex = m_atlas->addRegion( (uint16_t) ceil(_glyphInfo.width), (uint16_t) ceil(_glyphInfo.height), _data, AtlasRegion::TYPE_GRAY, 1); <<== 1 return true; }
resolves this in my case.
Having the same exact issue on Arch Linux with a pretty old Radeon HD 6870. I'm using the open source radeon driver.
Even though this issue is pretty old, I still have the exact same problem on Arch Linux with Radeon RX 570.