Fork me on GitHub
#off-topic
<
2018-03-22
>
jgh01:03:33

@qqq upload it as a texture using webgl? 😉

jgh12:03:25

oh i thought there might be a better way of doing it than iterating through the array

borkdude12:03:43

Is there an online service that turns IRC into a bit more friendly thing like Slack, so you can read the history when you’ve not connected for a while? I have setup my own znc bouncer on my VPN, but I want something I don’t have to tweak and think about very much

juhoteperi12:03:43

@borkdude IRCCloud is afaik best such service

borkdude12:03:12

@juhoteperi cool, do you use it?

borkdude12:03:55

testing it now

juhoteperi13:03:33

@borkdude Yes, though I check it quite rarely nowadays

hmaurer14:03:23

@borkdude I use IRCloud; it’s good

borkdude14:03:30

@hmaurer is there also a desktop version?

hmaurer15:03:25

@borkdude not sure; I use the web version

qqq18:03:25

I just implemented SDF in WebGL. I have compared it to other impls. I'm pretty sure I'm doing everything right. Generating a 32x32 or 64x64 image -- and then scaling it up -- it looks fine. However, when I try to scale it down to render small text (say 12 pixels tall) it looks wrong / jagged, as if someone dropped a water droplet on the text, let the ink smear, then dried it. (I suspect this has something to do with mipmapping and GL linear interpolation). Anyone know how to resolve this issue?

tbaldridge20:03:24

pics or it didn't happen 😛

qqq20:03:02

https://mapbox.github.io/tiny-sdf/ on the surface looks great, but doesn't perform so great either on smaller font size

tbaldridge20:03:41

yeah, that's aliasing at work

tbaldridge20:03:38

so in the SDF example it looks like linear interpolation is making it look like that

tbaldridge20:03:49

in the upper example that's the lack of font smoothing

qqq20:03:27

I've given up on sdf for small size text. I'm now searching for low poly fonts, and find myself on CNC / laser cutting forums, where people are talking about taking ttf fonts, then importing the geom into solidworks, changing the splines to lines, and laser cutting them.

😅 4
tbaldridge20:03:52

Yeah, be aware that this sort of stuff is not easy to fix. For the longest time OSX fonts were fuzzy, and Windows fonts were jagged

tbaldridge21:03:17

there's always bitmapped fonts

qqq21:03:41

worse yet, apparently the next level is to go into subpixel rendering, where you take the RGB layout of the LCD screen into account, as well as human perception of color, so there's not 'colored edges' -- I'm going to wait and let someone else write a nice library over GL for this 🙂