Search
Friday, 27th of April 2018, 14:35:14 UTC
14:53:58
loke
Now that I have a better font renderer, I've been able to make some progress on Climaxima: https://photos.app.goo.gl/1lv11fEGG01QIt5B3
14:57:54
loke
My square root symbol looks horrible though, as I'm drawing it using draw-line
15:00:16
loke
I'm tempted to go down yet another rabbit hole; to implement A lines drawing. And that would be A with subpixel sampling of course, because I'm a machosist
15:00:49
beach
Oh, don't do subpixel. Just do grayscale.
15:01:32
loke
I have to to learn how to use Xrender for that though
15:02:52
loke
beach: Most people write integrals like: ∫ f(x) dx
15:02:56
beach
Or, rather, partial transparency.
15:03:06
loke
However, I prefer writing it like ∫dx f(x)
15:03:25
loke
should I make that configurable?
15:04:38
beach`
I think it is safe to forget about subpixel anti-aliasing.
15:06:20
beach
Resolution is getting better very fast.
15:06:33
loke
beach: Yes. You are right about that.
15:06:47
beach
Also, it only works for black-and-white.
15:07:04
beach
Only works on screens where the pixels are evenly spaced.
15:07:34
loke
subpixel? Well, kinda. It does work for colour, but I believe the algorithm is messy. I'm juts letting xrender and freetype handle it for me.
15:07:39
loke
But that's for text of course.
15:10:10
jackdaniel
imo optional antialiasing would be really good for mcclim. right now arrows which are not aligned to xy axis for that instance look atracious
15:10:42
beach
Yes, AA would be very good.
15:11:01
loke
beach: The solution seems simple enough
15:11:21
loke
Ass we habve to do is to use xrender for drawing lines instead of the older Xlib primitives
15:11:29
loke
https://en.wikipedia.org/wiki/X_Rendering_Extension
15:13:48
loke
OK, it has functions to do lines and polygons.
15:14:05
loke
I think we can simply replace a few calls in strategic locations and we'll have AA
15:14:47
loke
Drawing text using xrender seems to be harder than drawing lines, and I've already done text :-)
15:15:47
jackdaniel
I'd very much appreciate such PR
15:17:55
loke
I'll play around with that tomorrow :-)
15:17:56
jackdaniel
does it apply to other primitives like draw-arc, draw-rectangle etc?
15:19:53
loke
No. It basically has triangles. Lines would be a very thin plygon .
15:20:18
beach
You have to turn arcs and Bézier curves into lines and triangles.
15:20:24
loke
One can also draw a monochrome AA arc in memory, and blit it using xrender. I'd imagine that to be rather inefficient htough.
15:20:37
loke
I will play around with this to see what it's capable of.
15:23:28
loke
I think my font code is pretty much ready now though.
15:23:49
loke
It needs better configurability, but that will be improved once I get my configuration framework done.
15:28:13
loke
Are you guys willing to merge?
15:29:17
beach
I am for it if the code is good enough.
15:29:36
loke
(I was referring to the font code, not the future AA code :-) )
15:30:00
loke
There is certainly more hacking I can do on it, and I'm in no particular hurry to merge
15:30:14
loke
But at this point is pretty much works, and needs more testing.
15:36:36
fittestbits
Hi all - loke - your Climaxima output looks great!
15:37:31
fittestbits
jackdaniel - watched your video, looks good. I'm looking forward to where you go with it.
15:41:11
jackdaniel
loke: unless someone else reviews your code I'll go over it after long weekend if that's fine. are there any instructions how to activate/deactivate it? or some summary of what has been changed?
15:43:55
jackdaniel
if you are satisfied with current state, plese remove [wip] tag
15:44:16
loke
The current code autoamtically activates it (there is a SETQ in the main file). It's activated by a :FONT-RENDERER option in the path.
15:44:29
loke
Just looking at the SETQ line there should make things pretty clear.
15:46:01
loke
https://github.com/lokedhs/McCLIM/blob/freetype2/Extensions/fonts/freetype.lisp#L9
19:59:23
jackdaniel
I consider putting the videos as a playlist (so pieces vary between 10 and 30 minutes) instead of posting one over-2h-video
21:40:55
makomo
jackdaniel: that would be ok if the videos are logically separated. if they aren't, maybe just a list of timepoints in the description could do
Saturday, 28th of April 2018, 2:35:14 UTC