Here’s a sneek peek at the next update to #thelunartic. Not just real shadows, but great atlas features powered by the amazing @SlugLibrary
Eric Lengyel
Eric Lengyel is a computer scientist specializing in computer graphics, game engine development, and geometric algebra. He holds a Ph.D. in computer science from the University of California, Davis and a master's degree in mathematics from Virginia Tech, where he also competed in cross-country and track and field. More on Wikipedia
-
Eric Lengyel reposted
Richard S. Wright Jr
@AccidentalAstro
-
Eric Lengyel reposted
Radical Pie
@RadicalPieMath
Version 1.17 of Radical Pie has been released. Major features in this release include the ability to convert classic MathType equations and a new dedicated evaluation structure consisting of a long vertical line or bracket with limits. This is a free upgrade for all users.
-
Eric Lengyel
@EricLengyel
I spent the last few days writing code that converts old MathType equations to Radical Pie. There was a lot to it, and inaccurate docs meant I had to do some reverse engineering, but just about every detail has been covered. This feature will be available in Radical Pie 1.17.
Eric Lengyel
@EricLengyel
In the video above, an embedded MathType equation is being copied from a Word document and pasted inside the Radical Pie equation editor. I'm going to see what I can do about in-place conversion as well.
-
Eric Lengyel
@EricLengyel
-
Eric Lengyel reposted
Casey Muratori
@cmuratori
We have origin and/or "ingredient" labeling for most kinds of consumer products. It is an anomaly that software has not been required to have such disclosures. I think it's very reasonable to require AI use to be disclosed, as well as other information that may be relevant.
Tim Sweeney
@TimSweeneyEpic
Forcing developers to write a political statement to be used against them by the hate mob they’re helping organize is abhorrent.
-
Eric Lengyel
@EricLengyel
Radical Pie handles equations brilliantly but still needs Word for a document's main text. That comes with annoying problems that will never be fixed. For years, I've dreamt of writing the whole word processor with the same level of craftmanship, and now that is going to happen.
-
Eric Lengyel
@EricLengyel
Radical Pie uses Slug to draw its entire UI as vector graphics on the GPU. Not just text. Buttons, icons, check boxes, scroll bars, sliders, palettes, ..., everything.
-
Eric Lengyel
@EricLengyel
-
Eric Lengyel reposted
Ignacio Castaño
@castano
Last week marked four years of Ludicon! A brief retrospective on how things are going and where they’re headed:
www.ludicon.com/castano/blog/2026/10/4-years-of-ludicon/ -
Eric Lengyel reposted
Erin Catto
@erin_catto
Contact Recycling - making contact generation almost free. box2d.org/posts/2026/10/contact-recycling/
-
Eric Lengyel
@EricLengyel
Radical Pie was first released about one year ago! It has already received 16 major updates that include a huge number of new features and general improvements. The best WYSIWYG equation editor ever made just keeps getting better!
radicalpie.com
Radical Pie
@RadicalPieMath
Version 1.16 of the Radical Pie equation editor has been released. This version includes a lot of new font handling capabilities and several miscellaneous improvements. This is a free upgrade for all users.
-
Eric Lengyel
@EricLengyel
Slug has been going strong for 10 years! This is the 34th update to the library that set a new standard for font rendering and vector graphics in 3D applications. You've probably seen it in a game you've played or some other software you've used without even realizing it.
Slug Library
@SlugLibrary
Slug version 7.6 has been released. This update includes a variety of improvements described in the release notes at the end of the user manual.
-
Eric Lengyel
@EricLengyel
Amazon is currently offering a heavy discount on PGA Illuminated. If you were considering getting it before but weren't sure you wanted to pay a lot, now's a good time to grab it for cheap. (I don't have any control over the sale price--it's all them.)
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20
Eric Lengyel
@EricLengyel
I'm very grateful that my book is still getting reviews like this two and a half years after publication.
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
I'm very grateful that my book is still getting reviews like this two and a half years after publication.
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel reposted
Fronkon Games
@fronkongames
GPU Text Rendering Explained: SDF, MSDF, Slug, Rive, and Texture Atlas Compared
alphapixeldev.com/sdf-vs-msdf-vs-slug-vs-rive-gpu-text-re…
#indiedev #texture #textrendering #gamedevelopment #rendering #gamedev #msdf #textureatlas #gpu -
Eric Lengyel
@EricLengyel
I started with Apple Pascal around 1984, if you don't count Applesoft BASIC or the mini-assembler. It was so sleek it only used 64 kB of memory!
Sebastian Aaltonen
@SebAaltonen
I started with Turbo Pascal 7.0. Such a nice IDE. No bloat. Started instantly. All of these new ones have so many issues.
-
Eric Lengyel
@EricLengyel
Even a year of updates is generous for this kind of licensing model. In the old days, when you bought a software product, that exact version is what you got. It worked forever, but you weren't entitled to any updates at all. When you wanted a new version, you paid for it.
Wassim Alhajomar
@Wassimulator
I'm not sure at what point this entitlement settled in that perpetual licenses must also include perpetual updates? Do people think good software grows on trees?
When did we suddenly OWE you anything?
Eric Lengyel
@EricLengyel
Doing things this way still costs you less than modern subscription models, which are absolutely wretched. Most software today quits working altogether if you stop making your regular payments. You're renting it, and you're paying more than what it used to cost to own it.
-
Eric Lengyel reposted
Sander 🇳🇴
@SanderSkjegstad
I wanted to write this once things started cooling off after @BetterSoftwareC 2026 and the release of @Blick_Editor, but it doesn't seem like I'll be getting any less busy for a while, so I'm just typing this out and posting while traveling for a shoot. This year of BSC was all the follow-up we could've asked for. Once again, graciously, we received so many fantastic talks, from so many fantastic speakers. It's the most humbling honor to be entrusted with polishing and sharing these valuable few artifacts of programming wisdom, history and knowledge with the world. Massive, massive thanks to all the speakers. As you probably know, we do not take this privilege lightly.
I would like to give an extra thank you to @cmuratori, not just for delivering yet another fantastic and important opening talk, but also because immediately after BSC last year, he vowed to help me with AV for 2026, and enthusiastically followed up when the time came. It was a lot of fun getting to share what I do at the conference with someone, but not going to lie, it being Casey made it a little extra fun. Swell fellow. Meet your heroes, everyone. Highly recommended.
Also helping out on AV, and rigging, and lugging stuff around, were our great friends Charlie, Andrew, Shwa, Terry, our legendary cameraman Sindre, and of course the one and only Sam. You guys made the extra burden I put on myself for pushing the quality and setup this year far lighter. Thanks to Kasper for lending us his extremely overpowered tripod!
I genuinely thought that investing in a better setup with more nice equipment would ease my job, but it really didn't, it was just more stuff to plan and think about. It did help for raising the bar in various cool ways, which will hopefully become apparent in the official YouTube versions of the talks, however what I've come to learn is that the only things that make your job easier are:
- Replacing untrustworthy equipment
- Planning more
- Preparing and testing your plans more
Adding more pieces to the equation never simplifies things. Also, turns out Twitch will just silently fail sometimes if you try to stream in 1440p or higher without being a partner. They don't tell you this when you do it. It just works, but not for every viewer. Some of them get an error with no explanation, some of them don't. Thanks for that.
My bitterest regret of BSC 2026 was being so busy the whole time, so I couldn't hang out in the evenings. There were so many conversations unhad, whiteboard diagrams undrawn, Quake rounds unplayed, and laughs unshared. There were even a few hands I didn't shake! Worse yet was that I didn't even get to jump in the lake with people a single time!!! I swear will do my utmost to avoid doing a talk next year.
The night before our Blick talk on the second day, I got a total of about 2 hours of sleep inside the venue, behind the projector screen. I didn't have time to go home. Our presentations still needed work, the backups needed babysitting, a key microphone had gone missing, and so on. I had a single dinner at BSC with my shoulders down. The rest of the time, there were always half a dozen things hanging over me I had to race back to the venue to get done before I could squeeze in some sleep. Next year, I just want to do my job on AV, have that run smoothly with far fewer fires to flatten, and hang out with the absolutely magnificent community we have in the evenings.
Huge shoutout to Sindre, here, for just deciding to step in and start doing the footage backups for me in the evenings. This lifted an immense load off my shoulders, knowing an absolute professional was taking care of one of the most sensitive aspects of the operation. Thank you.
The later parts of BSC, when things were calming down I finally got to bathe in the infectious energy of the people you'll find gathering around the various whiteboards strewn about the place. Though I probably stammered and lagged significantly, I felt great running purely off this energy by osmosis. It is the most inspiring and engaged environment I've ever experienced. No university, course, bootcamp or class has or will ever come close, I'm certain of it. It genuinely makes you want to explode with excitement to just sit down, with your keyboard, editor and compiler, and just get programming.
Thank you to the attendees in general. People stepping in, helping out, picking up unfamiliar things in minutes and just getting it. This thing was a collective effort, and could never have gone as well as it did, if it wasn't for our great attendees and friends. You people never cease to amaze me, and I had a bloody amazing time.
Can't wait to do it all again, and I can't wait to deliver VoDs TO THE PEOPLE! YES, THEY'RE ON THEIR WAY, PROOF ATTACHED! I apologize for the delay. This season, I've been busier than ever before. -
Eric Lengyel
@EricLengyel
I have attempted to contact several prominent YouTubers who create mathematical content so that Radical Pie could sponsor some of their videos. I'm trying to pay them big bucks, and no one has responded after several weeks. Not sure what to make of it.
-
Eric Lengyel
@EricLengyel
It's been a long time since I paid any attention to MathML, but I implemented export support for it in the latest version of Radical Pie because some people wanted it for accessibility reasons.
Eric Lengyel
@EricLengyel
In my opinion, MathML is a very poorly designed format, and the current browser rendering quality is abysmal.
-
Eric Lengyel reposted
Miklos Koren
@korenmiklos
The bulk, the slowness, and the ugliness of (La)TeX piss me off.
It's 2026. Why does compiling a scientific document take 8 seconds and result often in impossible-to-debug errors?
TeX was a beautiful piece of software in 1978. Time to move on. -
Eric Lengyel
@EricLengyel
From a Microsoft engineer.
bsky.app/profile/kirillosenkov.com/post/3mtoz6bet3s2w -
Eric Lengyel
@EricLengyel
The PowerPoint team lead at Microsoft has gotten involved. Hopefully, this means live embedded Radical Pie equations will soon be working perfectly in PowerPoint presentations just as they already do in Word documents.
Eric Lengyel
@EricLengyel
I talked to someone at Microsoft support today and identified myself as the creator of Radical Pie. I demonstrated a serious bug in PowerPoint that I wanted to report. He immediately said there was no issue in PowerPoint and that I should contact the developers of Radical Pie.🤦♂️
-
Eric Lengyel reposted
Jeff Russell
@j3ffdr
The new text tools in our current release are pretty cool. These systems are based on Slug text rendering (@EricLengyel)
Marmoset
@marmosetco
✨ New in Toolbag 5.03: Text Layers!
Text Layers let you quickly add brand names, labels, technical markings, & other writing to your Texture Projects. Add them from the Vector dropdown in the Layers menu (3D Text or Decal Text), then customize settings with the built-in tools. -
Eric Lengyel
@EricLengyel
This Illustrator bug has already been fixed and shipped. Kudos to Adobe.
Eric Lengyel
@EricLengyel
On the topic of Adobe, I recently reported a bug in Illustrator that appeared in the latest update (version 30.5.1). I got a surprisingly fast response and acknowledgement that they were able to reproduce it. Microsoft should take notes.
-
Eric Lengyel
@EricLengyel
I talked to someone at Microsoft support today and identified myself as the creator of Radical Pie. I demonstrated a serious bug in PowerPoint that I wanted to report. He immediately said there was no issue in PowerPoint and that I should contact the developers of Radical Pie.🤦♂️
-
Eric Lengyel
@EricLengyel
Heh, Michael Penn invented a new notation for "almost an element of" in this video, so of course I added it to the math font in the next version of Radical Pie.😀
www.youtube.com/watch?v=NNmLocqtbgg -
Eric Lengyel
@EricLengyel
Radical Pie runs just fine under Wine for Mac.
-
Eric Lengyel
@EricLengyel
If you're on faculty at a university and you'd like to have a free academic version of Radical Pie that works through the end of 2026 for your entire department, then please email me at lengyel@terathon.com from your institution account.
radicalpie.com -
Eric Lengyel
@EricLengyel
This would have been right on point 15 years ago as well.
Ryan Fleury
@rfleury
I have posted two updates about RADDBG on Linux, and all I can say is that, while the majority of responses have been very positive, the rest make it obvious why it has taken so long for the Linux ecosystem to provide a ~viable consumer desktop experience (for Windows to decay so much that there is not really any alternative).
There is no coherency in the design of the platform. There is no sane team calling the shots, so the user base spends their time bikeshedding over what should be trivialities. Everybody has an opinion about everything. Window managers (X11? Wayland? X11 on Wayland?), to package managers, to libc versions, to the right folder to use for X/Y/Z, to which shell interpreter to use, to how to ask the user for a file path (libportal? zenity?), to how to show the user a trivial message box, and so on. And this is just the beginning—the trivial stuff that most people reading this will get, without needing a ton of extra context.
If your users or developers are debating about any of this, YOU FAILED. The platform SUCKS. It will only succeed when centralized teams (e.g. shipping hardware using the Linux ecosystem) steer the ship and make decisions. Then, people write to that, and that becomes the actual standard. -
Eric Lengyel
@EricLengyel
It has been about 10 months since Radical Pie was first released. In that time, 14 free updates have been provided containing new typographic capabilities, new usability features, expanded LaTeX compatibility, and lots of additions to the built-in math font.
Radical Pie
@RadicalPieMath
Version 1.14 of the Radical Pie equation editor has been released. This version includes a new monospace style, control over dotless base symbols, new matrix element vertical alignment options, and a few additions to the Radical font. This is a free upgrade for all users.
-
Eric Lengyel reposted
Casey Muratori
@cmuratori
Tangentially: the only reason OP is able to "stop looking at assembly" is because a bunch of other people still do. There are compiler codegen bugs constantly, but OP never knows about them because other people who do read ASM find, report and/or fix them before they cause too many downstream problems.
Another way to say this is that the "compiler" does not "get it right". A ton of people, constantly reading the ASM that the compiler outputs, work together to "get it right".... eventually :)
So the proper way to look at this is, if you've stopped reading ASM, that's not because codegen was solved, but rather that you have implicitly decided to outsource to other people the problem of keeping codegen working reliably.
jimmah
@jamesdouma
I might never look the source again. It was nearly a half century ago that I stopped looking at assembly because I trusted the compiler to get it right. This feels like that.
-
Eric Lengyel
@EricLengyel
The guys who made Blick gave an awesome talk about it at the Better Software Conference. It's great. This is the kind of software the world needs, made by people who care about quality.
Blick Video Editor
@Blick_Editor
Blick is out NOW!
This media couldn't be displayed. See it on the original post. -
Eric Lengyel reposted
Stefan Reinalter
@molecularmusing
This timeline is pure madness.
Most of the comments that don't see anything wrong with the original code come from people who can't AI engineer their way out of a paper bag.
It would be great if all these AI engineers had just a basic understanding of the fundamental stuff.
Eric Lengyel
@EricLengyel
If I was interviewing someone for an engineering position, and they showed me code they had written that looked like this, it would be an instant reject.
Dave W Plummer
@davepl1968
This. This is the way. This is what AI is for.
I've written code like this 1000 times, and I won't be writing the 1001st time anytime soon. Sheer grunt work. -
Eric Lengyel reposted
Eric Lengyel
@EricLengyel
This function doesn't need to be any more complicated than the following. Just look at how much more readable it is, how much faster it is, and how many fewer basic blocks there are in the disassembly, all without sacrificing any safety. I'd still like to get rid of the zero initialize in the result without resorting to resize_and_overwrite() in C++23, which I think is unnecessarily complex and generates bad assembly code, but it doesn't look like std::string provides a good solution.
godbolt.org/z/4qxbaP3eq -
Eric Lengyel
@EricLengyel
If I was interviewing someone for an engineering position, and they showed me code they had written that looked like this, it would be an instant reject.
Dave W Plummer
@davepl1968
This. This is the way. This is what AI is for.
I've written code like this 1000 times, and I won't be writing the 1001st time anytime soon. Sheer grunt work.
Eric Lengyel
@EricLengyel
The most glaring problem is that in the final return statement, there is no copy elision and no move construction going on. This function allocates on the heap *twice* and does a full copy into the returned string. Here's the proof:
godbolt.org/z/d631oEx13
Eric Lengyel
@EricLengyel
This function doesn't need to be any more complicated than the following. Just look at how much more readable it is, how much faster it is, and how many fewer basic blocks there are in the disassembly, all without sacrificing any safety. I'd still like to get rid of the zero initialize in the result without resorting to resize_and_overwrite() in C++23, which I think is unnecessarily complex and generates bad assembly code, but it doesn't look like std::string provides a good solution.
godbolt.org/z/4qxbaP3eq -
Eric Lengyel reposted
Casey Muratori
@cmuratori
The open beta of Blick video editor is now available for purchase! It is still early days, so you should expect missing features and so on. But if you're tired of using janky video editing software and want to support a fresh, high-performance alternative, now's your chance :)
Blick Video Editor
@Blick_Editor
Blick is out NOW!
This media couldn't be displayed. See it on the original post. -
Eric Lengyel
@EricLengyel
In case it's not obvious, this post is about the quality of the AI generated code.
Eric Lengyel
@EricLengyel
If I was interviewing someone for an engineering position, and they showed me code they had written that looked like this, it would be an instant reject.
Dave W Plummer
@davepl1968
This. This is the way. This is what AI is for.
I've written code like this 1000 times, and I won't be writing the 1001st time anytime soon. Sheer grunt work. -
Eric Lengyel
@EricLengyel
It’s been a while since I’ve looked at the raw logs for my websites. I took a quick peek today, and it’s absolutely insane how many probes there are looking for vulnerabilities.
-
Eric Lengyel
@EricLengyel
The slides from my talks at the Better Software Conference are now available here:
terathon.com/lengyel/ -
Eric Lengyel
@EricLengyel
I just returned home from an amazing week at the Better Software Conference in Sweden. So many great people there, and very impressive content.
-
Eric Lengyel
@EricLengyel
I'm giving two talks at the Better Software Conference in Sweden next week:
1) Software Design in the Radical Pie Equation Editor
2) Math and Container Libraries in the C4 Game Engine Architecture
I believe videos will be available, and I will post slides. -
Eric Lengyel
@EricLengyel
Do you use the equation editor built into Microsoft Word? If so, you can put an end to your suffering by upgrading to Radical Pie.
radicalpie.com -
Eric Lengyel
@EricLengyel
I added some new chemistry features to the latest version of Radical Pie providing support for basic structural diagrams. I'm planning some more general drawing tools that will allow full skeletal diagrams in v2.0, but it's going to be a while before I can get to that.
Radical Pie
@RadicalPieMath
Version 1.12 of the Radical Pie equation editor has been released. This version contains some major new chemistry features that were used to construct the diagrams below. This is once again a free upgrade.
-
Eric Lengyel
@EricLengyel
FGED volumes 1 and 2 each had crowd funding campaigns that provided a way for supporters to get perks like acknowledgments in the books, autographed copies, and licenses to my software. I wasn't planning to run a campaign for FGED3, but I understand some people would still like access to these perks this time around, and I'd be willing to run a campaign to make them available. What do you think?
-
Eric Lengyel
@EricLengyel
On the topic of Adobe, I recently reported a bug in Illustrator that appeared in the latest update (version 30.5.1). I got a surprisingly fast response and acknowledgement that they were able to reproduce it. Microsoft should take notes.
-
Eric Lengyel
@EricLengyel
Adobe is now a double-licensee of the Slug Library, having just licensed it for a second software product. Nothing says a customer is happy more than repeat business!
-
Eric Lengyel reposted
Radical Pie
@RadicalPieMath
Version 1.11 of the Radical Pie equation editor has been released. This version contains a new way to automatically set some design parameters, an option to shift the math axis upward, and more additions to the Radical font. This is once again a free upgrade.
-
Eric Lengyel reposted
Sébastien Lagarde
@SebLagarde
The call for author for GPU Zn 5 is open!
Submit your proposal for GPU Zen 5, the next volume in the acclaimed GPU ZEN series
📅 Deadline: July 5, 2026
📩Submit to: gpuzen@theforge.dev 🔗 gpuzen.blogspot.com #graphicsprogramming #rendering #gamedev #authors #gpu -
Eric Lengyel
@EricLengyel
I'm going to be speaking at the Better Software Conference in Sweden next month. Details to come.
bettersoftwareconference.com -
Eric Lengyel
@EricLengyel
If acquiring a resource fails, then it's an error condition that should be returned to the caller. If releasing a successfully acquired resource fails, then it's a bug that should cause an assertion to be triggered.
-
Eric Lengyel
@EricLengyel
I have posted the slides from my talk at the Virginia Tech geometry seminar last week:
terathon.com/pga_relativistic_quaternions_lengyel.pdf
Eric Lengyel
@EricLengyel
Btw, more about relativistic quaternions here:
terathon.com/blog/relativistic-quaternions.html -
Eric Lengyel
@EricLengyel
I’m at Virginia Tech again this week to speak in the math career connections series. I’ll be telling students all about what I’ve been doing with my VT math degrees over the past 30 years.
-
Eric Lengyel
@EricLengyel
I posted an unusual entry in my blog that reminisces about my first professional software engineering job before I entered the games industry in the mid-90s.
Bespoke Software for Oscillating Bob Viscometry
terathon.com/blog/viscometry.html -
Eric Lengyel
@EricLengyel
Several non-Windows users have now told me that they bought a Windows machine just so they could run Radical Pie. Pretty cool!
radicalpie.com -
Eric Lengyel
@EricLengyel
I keep running into showstopper bugs in Microsoft Office while I'm writing books and making slides. Simple stuff just doesn't work properly at all. It's like it was never tested. And closing and opening files often causes things to change in ways that require manual fix-ups, making it impossible to have stable documents. This is just ridiculous coming from one of the most valuable software companies on the planet with massive engineering resources at its disposal. It wastes a huge amount of my time.
I think I need to commit to building my own replacements for Word and PowerPoint with a focus on technical writing. The equation support is already done, and it's fantastic! Given what I already have, I'm betting that a minimum viable product for a word processor would actually require less effort from this point than what originally went into Radical Pie. -
Eric Lengyel
@EricLengyel
Hey @NASA, that's not what the sun looks like in space.
-
Eric Lengyel
@EricLengyel
NASA has a live stream of the Artemis II mission that will run for the entire duration:
www.youtube.com/watch?v=m3kR2KK8TEs -
Eric Lengyel reposted
Warren Moore
@warrenm
New on Metal by Example: Slug
The patent on the Slug text rendering algorithm has been donated to the public domain, so I implemented it in Metal and wrote a bit about it
[article and sample code links in reply] -
Eric Lengyel
@EricLengyel
Radical Pie 1.8 was released today, and it includes the ability to parse LaTeX. If you have a big equation already written in LaTeX, then you can just copy/paste the plain text into the editor, and Radical Pie will lay it out visually.
radicalpie.com -
Eric Lengyel
@EricLengyel
Currently working on fur rendering for Chapter 15 in FGED3. Thor, the dog of thunder, is helping with some real-world BRDF references.
-
Eric Lengyel reposted
jendrik illner
@jendrikillner
Graphics Programming weekly - Issue 433 - March 22nd, 2026 www.jendrikillner.com/post/graphics-programming-weekly-is…
-
Eric Lengyel
@EricLengyel
I'm a couple days late, but there's a thread on Reddit:
www.reddit.com/r/programming/comments/1rwsl0x/slug_algori…
Eric Lengyel
@EricLengyel
New blog post: A Decade of Slug
This talks about the evolution of the Slug font rendering algorithm, and it includes an exciting announcement: The patent has been dedicated to the public domain.
terathon.com/blog/decade-slug.html -
Eric Lengyel reposted
Behdad Esfahbod
@behdadesfahbod
Open Source GPU text rasterization update:
Recently, Eric Lengyel dedicated his patent on the Slug algorithm to the public domain and released Slug's shaders as Open Source software.
I am happy to announce that GLyphy now implements the Slug algorithm:
github.com/behdad/glyphy -
Eric Lengyel
@EricLengyel
Currently #1 on Hacker News.
news.ycombinator.com/news
Eric Lengyel
@EricLengyel
New blog post: A Decade of Slug
This talks about the evolution of the Slug font rendering algorithm, and it includes an exciting announcement: The patent has been dedicated to the public domain.
terathon.com/blog/decade-slug.html -
Eric Lengyel
@EricLengyel
New blog post: A Decade of Slug
This talks about the evolution of the Slug font rendering algorithm, and it includes an exciting announcement: The patent has been dedicated to the public domain.
terathon.com/blog/decade-slug.html -
Eric Lengyel reposted
Ben Visness
@its_bvisness
Let me rant a bit more about this.
This is Crabs In a Bucket: The Comic. People share this every time someone tries to make something good. “Oh, that will obviously fail, because other people have made shitty versions of that thing. I am very wise.”
What is the point? Everything that is good was inspired by past things. The first version of the thing is never the good version. “Oh, mobile phones will never take off, because we’ve tried mobile phones and no one likes them.”
I have very little patience for status quo defenders. Is the software good, or isn’t it? If it’s not good, why aren’t we making something better? “Oh, people have tried to make better things, and it always fails.” Nonsense. The entire field of software is like 80 years old. Basically nothing has been tried. Why should we discourage people from innovating? From trying things they’re excited about? What does that achieve on literally any level?
If someone you know is excited about building something new, and you share this comic to shut them down, shame on you. You are actively preventing people from making better software.
Ben Visness
@its_bvisness
If you use USB-C then you are not allowed to share this comic
-
Eric Lengyel
@EricLengyel
Just for fun, I recreated this table from Algebra Etc. in Radical Pie with default settings. Took about 5 minutes. The following SVG was saved by Radical Pie, and it can be reopened for editing as an equation.
radicalpie.com/TrigTable.svg
Algebra Etc.
@AlgebraFact
Trig / inverse trig composition table, with outline of proofs
-
Eric Lengyel
@EricLengyel
The equation editor called Radical Pie that I developed throughout 2025 has been getting a lot of nice feature updates over the four months since its initial release. We're already up to version 1.7. Free trial available on radicalpie.com.
-
Eric Lengyel
@EricLengyel
I've written a new blog post called "Dual Approaches to Projective Geometric Algebra".
terathon.com/blog/dual-pga.html -
Eric Lengyel
@EricLengyel
I wrote a short blog post about the special mathematical / scientific font included with the Radical Pie equation editor.
terathon.com/blog/radical-font.html -
Eric Lengyel
@EricLengyel
When a is a vector and b is any multivector, the geometric product a ⟑ b decomposes as
a ⟑ b = a ∧ b + b ∨ (a^★),
and b ⟑ a decomposes as
b ⟑ a = b ∧ a + (a_★) ∨ b.
If a and b are both vectors, these both reduce to
a ⟑ b = a ∧ b + a ⋅ b.
Eric Lengyel
@EricLengyel
Here, ^★ and _★ are the right and left Hodge duals.
The expression b ∨ (a^★) is the definition of the right contraction, sometimes written b ⌊ a. Likewise, (a_★) ∨ b is the left contraction a ⌋ b. -
Eric Lengyel reposted
Radical Pie
@RadicalPieMath
Version 1.4 of the Radical Pie equation editor has been released. This version adds a couple new drawing tools and the ability to automatically generate alternative text (the LaTeX representation) for equations embedded in Word documents. This is a free upgrade for all users.
-
Eric Lengyel
@EricLengyel
Whoa, the SIGGRAPH exhibit floor is tiny this year. This used to be a huge show! What the heck is going on?
maps.goeshow.com/acm/siggraph/2026 -
Eric Lengyel
@EricLengyel
This might be the first year since 1999 that I don't attend GDC.
-
Eric Lengyel
@EricLengyel
This is a reminder that every diagram from my book Projective Geometric Algebra Illuminated is available on Wikimedia Commons under the CC-BY-4.0 license. They can be freely used in slides, papers, books, Wikipedia articles, etc., with proper attribution.
commons.wikimedia.org/wiki/User:Eric_Lengyel -
Eric Lengyel
@EricLengyel
I've worked very hard over many years to develop a complete and correct picture of Grassmann and geometric algebras, often in the face of extreme antagonism. The results of my efforts are now being adopted by prominent scientists and engineers in various fields. I feel very honored, and you can imagine the deep sense of satisfaction and justification this provides for me. The images below are from a recent NASA paper and a new textbook in aerospace engineering.
-
Eric Lengyel
@EricLengyel
John Christian's new book Fundamentals of Spacecraft Optical Navigation arrived today. It's got lots of great stuff with two big chapters covering mathematics (including Grassmann / geometric algebra) and another chapter covering things like radiometry, reflectance models, scattering, and ray tracing. There's substantial overlap between this field and computer graphics.
-
Eric Lengyel
@EricLengyel
I added LaTeX output to the latest version of Radical Pie. It can't handle everything that Radical Pie can do, but it tries its best to faithfully reproduce equations that can be written in basic LaTeX code without requiring obscure packages.
Radical Pie
@RadicalPieMath
Version 1.3 of the Radical Pie equation editor has been released. Beginning with this version, Radical Pie generates basic LaTeX code when an expression is copied to the clipboard which can then be pasted as text in other applications. This is a free upgrade for all users.
-
Eric Lengyel
@EricLengyel
FGED3 adds five new chapters to the series:
11 • Curves
12 • Motion Operators
13 • Models and Animation
14 • Advanced Shading
15 • Special Effects
I'm shooting for a SIGGRAPH 2026 release.
(The cover is not necessarily final.) -
Eric Lengyel
@EricLengyel
Some things I learned when talking to people at JMM this week:
• Most find the Radical Pie UI to be very intuitive.
• A Mac version would be useful even if it doesn't integrate with Word as it does on Windows.
• Nobody likes the Microsoft Office equation editor. And I mean nobody.
• There is a lot of interest in editing equations with RP and then exporting the LaTeX code.
• The Greek letter in the RP logo is not obvious, but people love it when they see it.
#radicalpie
Eric Lengyel
@EricLengyel
You can download a free trial on the website:
radicalpie.com -
Eric Lengyel
@EricLengyel
I’ve been getting a lot of great reactions from people discovering Radical Pie at the Joint Mathematics Meetings this week.
-
Eric Lengyel
@EricLengyel
I’m in Washington DC for the Joint Mathematics Meetings. The exhibits open tomorrow, and Radical Pie is right up front.
-
Eric Lengyel
@EricLengyel
Tomorrow, I leave for Washington DC where I'll be showing the brand new Radical Pie equation editor at the @JointMath conference. If you're attending, come check it out at booth #505. I'm also going to have plenty of materials about projective geometric algebra.
-
Eric Lengyel reposted
Radical Pie
@RadicalPieMath
Version 1.2 of the Radical Pie equation editor has been released. This version contains some new features and a couple minor bug fixes. This is a free upgrade for all users.
-
Eric Lengyel reposted
Slug Library
@SlugLibrary
Slug version 7.5 has been released. This update includes several small feature improvements.
sluglibrary.com -
Eric Lengyel
@EricLengyel
For the upcoming JMM conference, I've got FGED1, FGED2, PGA Illuminated, the OpenGEX specification, my Master's Thesis, Dissertation, and a bunch of papers all remastered with Radical Pie for a total of 13,157 equations. I'd say it's sufficiently tested.
-
Eric Lengyel
@EricLengyel
X switches to the "For you" feed every time I open it now. Me:
www.youtube.com/watch?v=NYvwLLxKqhM -
Eric Lengyel reposted
Sebastian Aaltonen
@SebAaltonen
My "No Graphics API" blog post is live! Please repost :)
www.sebastianaaltonen.com/blog/no-graphics-api -
Eric Lengyel
@EricLengyel
I built a new shipping crate in my garage that I'll be using to send stuff to trade shows. It's on its way to Washington DC now for the Joint Mathematics Meetings in early January, where I'm introducing the Radical Pie equation editor.
Eric Lengyel
@EricLengyel
Radical Pie:
radicalpie.com
JMM:
jointmathematicsmeetings.org/jmm -
Eric Lengyel
@EricLengyel
There's a new account for the Radical Pie equation editor that posts news about updates and a bunch of math / physics / chemistry examples:
x.com/PieRadical -
Eric Lengyel
@EricLengyel
Radical Pie is the official lanyard sponsor of the Joint Mathematics Meetings 2026. This is the largest mathematics conference in the U.S. and a perfect place for the Radical Pie equation editor to make its academic debut. #radicalpie
Eric Lengyel
@EricLengyel
JMM:
jointmathematicsmeetings.org/jmm
Radical Pie:
radicalpie.com -
Eric Lengyel reposted
Ryan Fleury
@rfleury
On FOSS, and why we should pay for good software:
-
Eric Lengyel
@EricLengyel
Visual Studio 2026 has a new "Generate preprocessed output for any C++ file" feature that brings us one step closer to parity with the development functionality available in CodeWarrior 1995.
Eric Lengyel
@EricLengyel
This feature is about the IDE, not the compiler. Please don't respond to tell me the compiler has always been able to do this because you're missing the point.
-
Eric Lengyel
@EricLengyel
Version 1.1 of the Radical Pie equation editor has been released. This is a free upgrade for all users.
radicalpie.com -
Eric Lengyel
@EricLengyel
Projective Geometric Algebra Illuminated has also been remastered with the Radical Pie equation editor in both the soft and hard cover formats. The content is the same, but all 4919 equations appearing in the text plus every equation in every figure has been upgraded with RP.
Eric Lengyel
@EricLengyel
PGA Illuminated on Amazon:
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
FGED 1&2 have been remastered with the Radical Pie equation editor, and the new versions are now available on Amazon (links below). The content is exactly the same, but the mathematical typesetting got an upgrade. The remaster applies to the soft cover versions only.
Eric Lengyel
@EricLengyel
FGED1:
www.amazon.com/dp/0985811749/?tag=terathon-20
FGED2:
www.amazon.com/dp/0985811757/?tag=terathon-20
Eric Lengyel
@EricLengyel
FGED3 is currently in progress and will be released as soon as it's finished. Being able to use Radical Pie now has definitely sped up the process.
-
Eric Lengyel
@EricLengyel
I don't see a way to submit a bug report on the Nvidia developer website. This used to exist, but it's been years since I've had reason to look for it.
-
Eric Lengyel
@EricLengyel
Looks like I spoke too soon. Another equation is causing a reproducible crash now with the 581.80 Nvidia driver released five days ago. It's buried 9 calls deep inside nvwgf2umx.dll under another 12 calls inside d3d11.dll. Do I need to switch to OpenGL?
Eric Lengyel
@EricLengyel
Earlier this month, I was experiencing a reproducible crash in Radical Pie that happened when I opened a certain file containing a complex equation. It had to be that exact equation. If I changed a single letter anywhere in the file before opening it, the crash went away.
-
Eric Lengyel
@EricLengyel
Writing documentation and watching game 7 of the World Series tonight.
-
Eric Lengyel
@EricLengyel
New blog post about the development of Radical Pie:
terathon.com/blog/radical-pie.html -
Eric Lengyel
@EricLengyel
I've been making a special font for Radical Pie. It started out as a way to provide a handful of symbols that aren't in Unicode. As I grew annoyed by errors, inconsistent weights, and missing glyphs in existing fonts, I kept creating more glyphs for my own. It's up to 463 now!
Eric Lengyel
@EricLengyel
Update: Now it's 534 glyphs.
Eric Lengyel
@EricLengyel
The final count is 760 glyphs.
-
Eric Lengyel
@EricLengyel
About two months from now, I'll be showing Radical Pie at the Joint Mathematics Meetings in Washington, D.C. I already have the best booth location on the exhibit floor.
jointmathematicsmeetings.org/jmm -
Eric Lengyel
@EricLengyel
With a couple quick color changes, Radical Pie runs in dark mode.
-
Eric Lengyel
@EricLengyel
Earlier this month, I was experiencing a reproducible crash in Radical Pie that happened when I opened a certain file containing a complex equation. It had to be that exact equation. If I changed a single letter anywhere in the file before opening it, the crash went away.
Post not available here, view on X
Eric Lengyel
@EricLengyel
This particular driver contained a severe memory corruption bug that was causing my program to crash when a specific sequence of graphics resource allocations happened. Fortunately, a new driver was released on October 14.
Eric Lengyel
@EricLengyel
After I installed the new driver, the crash disappeared, and I haven't had any problems since. It was a big relief, but damn it, I wasted a lot of time trying to track down a show-stopping issue that could have easily been avoided had Nvidia just tested better.
-
Eric Lengyel
@EricLengyel
I am excited to announce the release of Radical Pie, version 1.0! This is the professional equation typesetting application that I've been working on for the last year. See the website for details.
radicalpie.com -
Eric Lengyel
@EricLengyel
1
-
Eric Lengyel
@EricLengyel
2
-
Eric Lengyel
@EricLengyel
3
-
Eric Lengyel
@EricLengyel
4
-
Eric Lengyel
@EricLengyel
Radical Pie has a gazillion typesetting parameters that you can fine-tune to your heart's content. Here's all the stuff you can tweak for parentheses, brackets, braces, etc.
-
Eric Lengyel
@EricLengyel
5
-
Eric Lengyel
@EricLengyel
6
-
Eric Lengyel
@EricLengyel
When I wrote PGA Illuminated, I had to paste an equation in Illustrator to draw highlights and annotations like these. Not any more. With Radical Pie, they get drawn directly in the equation editor, they auto-resize during edits, and everything stays live when embedding in Word.
-
Eric Lengyel
@EricLengyel
7
-
Eric Lengyel
@EricLengyel
The Radical Pie editor has 16 palettes across the top containing just over 600 common symbols and mathematical structures. (The entirety of Unicode can be accessed through a separate dialog.) radicalpie.com
-
Eric Lengyel
@EricLengyel
8
-
Eric Lengyel
@EricLengyel
Radical Pie has a large number of user-configurable parameters that control precise spacing, positioning, sizing, and various shapes (like arrowheads) in an equation. The final count is 335, and they can all be set in 23 different panels shown in a couple big dialog boxes.
-
Eric Lengyel
@EricLengyel
9
-
Eric Lengyel
@EricLengyel
10
-
Eric Lengyel
@EricLengyel
Some people are particular about how much their integrals lean forward. Radical Pie is going to let you choose whatever angle you want, and it will generate the corresponding Bézier curves. These examples range from −2.5° to 15° right of vertical through the center.
-
Eric Lengyel
@EricLengyel
I'm getting valuable feedback from the Radical Pie beta test. Some minor bugs have been discovered. No major issues. It's looking good!
-
Eric Lengyel
@EricLengyel
Here's a quick video showing an equation being entered into Radical Pie, an annotation being attached to that equation, and more annotations being attached to the first annotation.
-
Eric Lengyel
@EricLengyel
Radical Pie has entered beta testing! I expect the final release to be available by the end of October.
Eric Lengyel
@EricLengyel
Radical Pie is a professional WYSIWYG equation editor for Windows 10/11. It's meant to be used for everything from slide presentations and YouTube videos to full-length textbooks.
radicalpie.com -
Eric Lengyel
@EricLengyel
I'm adding a last-minute new feature to Radical Pie: automatic conversion of Office Math equations.
-
Eric Lengyel
@EricLengyel
I started working on Radical Pie one year ago today. I estimate I've spent fully 10 of the past 12 months working on it, and I've written 82K lines of new code. I expect it to be feature complete and in beta testing this month. It's exciting to be this close to launch!
Eric Lengyel
@EricLengyel
-
Eric Lengyel
@EricLengyel
I'm finishing up a bunch of odds and ends in the Radical Pie equation editor. Yesterday, it was camera repositioning code used to reveal the caret when an edit is being made outside the viewport and to autoscroll while dragging the mouse for selections and drawing tools.
Eric Lengyel
@EricLengyel
Once some more miscellaneous tasks are completed, like editor customization features, Radical Pie will go into beta testing! Definitely in September.
radicalpie.com -
Eric Lengyel
@EricLengyel
All of the rendering in Radical Pie is done by Slug, so I capped the zoom magnification at one million percent.
-
Eric Lengyel
@EricLengyel
Combined, FGED 1 and 2 contain 5503 individual equation objects that I originally made in MathType years ago. Some of them had to go through Illustrator because they contained additional graphics and annotations (Figure 1.5 and Equation (1.78), for example). I have now redone all of them in Radical Pie (without the need for Illustrator), and I'll be releasing remastered books in the near future. The content is exactly the same -- the equations just look better. Of course, the upcoming FGED 3 has been using Radical Pie from the get-go, and it has saved me a lot of time.
-
Eric Lengyel
@EricLengyel
The drawing and annotation tools in Radical Pie are finished! Now, I can type an equation and add highlighting, arrows, labels, etc., as shown in the following examples. All drawing objects are attached to anchor points in the equation, so they move and resize dynamically.
Eric Lengyel
@EricLengyel
This means all of the major features are now complete, so we're getting close to release!
radicalpie.com -
Eric Lengyel
@EricLengyel
I was pleasantly surprised to see Happy Gilmore correctly account for the Coriolis force on the last hole!
-
Eric Lengyel reposted
Casey Muratori
@cmuratori
"They don't understand because they're a game developer" is total nonsense. Games are a superset domain. We make editors, servers, databases, build systems, large asset management, etc. If anything, if you're going to dismiss someone, dismiss people who haven't worked on games.
Tom Hosiawa
@thosiawa
I would love your nuanced take!
I asked an engineer I trust and here was theirs -
Eric Lengyel reposted
JCGT
@JCGT_announce
We're happy to announce we have a new Editor-in-Chief, Alexander Wilkie, and two new editors, Johannes Schudeiske and Andrea Weidlich. Marc Olano continues on as Managing Editor. And, thanks to David Eberly, who has retired as an editor.
Current roster at jcgt.org -
Eric Lengyel reposted
Mike Turitzin
@miketuritzin
If you want to go even deeper down the depth buffer precision rabbit hole, this article by @zalbard is great:
zero-radiance.github.io/post/z-buffer/ -
Eric Lengyel
@EricLengyel
Radical Pie has 16 palettes containing mathematical symbols and various typographic structures. Let me know if you think there should be anything else available here for quick access.
Eric Lengyel
@EricLengyel
The palettes can't contain everything, just the most common stuff. Separately, you can insert whatever Unicode character you want. And many of the structures have additional functionality accessed through dialogs.
radicalpie.com -
Eric Lengyel reposted
JCGT
@JCGT_announce
Annika Oehri, Philipp Herholz, and Olga Sorkine-Hornung, Higher Order Continuity for Smooth As-Rigid-As-Possible Shape Modeling
jcgt.org/published/0014/01/10/ -
Eric Lengyel
@EricLengyel
🤮
Tim Sweeney
@TimSweeneyEpic
Indeed Unreal Engine is moving to Left-Up-Forward coordinates everywhere, starting with UEFN, and coming to UE5-6 in an incrementally-adoptable way through UI settings and C++ helper functions/macros to ease the transition.
This will align Unreal with Y-Up, right handed standards of USD and glTF.
Why? Because future 3d tools and ecosystems will be increasingly interoperable and standards-based. There are a lot of missing standards we’ll need to propose, and Team Unreal will be far more successful proposing new things if we adopt and add to existing standards and conventions.
The USD-glTF-Maya-Houdini quadrant is the center of mass for complex code-art-pipeline tooling that is highly sensitive to coordinates. (Flipping coordinates when exporting from AutoCAD or Blender is easy enough; changing a movie vfx pipeline is not).
Coordinates based on project settings sound like a have-it-your-way compromise but are a combinatorial mess when projects are a mix of code modules and content packages from many independent authors.
The best time to make this change would have been 1995, but I believe the second best time is now with the launch of Scene Graph in UEFN. -
Eric Lengyel
@EricLengyel
All the beautiful font rendering and exquisite typography in DOOM The Dark Ages came from the Slug Library. I'm excited that it's part of game!
Eric Lengyel
@EricLengyel
Slug renders fonts directly from the original Bézier curves on the GPU and provides support for kerning, ligatures, accents, a wide variety of languages, and accessible text scaling throughout the entire UI.
sluglibrary.com -
Eric Lengyel
@EricLengyel
I'm surprised to see 4K monitors still under 5% in the Valve Hardware Survey.
store.steampowered.com/hwsurvey/Steam-Hardware-Software-S… -
Eric Lengyel
@EricLengyel
Generalizing to a convex polygon with n vertices, clipping against a single plane can increase the total vertex count by at most one. If you're clipping against a cube, that means the final vertex count is at most n + 6. So if you started with a triangle, then the maximum is 9.
pikuma.com
@pikuma
Suppose we have a triangle being clipped against a cube. The final clipped vertex count will vary according to the shape and position of the triangle in the cube. Can we find the maximum number of vertices that this polygon *could* have for any possible triangle configuration?
-
Eric Lengyel reposted
Physics Geek
@physicsgeek
There is a deep, circle jerk rot infesting peer review in particular and academia in general. And I still see people defending both as holy institutions which must not be questioned.
-
Eric Lengyel
@EricLengyel
I wrote a new blog post about something I'm calling the transwedge product. It allows us to fully decompose the geometric product into discrete parts using the primitive operations of the exterior algebra.
terathon.com/blog/transwedge-product.html -
Eric Lengyel
@EricLengyel
I decided to downgrade from D3D12 to D3D11 in Radical Pie. D3D12 was overkill for an equation editor that's just rendering text and vector graphics (with Slug). Plus, some older GPUs can run RP just fine, but won't work with D3D12. The core rendering code shrank by 46%.
-
Eric Lengyel reposted
Jonathan Blow
@Jonathan_Blow
I read this article about software development, which I knew about because I saw Prime reacting to it:
notashelf.dev/posts/curse-of-knowing
For the most part I think it is fine: a relatively young programmer is doing the healthy work of introspecting on what he should really be doing.
But there's one part of the article that I think is a deep mistake, and the author doesn't know it's so wrong because he has never experienced the alternative:
"Software doesn’t stay solved. Every solution you write starts to rot the moment it exists. Not now, not later, but eventually. Libraries deprecate. APIs change. Performance regressions creep in. Your once-perfect tool breaks silently because libfoo.so is now libfoo.so.2. 2
I have had scripts silently fail because a website changed its HTML layout.
I have had configuration formats break because of upstream version bumps.
I have had Docker containers die because Alpine Linux rotated a mirror URL.
In each case, the immediate emotional response was not just inconvenience but something that moreso resembles guilt."
Yes, this is true in much of the programming world. But there is another world in which people build things that last much longer. I have done it many times. I shipped a binary for this game Braid in 2009 that you can still download and play on Steam 16 years later. If you are pretty young (like 35), you can run binaries on Windows that were compiled before you were even born, which is amazing given how hard they have been trying to f up Windows lately.
On an emulator like MAME, you can play arcade games programmed in 1979. If today's software "technology" is so much better, why does it fall apart like tissue paper?
The author is not wrong about the cited decay. But this decay is not inherent to the practice of software. It's due to choices made, usually foolishly, by the people designing the systems being interacted with. And, it's due to a lack of knowing better, non-exposure to the sector of programmers who are very concerned with their code lasting a long time, actually.
The way you make code last a long time is you minimize dependencies that are likely to change and, to the extent you must take such dependencies, you minimize the contact surface between your program and those dependencies.
The actual algorithms you program, the actual functioning machinery you build, is a mathematical object defined by the semantics of your programming language, and mathematical objects are eternal, they will last far longer than your human life. The goal then is to avoid introducing decay into the system. You must build an oasis of peace that is insulated from this constant bombardment of horrible decisions, and only hesitantly interface into the outside world.
This means, for example: If you are shipping on iOS, you only reluctantly use any functions iOS gives you, because when you use them, Tim Apple will come along and break your program next year for arbitrary pointless reasons, because Tim Apple does not respect you or anyone you know.
This means a program cannot last forever on iOS, because Tim Apple likes breaking your things and watching you submissively clean them up. But the core of your program, which could be 95% of the code, is fine, and you can deploy it elsewhere.
This means you have to insulate from Linux userspace, because of all the jackass decision making that introduces constant incompatibilities while somehow never making the system better.
Using a library dependency to do font rendering or sparse matrix math? That dependency gets checked into your source tree, a copy of exactly the version you use. Ten years later you can pull down that source and recompile, and it works, because your program is a mathematical object. If you want to upgrade to something newer that has bug fixes and so forth, you are free to do so, but you are also free not to do so, and your program still works. (And how many of these bug fixes do you really need? Your program worked correctly when you shipped it to the greatest extent you could measure, because you are a skillful software engineer who wants to ship things of a high quality).
Everyone who got into programming for the joy of it knows, at some level, that the magic of programs is that they represent complexity that is replicable over time (and thus they exist outside of time). But the trashy programmer culture of the past 20 years stopped aspiring to this, and now has forgotten it is even possible.
And so long as people have forgotten, decisions will continue to be made that make the problem worse.
There are programmers who only write glue code, and who think that's what programming is; to these people what I have written above will not make sense. But the good news for that contingent is, they can always just stop writing glue code and start doing something else! If today's software "technology" is so good, why do you think it needs so much glue? Maybe there is a stylistic problem.
So if you are looking for what to do in the world of software that can represent a lasting contribution, maybe this is food for thought.
@NotAShelf @ThePrimeagen -
Eric Lengyel reposted
Slug Library
@SlugLibrary
Slug version 7.4 has been released. This update includes several small feature improvements.
-
Eric Lengyel
@EricLengyel
Meanwhile, a user enters an emoji in a equation, and voilà.
radicalpie.com
Programmer Humor
@PR0GRAMMERHUM0R
wellThatWasNotOnTestCases redd.it/1kjsgrv
-
Eric Lengyel
@EricLengyel
An electronic edition of PGA Illuminated is now available here:
www.amazon.com/dp/B0F7FZLNVD/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
The mathematical typesetting parts of Radical Pie are now 100% feature complete. I still need to implement the drawing tools and finish a bunch of UI features. Then it'll be time for a beta release.
radicalpie.com -
Eric Lengyel
@EricLengyel
I finished implementing stretchable arrows in Radical Pie today. I may have gone a little nuts with the features, but they turned out really well.
Generally, there can be one or more horizontal rules stacked up, and each one has a list of "charms" at each end and in the center. Each charm can be one of the variety shown below, which includes simple arrowheads, harpoons, geometric shapes, slashes, hooks, etc.
When multiple arrows are combined, some arrows can be shorter and aligned left, right, or center. Every stack of arrows can also have labels above and/or below that can each be aligned left, right, or center. Each label can contain an arbitrary mathematical expression.
Arrows stretch as necessary to accommodate the sizes of the labels and satisfy minimum spacing requirements between groups of charms. Vertical spacing is adjusted to avoid collisions between charms on adjacent arrows and between arrows and labels.
Eric Lengyel
@EricLengyel
I should also mention that there are 34 customizable parameters that let the user control many aspects of an arrow's appearance. These include everything from the length, width, stroke thickness, and curvature of the arrowheads themselves to how much space goes between charms.
-
Eric Lengyel
@EricLengyel
What I ended up doing was transforming axis-aligned rectangles into a pair of overlapping pentagons arranged like this. It renders without artifacts and fools both Acrobat and Chrome so we get a consistent appearance. Equations in PDFs look nicer as a result.
Eric Lengyel
@EricLengyel
Adobe Acrobat and the Google Chrome PDF viewer both have an annoying "feature" that detects axis-aligned rectangles in a vector image and renders them with control points snapped to the pixel grid. This gives those paths a different appearance compared to other paths that are not exactly rectangular but have the same stroke widths. In the top part of the example below, the minus signs and fraction bars should appear to have the same thickness as the horizontal stroke of the plus sign, but they look thinner due to the snapping. In the bottom part, I added extra control points to throw off Acrobat, and now the thicknesses have a consistent look. Chrome seems to be more aggressive in its rectangle detection, so I'm still searching for the best solution that will effectively disable snapping there as well.
-
Eric Lengyel
@EricLengyel
Radical Pie is designed to be extremely configurable so users can adjust the size and spacing of all kinds of equation components to their liking. There are currently 217 adjustable parameters covering everything from how much space goes around an equals sign to how thick a fraction bar is to how much smaller subscripts and superscripts are. You want to change the radius of the little loop on the symbol for a contour integral? No problem! You want to change the stroke width on your angle brackets? We can do that, too.
-
Eric Lengyel
@EricLengyel
Adobe Acrobat and the Google Chrome PDF viewer both have an annoying "feature" that detects axis-aligned rectangles in a vector image and renders them with control points snapped to the pixel grid. This gives those paths a different appearance compared to other paths that are not exactly rectangular but have the same stroke widths. In the top part of the example below, the minus signs and fraction bars should appear to have the same thickness as the horizontal stroke of the plus sign, but they look thinner due to the snapping. In the bottom part, I added extra control points to throw off Acrobat, and now the thicknesses have a consistent look. Chrome seems to be more aggressive in its rectangle detection, so I'm still searching for the best solution that will effectively disable snapping there as well.
-
Eric Lengyel
@EricLengyel
I got a shiny new button for Radical Pie in the Word UI.
-
Eric Lengyel
@EricLengyel
Good implementations of wide tilde marks have always been hard to find. And good luck if you want a wide tilde *under* an expression (which I sometimes do). Here's a comparison of wide tildes produced by various equation editors that highlights the differences in quality.
Good interoperability is also hard to find, as made pretty clear by what happens when you try to simply copy/paste one of these expressions into another application like Adobe Illustrator. -
Eric Lengyel
@EricLengyel
A couple weeks ago, I implemented a large variety of wide accent marks in Radical Pie, shown below. These all stretch arbitrarily to the width of the enclosed expression. There is some limited font support for this, but it doesn't work very well, so Radical Pie always synthesizes its own Bézier curves. Also, I've always thought it was important that anything that could be drawn above an expression could also be drawn below it, so each type of mark has an over version and an under version. Finally, it's possible to include a script-level expression above/below every type of mark, not just the brackets and braces.
-
Eric Lengyel
@EricLengyel
TeX has a tool called a vphantom that let's you add an invisible structure to an equation that takes up no horizontal space but takes up exactly as much vertical space as it would if it were visible. This is very useful for aligning different parts of an equation for aesthetic purposes. Neither MathType nor Word's equation editor has a similar feature, so I've had to resort to ugly hacks for many years to get things aligned well, and the results usually were usually less than perfect. So of course, I included phantoms in Radical Pie, and you can see a couple examples below where I used them recently. In Radical Pie, you can select any piece of an equation and make a phantom out of it. Then it becomes invisible and has no horizontal size, but it still retains the same vertical extent upward and downward within its subexpression group.
-
Eric Lengyel
@EricLengyel
I spent the day converting my old master's thesis in mathematics from LaTeX to Radical Pie. It proved to be a very informative exercise that led me to make several nice improvements in the software. You can see the final result here: terathon.com/lengyel/Lengyel-HyperrealStructures.pdf
-
Eric Lengyel
@EricLengyel
The trick is to keep the platform stationary and move the rest of the world in the opposite direction.
Matías N. Goldberg
@matiasgoldberg
Rigid Bodies, Velocities and Moving platforms.
The bane of every game developer. -
Eric Lengyel
@EricLengyel
Send me your favorite equations for alpha testing in Radical Pie!
radicalpie.com -
Eric Lengyel reposted
Patrick Collison
@patrickc
www.persuasion.community/p/the-average-college-student-is…
Patrick Collison
@patrickc
This week, a math professor at MIT told me that incoming students are, on average, noticeably worse at math than they used to be.
Harvard, of course, just added a remedial math class, Math MA5, "aimed at rectifying a lack of foundational algebra skills among students". -
Eric Lengyel
@EricLengyel
Can anyone point me to engineers working on Microsoft Office who might be able to chat with me about an OLE problem I'm having with PowerPoint?
Eric Lengyel
@EricLengyel
For context, this is for Radical Pie, the equation editor I'm developing (radicalpie.com). The OLE code in Radical Pie works perfectly with Microsoft Word, but PowerPoint is not behaving the same way as Word, and I haven't been able to find a workable solution.
-
Eric Lengyel
@EricLengyel
FGED 1 & 2 have sold out!
Eric Lengyel
@EricLengyel
In the GDC bookstore.
-
Eric Lengyel reposted
Robert Gervais
@RobertGDev
Your Projective Geometric Algebra Illuminated book is a masterpiece (errata considered). I regularly reference this book when I'm coding. Get Eric's books, seriously. Do it!
-
Eric Lengyel
@EricLengyel
Today is the last day these books will be in the GDC store. I know some people wait until the last day of the conference so they're not lugging around extra weight, but these won't be there tomorrow.
Eric Lengyel
@EricLengyel
In the GDC bookstore.
-
Eric Lengyel
@EricLengyel
In the GDC bookstore.
-
Eric Lengyel
@EricLengyel
I usually have a bunch of free posters to give out at GDC, but I'm not running a booth this year. If you can track me down on Wednesday or Thursday, you might still be able to score a tube with some rolled up goodies in it!
projectivegeometricalgebra.org/projgeomalg.pdf
projectivegeometricalgebra.org/confgeomalg.pdf -
Eric Lengyel
@EricLengyel
Radical Pie is well into viable product territory now. Yesterday, I used it to rewrite one of my recent math-heavy blog posts with the Word integration. Here's the resulting PDF.
terathon.com/blog/Lengyel-RelativisticQuaternions.pdf -
Eric Lengyel
@EricLengyel
I finished implementing aligners in Radical Pie a couple days ago and ended up adding an extra feature. An aligner (shown as a red marker) can specify not only where multi-line equations line up but also whether the preceding math, back to the previous aligner or beginning of the line, is laid out left, right, or centered with respect to math between corresponding aligners on other lines of the equation. In this example, I've used center aligners to line up all the equal signs and simultaneously center all the norms on the left sides. This is something I used to do manually after copying an equation into Illustrator, but now it's handled automatically.
(And I expect this would be tricky to accomplish in LaTeX with \begin{aligned} \end{aligned}. I don't know off the top of my head how one would get the left sides centered on each other without resorting to an array or matrix of some kind.)
radicalpie.com -
Eric Lengyel
@EricLengyel
I'm building a kind of "physical sciences" palette for Radical Pie. The top row comes from Times, but I couldn't find a font with planetary symbols that I liked, so I made my own.
radicalpie.com -
Eric Lengyel
@EricLengyel
Radical pie can use just about any pair of Unicode characters for brackets, but these are the pairings that will be available on the brackets palette. Do you think anything else should be there by default?
radicalpie.com -
Eric Lengyel
@EricLengyel
I'm laying out the symbol palettes for Radical Pie. This is the palette for Greek letters and their variants.
radicalpie.com -
Eric Lengyel
@EricLengyel
I'm sure this cover design is pure coincidence.
-
Eric Lengyel
@EricLengyel
Seriously?
Post not available here, view on X
Eric Lengyel
@EricLengyel
My only implication is that it would have shown greater professionalism to choose a title that's a bit different from a well-known book in the field.
Eric Lengyel
@EricLengyel
I can imagine a scenario in which the author had actually chosen a different title, but then the (known to be shady) publisher said "Hey, no, let's use this title almost exactly matching a popular book so we get accidental purchases."
-
Eric Lengyel
@EricLengyel
Man, you ain't kiddin'.
-
Eric Lengyel reposted
Christian Jäger
@plainoldcj
@EricLengyel ’s books became indispensable resources for applied math on the job. Eager to start with PGA which is a whole new rabbit hole! Thanks for the quality content! 💪
-
Eric Lengyel
@EricLengyel
A huge amount of detail goes into mathematical typesetting. These are all the things I have to consider just for a simple radical.
radicalpie.com -
Eric Lengyel
@EricLengyel
Monolith was one of my Slug licensees, and I was saddened to hear about the studio's closure. Their engineering leadership graciously took the time to reach out to me today and thank me for my work, emphasizing that my product did its job well. These guys are a class act.
-
Eric Lengyel
@EricLengyel
Will there be a Science Jeopardy in my lifetime?
-
Eric Lengyel reposted
Casey Muratori
@cmuratori
Remember folks: if you aren't a subject matter expert, don't know the context, and have nothing valuable to add to a thread, you always have the option of not replying!
Kostya Vasilyev
@kmansoft
Just don't use windows for software development. Use Linux or a Mac.
-
Eric Lengyel
@EricLengyel
For the past few months, I've been quietly working on a new math typesetting application called Radical Pie. I've been talking about doing this for years, and now it's finally happening. Beta expected in a couple months. I'll be posting a lot more...
radicalpie.com
Eric Lengyel
@EricLengyel
Btw, this is not intended to be a replacement for LaTeX. If you love using LaTeX, that's great. Keep using it. Radical Pie is for those of us who want a visual equation editor that gives us just as much control over appearance as LaTeX (and often more), with instant professional results, better Unicode support, tight integration in Word, no futzing with code parsing errors, and the ability to just copy/paste into other applications like PowerPoint, Illustrator, or video editors.
Eric Lengyel
@EricLengyel
I had been using MathType for the last 20 years, and it has served me well in most cases. I wrote all the math for seven books with it. However, it hasn't received a significant update to its core functionality in over a decade, its Unicode support is badly broken now, there are fine typesetting issues that I don't have as much control over as I would like, and it doesn't have any support for the kinds of annotations I used in PGA Illuminated. Thus, it's definitely time for me to make something better. Fortunately, this kind of application is right up my alley, and I've been able to leverage all the work that already went into Slug.
-
Eric Lengyel
@EricLengyel
Heh, the prize on Wheel of Fortune tonight was a trip to this exact location.
Eric Lengyel
@EricLengyel
It’s a good day to sit on top of a mountain. This is Salt Pond Mountain near Blacksburg, Virginia.
-
Eric Lengyel reposted
Will Kinney
@WKCosmo
No they didn't.
-
Eric Lengyel
@EricLengyel
I've seen a gazillion papers that claim to reformulate some part of modern physics in terms of quaternions. In just about every case, the authors don't know anything about the larger mathematical structure inside which quaternions reside. Instead, they just try to cram quaternions into 4D spacetime by associating the real part with time and the 3 imaginary parts with space. This is dead wrong. It's not how quaternions arise in the complete Clifford algebra, and it's not how quaternions work. At all.
A four-vector quantity in relativity really is a vector and can't be replaced by a quaternion. It doesn't make any sense. Quaternions represent motions, and their components have mixed grades, unlike a vector. Furthermore, a conventional four-component quaternion isn't even sufficient to represent a physically meaningful motion because it needs to be combined with a temporal translation that makes a rotation happen over some amount of time instead of instantaneously.
I recently wrote a short blog post about what quaternions actually look like in spacetime:
terathon.com/blog/relativistic-quaternions.html
(It's just a quick introduction. The full picture is more complicated.)
Sabine Hossenfelder
@skdh
Ok, since you asked I have had a look at this quaternionic "reformulation" of Maxwell's equations, that is, the equations of (classical, non-quantized) electrodynamics.
According to a 2020 paper this formulation "The working quaternion mathematics in question is omitted [in the widely accepted version of electrodynamics] presumably for purposes of weapons’ design secrecy."
Links below because Musk doesn't understand why people use his platform.
The paper makes quite a claim that seems to have grown into an entire conspiracy theory according to which, you know, there are some secret propulsion mechanisms that extract energy from the vacuum and whatnot. If that sounds like bullshit it's because it is.
I couldn't make sense of the 2023 paper, it doesn't even properly define the terminology and shouldn't have gotten published.
But the terminology seems to go back to this paper from 2003 that for all I can tell wasn't peer reviewed
It's not wrong in the sense that the mathematical reformulations are probably correct, it's just that the author knowingly or unknowingly invents a new theory that is in conflict with what we already know.
It is not a reformulation of Maxwell's equations, it's simply a different set of equations. This is glossed over in the paper with phrases like "natural structures" that he obtains "by inspection" rather than using a derivation.
By inspection, what the author does is using quaternions (that's just a convenient way to rewrite vectors that makes taking products easier) reformulating the usual vector formalism, writing down new equations that he thinks fit well with his belief. These equations violate both Lorentz-invariance and gauge-invariance.
Violating Lorentz-invariance basically means you introduce an aether, and that's an old-fashioned one, that is not compatible with Einstein's theories. You can do this, but there are strong experimental constraints on it, especially pertaining charged particles.
Violating gauge invariance basically means that the theory doesn't link to the standard model of particle physics, which is the experimentally best confirmed theory ever.
If you ignore that the theory isn't compatible with either the standard model or general relativity, you can derive all kinds of "interesting" consequences no doubt, but that's not much of an achievement.
If you were to fulfill experimental bounds on violations of Lorentz-invariance there wouldn't be any observable effects. If there were, we'd already have observed them...
As I have quipped in my book "Lost in Math", the new-theory-game in theoretical physics needs to follow rules, and the first rule of new-theory-club is that you need to show your theory reproduces, at least approximately, the well-established theories that we have already experimentally confirmed.
This idea dramatically fails on this account.
So, sorry, no free energy from the vacuum, no gravitic drive.This post is unavailable. See it on X. -
Eric Lengyel
@EricLengyel
I have created a new GitHub repository containing Mathematica packages for several types of projective geometric algebra:
github.com/EricLengyel/Geometric-Algebra/ -
Eric Lengyel
@EricLengyel
Geometric algebra is linear algebra.
-
Eric Lengyel
@EricLengyel
There is a new forum-style Discord server for discussions about everything we do at Terathon: Game engine development, geometric algebra, Slug, C4, Transvoxel, OpenGEX.
discord.gg/CJqtbBcPtQ -
Eric Lengyel
@EricLengyel
New blog post: Relativistic Quaternions
I briefly discuss what quaternions and dual quaternions must become in spacetime in order to represent physically meaningful motions.
terathon.com/blog/relativistic-quaternions.html -
Eric Lengyel
@EricLengyel
I have joined the editorial board of the Journal of Computer Graphics Techniques.
jcgt.org -
Eric Lengyel reposted
jendrik illner
@jendrikillner
Graphics Programming weekly - Issue 370 - December 15th, 2024 www.jendrikillner.com/post/graphics-programming-weekly-is…
-
Eric Lengyel
@EricLengyel
I get a lot of emails asking about one-person licenses for the Slug Library. Information about that is now available on the website at sluglibrary.com, and it's copied below. Feel free to contact me with additional questions or to get yourself set up!
We have a single-engineer license for a one-time cost of $1500 (USD). This license includes the full source code for the Slug Library and associated tools, it allows usage in an unlimited number of commercial products, and it includes all future updates at no additional cost as long as you’re solo. -
Eric Lengyel
@EricLengyel
This video shows the velocity buffer used to render motion blur during post-processing in the C4 Engine. The screen-space velocity accounts for the motion of the camera, objects, and even vertices for cloth and skinned meshes. This technique is described in FGED2, Section 10.7.
This media couldn't be displayed. See it on the original post. -
Eric Lengyel
@EricLengyel
For those who have a strong preference for metric signature, (− + + +) or (+ − − −), observe how they both appear when you complete the exterior algebra. Whichever one you choose for vectors, the other must apply to antivectors. You're both right, so you can stop arguing!
-
Eric Lengyel
@EricLengyel
I was surprised to hear that many graphics people were surprised to learn that normals should be transformed with the adjugate transpose matrix. This is something I've written about extensively, so here's a new blog post that talks about what's going on.
terathon.com/blog/transforming-normals.html -
Eric Lengyel
@EricLengyel
Here's a short video showing atmospheric shadowing in the C4 Engine. It marches along rays and samples the cascaded shadow map to determine how much light is inscattered toward the camera. The results are combined with the scene in post. See FGED2, Section 10.6 for details.
This media couldn't be displayed. See it on the original post. -
Eric Lengyel reposted
Martin Bauer
@martinmbauer
Absolute nonsense.
Amjad Masad
@amasad
Woah
-
Eric Lengyel
@EricLengyel
No it doesn't.
Egor Riabov
@imobulus
Good thing all experimental evidence points to manyworld interpretation of quantum mechanics
-
Eric Lengyel reposted
Slug Library
@SlugLibrary
Slug version 7.3 has been released. It contains new HDR color support and several miscellaneous updates and improvements.
Slug is the ultimate solution for fast ultra-high-quality font and vector graphics rendering on the GPU.
sluglibrary.com -
Eric Lengyel
@EricLengyel
Then it's a good thing all the current quantum computing technology is bullshit.
mert
@mert
guys
If quantum computing breaks encryption
I guarantee your magical internet money would be the least of your worries -
Eric Lengyel
@EricLengyel
int (*)[3] is a pointer to an array of 3 ints.
int (*[3])() is an array of 3 pointers to functions taking no parameters and returning an int.
[Disclaimer: This post does not endorse, condone, or in any other way support the abovementioned syntax. Poster is not responsible for negative consequences arising from use of said syntax, including but not limited to, software failure, security vulnerabilities, loss of profits, or accidental opening of a portal to a demonic hell dimension.]
Eric Lengyel
@EricLengyel
Now explain int (*)[3] and int (*[3])().
maharshi
@maharshii
every C/C++ textbook should explain pointers like this
-
Eric Lengyel
@EricLengyel
Now explain int (*)[3] and int (*[3])().
maharshi
@maharshii
every C/C++ textbook should explain pointers like this
-
Eric Lengyel
@EricLengyel
Here are 200 zombies in the C4 Engine. Each zombie model has 56 bones and a skinned mesh with 3051 vertices. Skinning calculations happen every frame on the CPU through the multithreaded job manager. (Be warned that the audio gets kind of loud.)
This media couldn't be displayed. See it on the original post.
Eric Lengyel
@EricLengyel
The job-based skinning code was implemented in 2009, btw.
-
Eric Lengyel
@EricLengyel
Here's a quick video showing a few distortion effects in the C4 Engine. The window in the upper-left shows the distortion buffer, an off-screen render target containing per-pixel (x,y) offsets that get applied during postprocessing.
This media couldn't be displayed. See it on the original post. -
Eric Lengyel
@EricLengyel
Here's some video of the SSAO buffer as I run around in the C4 Engine. The details about this particular flavor of ambient occlusion are discussed in FGED2, Section 10.5.
www.amazon.com/dp/0985811757/?tag=terathon-20This media couldn't be displayed. See it on the original post. -
Eric Lengyel
@EricLengyel
MB and Mb mean megabytes and megabits.
mB and mb mean millibytes and millibits. -
Eric Lengyel
@EricLengyel
In the halls of the math department at Virginia Tech...
-
Eric Lengyel
@EricLengyel
If you've never seen Slug and you care about fast ultra-high-quality font and vector graphics rendering on the GPU, then check out the demo that can be downloaded from our website:
sluglibrary.com -
Eric Lengyel reposted
FFmpeg
@FFmpeg
A major blocker to free and open source multimedia is @isostandards.
ISO standards are behind an expensive paywall, making them impossible to access for volunteer developers in FFmpeg, or anyone wanting to learn about multimedia technology -
Eric Lengyel
@EricLengyel
I call this a relativistic screw. It's a proper Euclidean isometry combined with a translation through time. The positive inner product on the second line ensures that we're not moving faster than the speed of light.
-
Eric Lengyel
@EricLengyel
I'm pretty much cross-posting everything now:
bsky.app/profile/ericlengyel.bsky.social -
Eric Lengyel
@EricLengyel
I've been looking into projective GA over spacetime a little bit lately, and there is some interesting stuff. I wrote a short blog post entitled "The Relativistic Inertia Tensor in Projective Spacetime Geometric Algebra" that provides a small taste.
terathon.com/blog/relativistic-inertia.html -
Eric Lengyel
@EricLengyel
And here are the slides from my game engine architecture talk at Virginia Tech last week. These are mostly an outline of the topics I discussed while showing a bunch of real-time demos, so they don't contain much of the content of the talk, unfortunately.
terathon.com/vtgame_lengyel.pdf -
Eric Lengyel
@EricLengyel
Here are the slides from my math talk at Virginia Tech last week. They are very similar to my other recent talks about geometric algebra. There are 140+ slides here, but I obviously didn't get through all of them in one hour.
terathon.com/vtmath_lengyel.pdf -
Eric Lengyel reposted
Kornel Kisielewicz
@epyoncf
Writing custom game engines is easy - people just get discouraged quickly.
Often as soon as the first decade. -
Eric Lengyel
@EricLengyel
I had an amazing week at Virginia Tech! I gave a couple talks about math and game engines, saw some old friends and professors I knew in the 90s, went on one of my favorite hikes, and ran a few miles in places I haven’t been to in 30 years.
-
Eric Lengyel
@EricLengyel
It’s a good day to sit on top of a mountain. This is Salt Pond Mountain near Blacksburg, Virginia.
Eric Lengyel
@EricLengyel
-
Eric Lengyel
@EricLengyel
At Virginia Tech today! My old office way back in 1995-1996 was behind the top center window of this building. And this is the room where I taught calculus for the first time. Not much different now!
-
Eric Lengyel reposted
Will Kinney
@WKCosmo
A reminder that just because a group of academics believes something to be true, and teaches it in class with all of the authority of their credentials and expertise, that does not mean it can't be complete bullshit. Consensus can be, and often is, wrong.
-
Eric Lengyel
@EricLengyel
Next Tuesday, I'm giving two talks at Virginia Tech, my alma mater!
The first talk is for the math and CS departments, and it's about exterior and geometric algebras. This talk will be very similar to my keynote at the Space Imaging Workshop a few weeks ago.
The second talk is for the VT Game Development Club, and it's about general game engine architecture. -
Eric Lengyel
@EricLengyel
Here's an action shot from one of my talks at the Space Imaging Workshop two weeks ago.
-
Eric Lengyel
@EricLengyel
The slides from my talk at the Unicode Technology Workshop can be downloaded here:
terathon.com/optimizing_glyphs_lengyel.pdf
There were demos interspersed with these slides, so the PDF doesn't provide the full presentation. A recording should be available on YouTube soon. -
Eric Lengyel
@EricLengyel
Tomorrow, I'll be giving a talk at the Unicode Technology Workshop entitled "Optimizing Glyphs for Real-Time Vector Rendering". I believe it's going to be recorded and made available on YouTube afterward.
-
Eric Lengyel
@EricLengyel
I'm seeing a large influx of new people on Bluesky. I'll be sure to duplicate everything I post there:
bsky.app/profile/ericlengyel.bsky.social -
Eric Lengyel
@EricLengyel
And a file format.
Freya Holmér
@FreyaHolmer
oh boy
-
Eric Lengyel
@EricLengyel
Another data point.
Freya Holmér
@FreyaHolmer
oh boy
-
Eric Lengyel
@EricLengyel
The combined slides from my keynote address and tutorial sessions at the Space Imaging Workshop can be downloaded here:
terathon.com/space_imagining_combined_lengyel.pdf
Eric Lengyel
@EricLengyel
Almost all of the material comes straight from my book:
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
The Space Imaging Workshop wrapped up today. It was an extremely positive experience. I met a lot of great people and learned all kinds of new things.
-
Eric Lengyel
@EricLengyel
I'm in Atlanta for the next few days, and I'm giving three talks about projective geometric algebra for the Space Imaging Workshop taking place at the Georgia Tech Global Learning Center. It's going to be fun!
-
Eric Lengyel reposted
The Unicode Consortium
@unicode
❗UTW 2024 is only weeks away! ⏰ Secure your spot today:
www.unicode.org/events/event-registration.html 🌟The full program is available: www.unicode.org/events/utw/2024/ #internationalization #utw #localization #i18n #l10n #scripts #emoji #techforgood -
Eric Lengyel reposted
Mathias W 🇺🇦
@mwesterdahl76
I got asked about our code style in #defold, and we do have a blog post about it.
TL;DR We use a C-like-C++ approach
defold.com/2020/05/31/The-Defold-engine-code-style/
#gamedev #indiegamedev -
Eric Lengyel
@EricLengyel
Next Monday, on invitation from NASA, I'm giving the keynote address at the Space Imaging Workshop, hosted by Georgia Tech in Atlanta. This talk is entitled "Geometry and Motion in Projective Grassmann and Clifford Algebras", and it provides a big-picture introduction to the subject. There will be a couple tutorial sessions afterward that go into greater detail about operations in exterior algebra and geometric algebra. I'll post slides for all three parts once I return to California.
seal.ae.gatech.edu/workshop-2024 -
Eric Lengyel
@EricLengyel
The schedule for the Unicode Technology Workshop has been posted. This takes place October 22-23 at Google in Sunnyvale.
www.unicode.org/events/utw/2024/program/ -
Eric Lengyel
@EricLengyel
In 1981-2, my mom was a high school librarian in city about 30 minutes from where we lived. I went to grade school in a different district, so I would sometimes have days off when she didn't. On those occasions, she took me to work with her and stuffed me in a space behind the front desk that served as a small office and storage room. In that space was a shiny new Apple II+ and shelves full of binders containing Applesoft BASIC programming manuals. With nothing else to do, I taught myself how to program, and I would spend the entire day writing small chunks of code that made the computer do various things. Back then, programming was extremely close to the metal, so I learned a lot about how computer hardware actually worked at the same time. I soon graduated to 6502 assembly language, where interaction with the hardware happened through loads and stores to memory-mapped I/O registers. This was how you did everything from getting keyboard and joystick input to changing graphics modes to accessing the disk drives. The amount of ultra-low-level programming that went into everything back then is exemplified by the book "Beneath Apple DOS", which covers the details of reading and writing individual sectors in encoded form on a 5.25-inch floppy disk by manipulating I/O registers to access magnetically encoded bytes individually as the disk spun past the read/write head. I didn't have this book at the time, but it's something I would have absolutely loved to read once my parents bought an Apple IIe for our home in 1983 (when I was 10 years old). There's something very satisfying about writing programs that interact with physical devices at a very low level, and you don't get much of that today unless you work on firmware that's hidden from everyone else under several layers of abstraction.
-
Eric Lengyel reposted
David Bessis
@davidbessis
This Grothendieck quote is the best-kept secret about mathematics:
Always start with your naive intuition, even if it’s plainly dumb, and then refine it by asking a barrage of “stupid” questions. Waiting in silence until you “get it right” will only lead to paralysis. -
Eric Lengyel
@EricLengyel
This is part of projective exterior algebra in one, two, and three dimensions. The determinants are equivalent to the wedge products of two, three, and four unitized points.
Algebra Etc.
@AlgebraFact
Length of a line segment, area of a triangle, and volume of a tetrahedron in terms of determinants.
-
Eric Lengyel
@EricLengyel
Continuing my journey through 1990s technologies that still form the foundation of Microsoft Windows today, I now know more about the EMF format than I ever wanted to.
-
Eric Lengyel
@EricLengyel
I'm going to be giving a talk entitled "Optimizing Glyphs for Real-Time Vector Rendering" at the Unicode Technology Workshop, coming up on October 22-23.
www.unicode.org/events/utw/2024/ -
Eric Lengyel
@EricLengyel
After a week buried in COM code, I finally have full OLE integration between my standalone C++ application and Microsoft Word.
• I can insert an object from inside Word to automatically launch my app and start editing.
• I can read the current style (font size, etc.) at the insertion point from my app.
• I can place vector graphics in a Word document as an inline shape from my app.
• I can adjust the vertical position of the graphics from my app to align the baselines correctly.
• I can store arbitrary data along with the graphics to maintain editability.
• Double-clicking on an existing object in Word automatically reopens my app for editing. -
Eric Lengyel
@EricLengyel
This is one of the reasons that none of my products use the standard libraries, not even a little.
For products that do use the standard libraries, it will prevent many headaches to static link with them. You're just asking for trouble by messing around with redistributables.
Jace Cear 💿
@JaceCear
Ah Microsoft, never change...
(Please do change, actually!)
cc @cmuratori
This blog entry might amuse / sadden you. -
Eric Lengyel
@EricLengyel
I'm actually writing some OLE code right now.
-
Eric Lengyel reposted
Peter Shirley 🔮🛡
@Peter_shirley
New tech memo on the neural light grid by @miwanicki and friends at @Activision. 1/n research.activision.com/publications/2024/08/Neural_Light…
-
Eric Lengyel reposted
jendrik illner
@jendrikillner
Graphics Programming weekly - Issue 354 - August 25th, 2024 www.jendrikillner.com/post/graphics-programming-weekly-is…
-
Eric Lengyel
@EricLengyel
And this time, they have Slug.
sluglibrary.com
Marmoset
@marmosetco
🎉The Marmoset Toolbag 5 beta is here! This game-changing update introduces powerful new features: UDIMs, Bevel Shader, Vector Tools, Clone Tool, Groom, Hybrid Rendering, Real-Time Baking, Material Layering, and more. Start testing now!👉 marmoset.co/toolbag/beta
-
Eric Lengyel reposted
Will Kinney
@WKCosmo
“If we’ve been bamboozled long enough, we tend to reject any evidence of the bamboozle. We’re no longer interested in finding out the truth. The bamboozle has captured us. It’s simply too painful to acknowledge, even to ourselves, that we’ve been taken. Once you give a charlatan power over you, you almost never get it back.”
— Carl Sagan , The Demon Haunted World
Oleg Ruvinsky
@Matzan481_
How do people get so stupid?
-
Eric Lengyel reposted
Will Kinney
@WKCosmo
The scientific community should be much less tolerant of bullshit than it is. Collegiality is not an excuse.
-
Eric Lengyel
@EricLengyel
I've written a long blog post about poor foundations in geometric algebra:
terathon.com/blog/poor-foundations-ga.html
(This is the toned-down version, believe it or not.) -
Eric Lengyel
@EricLengyel
Following up with 3D homogeneous coordinates. What would you think if someone (not me) told you it was more geometrically intuitive for the vector on the left to represent the red line? And for the bivector on the right to represent the red point?
Eric Lengyel
@EricLengyel
Here's 3D homogeneous coordinates, where objects are projected into 2D Euclidean space by intersecting with the plane z = 1. One of these diagrams represents a point, and the other represents a line. But which is which? It's not a trick question, so go ahead and answer!
Eric Lengyel
@EricLengyel
If you'd be thinking to yourself "How did I end up in clown school?", then you'd be having the correct reaction.
-
Eric Lengyel reposted
Freya Holmér
@FreyaHolmer
I can no longer recommend people apply to @FuturegamesEDU, the school where I've been teaching at, after a number of things have come to light
I talked to several students last night who've described a school in complete disarray and disregard for their students, absolutely unrecognizable from what I remember back when I was a student in 2010
• there have been multiple cases of courses running completely without a teacher, because they couldn't find one in time, or because the teacher asked for too much money
• the animation/vfx students have not had any animation or vfx courses after a whole year. for context, students go to futuregames for about 2 years. but they have learned a little bit of after effects and mocap tech, I guess
• they also didn't get to participate in the cross-disciplinary game projects, which, in my opinion, is one of the most important things you (used to) get to do at futuregames
• when they inquired about all this the animation/vfx students were told the course was for animation and vfx in cinema, not for games, which means they were either lied to before they joined, or while they were there, as there was no indication of this in the marketing material before they joined, nor at the time they were told this
• once the students tried to self-organize into something more useful, asking if they could watch lecture recordings from the other disciplines and classes, they were *denied*, which is absolutely wild to me. as a result, some students have started passing around recordings on their own,, which, what the heck, why do they have to do this??
(on a tangent, this makes me glad I've specifically asked them ahead of time to let me publish my lectures publicly)
back when I was at FG, there were two groups of students, game design and 3D art, about 18 students each, at a single location in Stockholm
but now I'm hearing there's classes with 40 students, with 12 separate educations you can apply to, across 6 locations in sweden alone, and they're apparently now expanding to warsaw as well
I have to wonder why the heck are they expanding when they are stretched so thin they are effectively transparent and have no ability to find or pay teachers
yesterday one of the students told me they don't even have a teacher yet for the upcoming shader course, which is starting tomorrow :)
FutureGames hasn't reached out to me, by the way, so they either lost the people who had contacts within the industry, or lost their record of past teachers, or maybe my $50/h was too expensive for the, now multinational, company
they've clearly shifted gears into trying to grow as much as possible, with a complete disregard for its students, which is such a shame because FG used to be a really really good place, with teachers actively working in the industry, but is now regarded as one of the worst. it's so frustrating
I'll see if I can do something for the shader course next week for the students regardless, they deserve better than this -
Eric Lengyel
@EricLengyel
When you go to clown school, don't be surprised if all you learn is how to be a clown yourself.
-
Eric Lengyel
@EricLengyel
Slug version 7.2 has been released. It contains several miscellaneous updates and improvements.
-
Eric Lengyel
@EricLengyel
I'll be a keynote speaker at the Space Imaging Workshop in October, hosted by Georgia Tech. The topic is practical applications of projective exterior / geometric algebra.
seal.ae.gatech.edu/workshop-2024 -
Eric Lengyel
@EricLengyel
Here's 3D homogeneous coordinates, where objects are projected into 2D Euclidean space by intersecting with the plane z = 1. One of these diagrams represents a point, and the other represents a line. But which is which? It's not a trick question, so go ahead and answer!
Eric Lengyel
@EricLengyel
This is going to be used to demonstrate a point in a follow-up post later.
-
Eric Lengyel
@EricLengyel
A slice perpendicular to the null direction in the diagram about the observer horizon below looks exactly like this complement rotation I found in projective geometric algebra. I'd really like to connect these together and understand the physical significance.
Leo C. Stein is @duetosymmetry on bsky/threads/🐘
@duetosymmetry
The observer horizon of an accelerating observer in Minkowski space
-
Eric Lengyel
@EricLengyel
Those Lorentz transformations look an awful lot like a page about conformal geometric algebra from my new book.
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20
Leo C. Stein is @duetosymmetry on bsky/threads/🐘
@duetosymmetry
Some examples of Lorentz transformations acting on the celestial sphere of null directions:
-
Eric Lengyel
@EricLengyel
"The problem is that so long as there's sufficiently many crap-producers reviewing each other's crap, crap will continue to be produced."
That sounds like what's been happening in geometric algebra for the last decade or two.
Sabine Hossenfelder
@skdh
I remember discussing this with a bunch of philosophers because there's a significant share of them who, rather than doing philosophy of physics, produce their own crap "theories" of physics (don't look, it's bad). They basically agreed but were like, well, what are we supposed to do about it? It's not like we can fire them or something.
I basically suggested they should create some sort of society that would tell at least those who care who is doing serious research, but that never happened. And you see the problem is that so long as there's sufficiently many crap-producers reviewing each other's crap, crap will continue to be produced. -
Eric Lengyel reposted
Noel Llopis
@noel_llopis
One real cost of piracy I hadn't considered: I'm busting my ass tracking down crash bugs and some of them make no sense (missing files!). Eventually I realize those are cracked and modified copies of the game. They wasted my time and prevented me from fixing other legit crashes.
-
Eric Lengyel
@EricLengyel
The reason I have been giving talks about geometric algebra at NASA recently is that they (rightfully) found the so-called “plane-based” formulation clunky and unpalatable. They rejected it in favor of the cleaner and more complete model I developed over the past few years.
-
Eric Lengyel
@EricLengyel
Only one copy of both FGED1 and FGED2 still available at booth 604. Bookstore is sold out! I brought more copies of PGA Illuminated, so we still have a few of those.
-
Eric Lengyel
@EricLengyel
Anyone parsing fonts will know what big endian is.
Dan Olson
@olson_dan
Do Gen Z software engineers understand endianness? Is this even something they encounter anymore?
-
Eric Lengyel
@EricLengyel
See the latest version of Slug at booth 604.
-
Eric Lengyel
@EricLengyel
Free posters at booth 604.
-
Eric Lengyel
@EricLengyel
Books at booth 604.
-
Eric Lengyel
@EricLengyel
In the SIGGRAPH bookstore.
-
Eric Lengyel
@EricLengyel
Some pics from FGED2.
www.amazon.com/dp/0985811757/?tag=terathon-20
Brodie Robertson
@BrodieOnLinux
I am 26 years old
I have been using computers since I was 8
I just found out that pixel is short for picture element -
Eric Lengyel
@EricLengyel
Take design by committee to its ultimate limit!
Peter Mallouk
@PeterMallouk
-
Eric Lengyel
@EricLengyel
If you're going to SIGGRAPH in Denver next week, please stop by to say hello! I'll be at booth 604 with the latest version of Slug, a few books, and the usual free posters.
-
Eric Lengyel
@EricLengyel
You've got to get the fundamentals down, because otherwise the fancy stuff is not going to work. —Randy Pausch
-
Eric Lengyel reposted
Ariel Vintage
@ArielVinda
I treated myself with some @EricLengyel while waiting for volume 3 whenever is out
-
Eric Lengyel
@EricLengyel
Would it really be so bad if reading unmapped memory just returned zero instead of crashing (and writing was a no-op)? I realize it would often lead to a cascade of corrupt data, but a subset of programs would be able to limp onward in a semi-usable state. Are there any studies?
-
Eric Lengyel
@EricLengyel
Gotta love that feeling when you spend a few days implementing an optimization, and the gains, while not negligible, are a lot smaller than what you were hoping for. Anyway, the spatial binning data used by Slug is about 5% smaller on average with no change in performance.
-
Eric Lengyel
@EricLengyel
Did you know that quaternions have two different representations in homogeneous coordinates? They make up the special orthogonal group SO(3), but that's a subgroup of two larger complementary transformation groups.
First, quaternions are part of the special Euclidean group SE(3), where they correspond to rotations about the origin. Second, quaternions are part of the special complement Euclidean group SE̅(3), where they correspond to motions of constant eccentricity with the directrix in the horizon, which are just rotations about the origin again. SO(3) is the intersection of SE(3) and SE̅(3).
You can find the details in my book:
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel reposted
Ming-Lun “Allen” Chou
@TheAllenChou
My first contact with geometric algebra was @EricLengyel's GDC talk, Math for Game Programmers: Introduction/Grassmann Algebra in Game Development. The title caught my eye because I had no idea what GA was and I like all things math in games. gdcvault.com/play/1020787/Math-for-Game-Programmers-Intro…
-
Eric Lengyel
@EricLengyel
-
Eric Lengyel
@EricLengyel
The slides from my NASA talk earlier today are available here:
terathon.com/pga_rigid_transformations_lengyel.pdf
This was a high-level presentation. All the details are in the book, and section numbers are noted on the slides:
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
On Tuesday, I'm giving another talk for NASA entitled "Projective Geometric Algebra and Rigid Transformations". I will make the slides available afterward. The material comes straight from Chapters 2 and 3 in my book.
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
Doing some actual graphics development! Just finished a filmic tone mapping upgrade in the @C4Engine with histogram analysis and adaptive exposure.
-
Eric Lengyel
@EricLengyel
Another day, another email from somebody telling me how TextMeshPro is making their lives miserable in @unity.
-
Eric Lengyel
@EricLengyel
In conformal geometric algebra, the dot product between two spheres s and t gives the product of their radii times the cosine of the angle 𝜙 between the tangent planes where they intersect. If the spheres don't actually intersect, then this angle is imaginary.
-
Eric Lengyel reposted
Ignacio Castaño
@castano
I'm excited to announce that Spark 1.1 is out today!
ludicon.com/spark/
What's new in this release? We have been listening to your feedback: This update is focused on the needs of PC developers. -
Eric Lengyel reposted
Peyman Milanfar
@docmilanfar
never underestimate your senior colleagues
-
Eric Lengyel
@EricLengyel
PGA Illuminated has picked up some more reviews, and it has a perfect five-star rating! The softcover is currently available for $48.17:
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
This is one of several reasons that I do not use matrix types in shader code. At all.
Martin Mittring
@MittringMartin
HLSL float3x3 '*' does not what I expected. This hit me multiple times when I ported code to HLSL. I wish I could disable * to prevent this error. I wanted to use mul(,) which does what I want: a matrix multiplication
-
Eric Lengyel
@EricLengyel
A couple more notes:
• Each class will be recorded and made freely available on the same day.
• Due to family responsibilities, weekends are out. Classes will be held on two days during the week.
Eric Lengyel
@EricLengyel
I'm planning to teach a free online interactive course about projective geometric algebra, probably starting in a couple months. It would be similar to a one-quarter college course meeting at same times every week. What days would work best for everyone, and what time of day? (I'm in the US Pacific time zone.)
All of the subject material will come from my book:
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
I'm planning to teach a free online interactive course about projective geometric algebra, probably starting in a couple months. It would be similar to a one-quarter college course meeting at same times every week. What days would work best for everyone, and what time of day? (I'm in the US Pacific time zone.)
All of the subject material will come from my book:
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20
Eric Lengyel
@EricLengyel
Each class will be recorded and made available the same day.
-
Eric Lengyel
@EricLengyel
And this time, they have @SlugLibrary.
-
Eric Lengyel
@EricLengyel
Microsoft has decided that it's acceptable to interrupt what I'm doing at any random time and fill the entire screen with this notification telling me I should upgrade to Windows 11 even though it's not supported on this machine.
-
Eric Lengyel reposted
Jonathan Hale
@squareys
Look how crisp this text is thanks to @SlugLibrary 🤯
-
Eric Lengyel
@EricLengyel
I’m at the Sierra reunion today in Oakhurst CA marking 25 years since “Chainsaw Monday” when the original studio was permanently closed.
-
Eric Lengyel
@EricLengyel
Always nice to see that someone has framed my posters!
If you're in the U.S., you can grab your own prints from these links for the cost of materials and shipping:
terathon-software-llc.square.site/product/pga-poster/15
terathon-software-llc.square.site/product/cga-poster/17
PDFs are available here:
projectivegeometricalgebra.org -
Eric Lengyel reposted
Emilio López
@redorav
www.elopezr.com/life-and-death-of-a-graphics-programmer
The Life and Death of a Graphics Programmer -
Eric Lengyel
@EricLengyel
Keyboard update time. This one has a few new math symbols that I wasn’t yet using when I designed my previous layout in 2018.
-
Eric Lengyel
@EricLengyel
The slides from my talk at NASA last week are now available here:
terathon.com/foundations_pga_lengyel.pdf
These mostly served as a set of diagrams and a high-level outline as I talked for almost two hours. The relevant sections of the book are shown in the bottom-right corner. -
Eric Lengyel
@EricLengyel
On Friday, I'm giving a seminar about projective geometric algebra at the NASA Goddard Space Flight Center in Greenbelt, Maryland. I'll make the slides available afterward.
Eric Lengyel
@EricLengyel
All of the material comes straight out of my book:
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
A good programming language does not force you to write code in any specific way. On the contrary, a good programming language makes it easy for you to write code using whatever design principles you've decided are most practical for your software.
-
Eric Lengyel reposted
Slug Library
@SlugLibrary
Slug version 7.1 has been released.
-
Eric Lengyel reposted
Shahid Kamal Ahmad
@shahidkamal
40 years ago, I ported Jet Set Willy to the C64.
Today, I pondered on what it was that made 1984 to 1986 the most magical years of my time in video games. Here are ten reasons.
(Tomorrow I’ll talk about how I bring the spirit of that time back, 40 years on.)
🧵 -
Eric Lengyel
@EricLengyel
A common argument against the east coast metric signature (−+++) is that timelike magnitudes are negative. This problem evaporates in 5D projective space-time exterior algebra because the weight component of a homogeneous magnitude cancels the minus sign. Projected magnitudes are always positive.
Furthermore, the metric exomorphism G always contains both the east coast and west coast metrics g within the full 32×32 tensor. Below, the green box contains the 5×5 projective metric for vectors with the east coast signature (−+++0), and its west coast counterpart appears in the purple box for trivectors. -
Eric Lengyel
@EricLengyel
I'll be attending!
I3D Symposium
@I3DCONF
The schedule for the conference is now online on our website: i3dsymposium.org/2024/program.html
#i3d2024 -
Eric Lengyel
@EricLengyel
I've seen a couple instances recently in which people claim Slug uses supersampling (SS) to perform antialiasing. That is not correct. Slug does not use any SS whatsoever in normal operating mode. High-precision fractional coverage is calculated for one sample only. 1/2
Eric Lengyel
@EricLengyel
There is a mode in which SS is applied, but it's for extremely small text like what might appear on a billboard very far off into the distance in a 3D scene. The SS mode exists so text like this doesn't shimmer or sparkle, and it's adaptive, so it's still one sample close up. 2/2
-
Eric Lengyel
@EricLengyel
Amazon is currently offering PGA Illuminated for 25% off. This is a good time to grab it!
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
I uploaded some minor updates to the Terathon Math Library.
github.com/EricLengyel/Terathon-Math-Library -
Eric Lengyel
@EricLengyel
Btw, the idea of horizon mapping dates back to the 80s [Max 1988], and this particular technique running in a modern pixel shader is 17 years old.
Eric Lengyel
@EricLengyel
Once you've got horizon mapping implemented, it's very easy to use, and it can make a huge difference. This wall is rendered on a flat plane. The technique is fully described in FGED2.
www.amazon.com/dp/0985811757/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
Once you've got horizon mapping implemented, it's very easy to use, and it can make a huge difference. This wall is rendered on a flat plane. The technique is fully described in FGED2.
www.amazon.com/dp/0985811757/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
I uploaded some diagrams related to the Transvoxel and Slug algorithms as well.
commons.wikimedia.org/wiki/Category:Transvoxel_algorithm
commons.wikimedia.org/wiki/Category:Slug_algorithm
These are licensed under CC-BY-4.0 and can be used freely in any publications. I hope see them on Wikipedia pages for these topics!
Eric Lengyel
@EricLengyel
I have uploaded 155 figures from PGA Illuminated to Wikimedia Commons under the CC-BY-4.0 license. More to come.
commons.wikimedia.org/wiki/Category:Geometric_algebra
These can be used freely in papers, books, presentations, Wikipedia pages, or anywhere else with proper attribution. -
Eric Lengyel reposted
Casey Muratori
@cmuratori
A) Yes
B) Myself and others have been sounding this alarm for over a decade
C) Many factors are at play, including an improperly trained workforce, monopoly business effects, and widespread adoption and standardization of low-quality practices, languages, platforms and protocols
Austin Byrd
@AustinTByrd
Has anyone else noticed software quality getting... worse?
What is happening? -
Eric Lengyel
@EricLengyel
This is a few years old, but holy crap, I can't believe a peer-reviewed journal actually published a paper claiming to have found an 8D associative division algebra. This was proven impossible over 100 years ago. (It follows from Hurwitz's theorem.) 1/4
golem.ph.utexas.edu/category/2020/09/new_normed_division_…
Eric Lengyel
@EricLengyel
The paper claims that the 8D division algebra is the even part of the geometric algebra Cl(4,0). Any qualified reviewer would have known that the even part of Cl(4,0) has zero divisors (like 1 + e₁₂₃₄), instantly proving the paper wrong, but it somehow still got through! 2/4
Eric Lengyel
@EricLengyel
This is one more example of how the value of peer review has been taking a nose dive. Nowadays, if something is peer reviewed, it doesn't necessarily mean it's any good at all. (Conversely, if something is not peer reviewed, it doesn't mean it's of questionable quality.) 3/4
Eric Lengyel
@EricLengyel
This paper did end up getting retracted, but it must have been very embarrassing for the journal. 4/4
golem.ph.utexas.edu/category/2020/10/no_new_normed_divisi… -
Eric Lengyel
@EricLengyel
Wow, a rare sighting of the first edition!
jasmine roberts
@jasminezroberts
lol. oops! if you’re starting out? this book has gone through alot with me.
-
Eric Lengyel reposted
Sebastian Aaltonen
@SebAaltonen
You can do maths on your own too. My current project is @EricLengyel 's latest book :)
-
Eric Lengyel
@EricLengyel
This video contains an amusing repeat of all the difficulties I ran into when I tried getting existing font rendering techniques to work well in 2016.
www.youtube.com/watch?v=SO83KQuuZvg -
Eric Lengyel
@EricLengyel
There's a neat property about the quadratic formula that most people don't seem to be aware of. The root given by the plus sign is always where the curve crosses the x axis with a positive derivative, and the root given by the minus sign always has a negative derivative.
Eric Lengyel
@EricLengyel
This is obvious if you plug the roots into df/dx, and it's true regardless of the sign of a, which determines whether the parabola opens upward or downward. This means you never need to actually calculate the derivative at a root if you want to know which way the curve is going.
-
Eric Lengyel
@EricLengyel
However, I'll probably implement a Vulkan interface in the C4 Engine soon just to see how it works out. (I've already had the Slug demo running on Vulkan for years.)
Eric Lengyel
@EricLengyel
After looking at the current state of Vulkan (the API, driver support, stability, etc.), I have concluded that I'm better off sticking with OpenGL for the time being when it comes to making a PC game.
-
Eric Lengyel
@EricLengyel
The C4 Engine currently runs with OpenGL, GNM, AGC, and DX11.
The Slug demo runs with Vulkan, OpenGL, DX11, DX12, GNM, and AGC.
I had been planning to update the C4 Engine to Vulkan, but I'm worried it would just create a bunch of new problems that I don't currently have.
Eric Lengyel
@EricLengyel
I forgot to list Metal for the Slug demo.
-
Eric Lengyel
@EricLengyel
I have created a new Discord channel for discussions about projective geometric algebra here:
discord.gg/4ChbFr78R2
This one will not be allowed to become a toxic environment like some of the others out there. -
Eric Lengyel
@EricLengyel
Some people seem to think that all objects in exterior algebra or geometric algebra are represented in code by big 16-component entities. No decent implementation would do this, and if it's something you've seen, then you've been exposed to a very poor source of information.
Eric Lengyel
@EricLengyel
Points still have 3 components (or maybe 4 homogeneous components), lines have 6, and planes have 4. Quaternions have 4 components, dual quaternions (motors) have 8 components, and flectors have 8 components. Nothing ever uses more than 8. These are implemented as distinct types.
-
Eric Lengyel
@EricLengyel
Long live OpenGL 5!
-
Eric Lengyel
@EricLengyel
After looking at the current state of Vulkan (the API, driver support, stability, etc.), I have concluded that I'm better off sticking with OpenGL for the time being when it comes to making a PC game.
-
Eric Lengyel reposted
John D. Cook
@JohnDCook
"Today I wouldn’t get an academic job. It's as simple as that. I don’t think I would be regarded as productive enough." -- Peter Higgs
-
Eric Lengyel
@EricLengyel
Academia.
www.youtube.com/watch?v=LKiBlGDfRU8 -
Eric Lengyel
@EricLengyel
Steve Rabin was kind enough to give me a deck of his new optimization cards at GDC last week. Very nicely done.
steverabindevdecks.com -
Eric Lengyel
@EricLengyel
In conformal geometric algebra, all round objects can be real, imaginary, or null. These are what rotations about different types of circles look like. In each case, the operator 𝐑 is the exponential of the circle 𝐜 itself multiplied by an angle 𝜙. That is, 𝐑 = exp(𝜙𝐜).
-
Eric Lengyel
@EricLengyel
I have uploaded 155 figures from PGA Illuminated to Wikimedia Commons under the CC-BY-4.0 license. More to come.
commons.wikimedia.org/wiki/Category:Geometric_algebra
These can be used freely in papers, books, presentations, Wikipedia pages, or anywhere else with proper attribution. -
Eric Lengyel
@EricLengyel
There's a freaking zombie on the cover of my next book. (No release date yet.)
godraytio
@godraytio
Just got my copy today. Great book so far!
I still have Eric's original unforgettable math book with a freaking skeleton on it.
This cover is not quite as impact but the contents and writing are top notch. -
Eric Lengyel
@EricLengyel
If you're in the U.S., I can send you any of the seven wall posters I've made for the cost of shipping and materials. (These are all related to stuff I work on.) They can be ordered here:
terathon-software-llc.square.site -
Eric Lengyel reposted
Sebastian Aaltonen
@SebAaltonen
Got @EricLengyel's latest book. Lots of math inside. Been re-learning math/physics in the past years and this fits that theme perfectly.
If you have been wondering why you transform normal vector with inverse transpose and why cross product works only in 3d, this is the book. -
Eric Lengyel
@EricLengyel
PGA Illuminated contains a ton of new research. An example of something never published before is the comprehensive treatment of interior products under a degenerate metric, which occupies 20 pages in Chapter 2.
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
The most frequent things I heard at GDC this year involved frustration about the outdated text rendering in Unreal and Unity and requests for it to be replaced by Slug.
-
Eric Lengyel
@EricLengyel
There are a few more copies of PGA Illuminated still available at booth 656 in the south hall for a 15% discount.
-
Eric Lengyel
@EricLengyel
The first review of PGA Illuminated is in!
“This glorious book will take me months to work through - there's so much beautiful detail, impressive drawings and concepts that are new (to me).”
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
FGED1 has sold out! There are still copies of FGED2 and PGA Illuminated available at a 15% discount. Booth 656.
-
Eric Lengyel
@EricLengyel
As always, free posters! Booth 656.
-
Eric Lengyel
@EricLengyel
Booth 656
-
Eric Lengyel
@EricLengyel
In the GDC bookstore.
Eric Lengyel
@EricLengyel
There are also a bunch of copies at booth 656, starting tomorrow morning.
-
Eric Lengyel
@EricLengyel
Here are some interior shots from the final book.
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20
Eric Lengyel
@EricLengyel
A couple more.
-
Eric Lengyel
@EricLengyel
Now we’re talkin’.
-
Eric Lengyel
@EricLengyel
The hardcover edition of Projective Geometric Algebra Illuminated is now available. Amazon says it will ship within 11 days, which is faster than I thought.
www.amazon.com/dp/B0CY8MG7L6/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
Here’s a size comparison.
-
Eric Lengyel
@EricLengyel
Books shipped, where red is Projective Geometric Algebra Illuminated. Even when FGED 1&2 (blue and orange) first came out, the bars weren't half as tall as this.
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
Yep, there is an enormous amount of new information in this book that has not been published before. If you've noticed that other books on GA are just repeating the same old stuff, then you'll find this book to be refreshingly different.
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20
V. Jovanovic
@vinjovanovic
Wow! A big nice format. Diagrams, color, layout, font. This is a major publication considering the content in this area. I'm already familiar with your previous work, but there is new stuff here not available anywhere else.
-
Eric Lengyel
@EricLengyel
Got my first box of books!
-
Eric Lengyel
@EricLengyel
The Terathon Math Library has been updated with some additions from the book. More to come.
github.com/EricLengyel/Terathon-Math-Library -
Eric Lengyel
@EricLengyel
I've got to give the @Office team at Microsoft some credit. I just wrote a 300-page, large-trim book containing thousands of equations, hundreds of figures and tables, a gazillion callouts, plus contents, index, footnotes, and annotations all in one document, and it handled it.
Eric Lengyel
@EricLengyel
There were definitely some annoying bugs that I wish could be fixed, but overall, the capabilities are very impressive, especially when you think about what must be going on internally.
Eric Lengyel
@EricLengyel
Please don't tell me about LaTeX. I was using that before you were born.
-
Eric Lengyel
@EricLengyel
The crowd that thinks I'm evil for not making Slug open source is back. Folks, I've given a lot of stuff away for free, and I still do, but something has to pay the bills.
Eric Lengyel
@EricLengyel
When you can fundamentally change society so that I don't have to pay for my house, car, insurance (home, health, business), property taxes, food, clothing, electricity, water, trash, internet, phone, hardware, software, office supplies, or anything else, then Slug will be free.
-
Eric Lengyel
@EricLengyel
Projective Geometric Algebra Illuminated is already the #1 book in Linear Algebra, Geometry & Topology, and Programming Algorithms.
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
I'll be at booth 656 in the south hall (circled in blue) for the entire expo next week at GDC. The latest version of Slug will be running, and I'll have plenty of books on hand. As usual, there will be free posters.
-
Eric Lengyel
@EricLengyel
This is a nicely written article about mesh shaders, but I'd like to point out that rendering glyphs with Loop-Blinn is an outdated, defunct, obsolete, and completely dead technique that should never be used by anyone anywhere for any reason.
AMD GPUOpen
@GPUOpen
Attention #gamedev🚨
The latest part of our mesh shaders blog series is now available!
In part 3 we take a look at primitive attributes and how they can simplify font rendering with mesh shaders.
gpuopen.com/learn/mesh_shaders/mesh_shaders-font_and_vect… -
Eric Lengyel
@EricLengyel
If you liked the Grassmann algebra content in Foundations of Game Engine Development Volume 1, then you might be interested in knowing that Projective Geometric Algebra Illuminated is like that, but a lot newer and more than ten times as much.
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
PGAI contains 166 figures, 119 tables, and 626 displayed equations over five chapters and three appendices.
-
Eric Lengyel
@EricLengyel
PGAI is 294 pages long. It's printed in a large 8.5x11 inch format to accommodate some big equations and diagrams. I estimate that it would be about 460 pages long if it were printed at the same trim size as FGED 1&2.
-
Eric Lengyel
@EricLengyel
Projective Geometric Algebra Illuminated is now available on Amazon!
www.amazon.com/dp/B0CXY8C72T/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
The book has been handed off to Amazon. I'm just waiting for it to go live.
-
Eric Lengyel
@EricLengyel
It looks like I'm going to need one more day to release PGAI. Hopefully, this means it will be available on Tuesday or early Wednesday depending on time zone. I will make an announcement right away once it's out.
-
Eric Lengyel
@EricLengyel
-
Eric Lengyel
@EricLengyel
Here are a few interior shots from Projective Geometric Algebra Illuminated. To be published March 11, 2024.
-
Eric Lengyel
@EricLengyel
A proof of PGAI arrived today! There are still a few things to finish up, but the book is almost done. This was a printing test, and it turned out very nicely.
The release date is March 11, 2024.
Eric Lengyel
@EricLengyel
Apparently, there is a huge backlog in hardcover printing that's causing delays of 6-7 weeks between ordering and shipping. So PGAI will first be published as a softcover that can be shipped in one day.
Eric Lengyel
@EricLengyel
PGAI is being printed at a large trim size to accommodate big complicated diagrams and equations. Here's what it looks like next to FGED1.
-
Eric Lengyel
@EricLengyel
I was not expecting to ever see a Maltz reference on Night Court. That was cool.
-
Eric Lengyel
@EricLengyel
If I didn't have anything else to do, I would seriously consider starting a company that develops some kind of media authentication technology. Everyone will soon need this in their browsers to tell them what text, video, audio, etc., is real and not AI generated fakery.
-
Eric Lengyel reposted
Dan Luu
@danluu
Long-time Microsoft employees explain changes in Windows:
news.ycombinator.com/item?id=30019307
Designers were handed full control over UX. Engineers who fought for usability over a slick-looking interface burned out and left after repeatedly being overruled. -
Eric Lengyel
@EricLengyel
I really love updaters that do these:
• Auto-quit the application while I'm using it.
• Reset all my preferences to defaults.
• Remove features that I was using.
• Completely change a UI that I was familiar with.
• Produce error messages next time the app starts. -
Eric Lengyel
@EricLengyel
Every license to the Slug Library comes with top-notch technical support. I just posted another same-day bug fix for one of our customers.
sluglibrary.com -
Eric Lengyel
@EricLengyel
Apparently, it's still possible to get a multiplayer demo I wrote in 1997 at least partially working on Win10 laptops.
Questing for Glory: The Quest for Glory History
@qfgbook
Anyway here's a picture from the test FWIW
-
Eric Lengyel
@EricLengyel
About 15 years ago, a paper about shadows was submitted to the Journal of Graphics Tools containing several paragraphs copied verbatim from an article I wrote a couple years prior. I was on the editorial board and known for shadow rendering, so it naturally ended up in my hands.
Sabine Hossenfelder
@skdh
I was once asked to review a paper in which big parts of the text were copied from one of my papers. If that happened to you, would you seriously say "that's okay, happy you got to benefit from my work for nothing in return?"
This post is unavailable. See it on X.
Eric Lengyel
@EricLengyel
Like Sabine's case, this made it the easiest review ever! I informed the editor-in-chief, and the paper was immediately rejected without further consideration. There was a good laugh about it at the next board meeting (which happened annually at SIGGRAPH).
-
Eric Lengyel
@EricLengyel
Sometimes, the wrong answer is in the teacher's edition of the textbook, and the teacher accepts it without thinking. I remember a 1980s high school algebra book that asked the question "Can a straight line intersect a hyperbola exactly once?" The teacher's edition said no.
Sebastian Aaltonen
@SebAaltonen
You need this kind of math questions to test how capable the teachers are :)
-
Eric Lengyel
@EricLengyel
PGAI will be published as a hardcover book with full color interior at a trim size of 8.25 x 11 inches, and it will be approximately 300 pages in length. It will have five main chapters and four appendices.
Chapter 1: Conventional Mathematics
Chapter 2: Flat Projective Geometry
Eric Lengyel
@EricLengyel
Chapter 3: Rigid Transformations
Chapter 4: Round Projective Geometry
Chapter 5: Conformal Transformations
Appendix A: Multiplication Tables
Appendix B: Geometric Properties
Appendix C: Math Library
Appendix D: Notation -
Eric Lengyel
@EricLengyel
All of the books I previously worked on had a trim size of 7.5 x 9.25 inches. In order to accommodate large equations and diagrams, PGAI will have a trim size of 8.25 x 11 inches. The larger size also reduces the total page count by about 30%, which lowers production costs.
-
Eric Lengyel
@EricLengyel
Raw, unrefined ideas are worth absolutely nothing. They become valuable when you apply the knowledge and skills necessary (a) to first recognize which ideas are actually good and (b) to then develop high-quality practical implementations of those that are.
-
Eric Lengyel reposted
Wolfgang Engel
@wolfgangengel
Fellow graphics programmers!
The GPU Zen 3 deadline is approaching fast. Proposals are due on December 3rd.
gpuzen.blogspot.com -
Eric Lengyel
@EricLengyel
If you're going into business for yourself, ALWAYS set up a separate legal entity for your company, even if you're just a one-person team. This gives you liability protection for your personal assets that you definitely want to have in case something goes wrong with the company.
-
Eric Lengyel
@EricLengyel
I have updated the Projective Geometric Algebra and Conformal Geometric Algebra posters to include new research results appearing in my upcoming book (especially in the PGA foundations). PDFs are available on the website below.
projectivegeometricalgebra.org -
Eric Lengyel
@EricLengyel
And the yellow boxes are the most you'd actually need to make a good product.
inigo quilez
@iquilezles
Programing Languages: you pass a parameter X to a function by value or by reference.
C++: -
Eric Lengyel
@EricLengyel
The data tables for the Transvoxel Algorithm have their own little GitHub repository now:
github.com/EricLengyel/Transvoxel -
Eric Lengyel
@EricLengyel
I picked up this book by Chance Thomas, an old colleague of mine, without realizing it contained a whole page about how the two of us met at Sierra Online way back in 1996!
www.amazon.com/dp/1032022604?tag=terathon-20 -
Eric Lengyel
@EricLengyel
I made a controversial statement about some math a couple days ago, and only one belligerent psycho has shown up to attack me without knowing any details. I was expecting much worse, so yay?
-
Eric Lengyel reposted
DHH
@dhh
I love that while the 10x programmer is still a controversial concept to some in the tech world, Steve Jobs went straight for the claim that 50-100x programmers are possible.
This media couldn't be displayed. See it on the original post. -
Eric Lengyel
@EricLengyel
I picked up a couple new additions to my library today that I really should have had in my possession a long time ago.
-
Eric Lengyel
@EricLengyel
It's quite clear to me now that the people considered pioneers of geometric algebra in the 1980s made some significant blunders in the foundational math. The errors are subtle, so they've been gobbled up and regurgitated without question by many other authors. 1/5
Post not available here, view on X
Eric Lengyel
@EricLengyel
The only problem now is that literally every other GA author will have to accept that some of the stuff they've written is wrong. If experience has taught me anything, it's that there will be resistance to change even in the face of indisputable proof that mistakes were made. 4/5
Eric Lengyel
@EricLengyel
For those interested in some details, the "blunders" involve the definitions of inner product and dual. I'm not talking about antiproducts here, which I consider to be a glaring omission of something necessary for a complete understanding but not an error in the foundation. 5/5
-
Eric Lengyel
@EricLengyel
Ah, of course hexadecimal sudoku is a thing.
-
Eric Lengyel
@EricLengyel
-
Eric Lengyel
@EricLengyel
The book is looking really great, but I keep stumbling upon small new discoveries here and there, and they are important enough that I have to include them in the first edition!
-
Eric Lengyel
@EricLengyel
Clouds cleared up a bit near the end, and I was able to get a couple quick snapshots.
-
Eric Lengyel
@EricLengyel
My view of the eclipse right now.☹️
-
Eric Lengyel
@EricLengyel
Minimum dependency graph for operations in projective geometric algebra (both rigid and conformal).
Updated with annotations showing exact relationships.
Eric Lengyel
@EricLengyel
This is a minimum dependency graph for operations in projective geometric algebra. The green boxes are configurable inputs: We choose how basis vectors square in the metric tensor, and we choose the orientation of the volume element. Everything else is then strictly determined.
-
Eric Lengyel
@EricLengyel
The Terathon Math Library has been updated with a lot of new stuff from the upcoming book Projective Geometric Algebra Illuminated.
github.com/EricLengyel/Terathon-Math-Library -
Eric Lengyel reposted
Jim Whitehead
@TheJimWhitehead
Call for Papers for the 2024 Foundations of Digital Games conference is now available:
fdg2024.org/for-authors
Paper deadline: Nov. 16! @FDGconf -
Eric Lengyel reposted
Dan Olson
@olson_dan
Don't ever be the person asking "Are we talking about gigabytes or gibibytes?" because no one is ever talking about multiples of 1000 unless they are trying to rip you off on a storage device and everyone understands this.
-
Eric Lengyel
@EricLengyel
I fired up a C4 Engine deathmatch server last night and played against my son for a few hours. It could use a little polish, but we have a 100% working multiplayer game that's just been sitting on the shelf for the last ~10 years. 1/2
Eric Lengyel
@EricLengyel
After I finish PGAI, I will definitely be hosting some public internet games for the purpose of beefing up the networking code and getting the game into a release-quality state. It's going to be a lot of fun. 2/2
-
Eric Lengyel
@EricLengyel
I'm a big fan of both pilot wave theory and the transactional interpretation.
www.youtube.com/watch?v=eNJFUo7yHhQ -
Eric Lengyel
@EricLengyel
What's the reasoning behind GitHub's 100 file upload limit in the browser?
• Engine code folder for the C4 Engine: 256 files.
• Game code folder (The 31st): 150 files.
• Plugin code folder (editor, tools): 115 files.
It's annoying to have to update those in multiple steps.
Eric Lengyel
@EricLengyel
Yes, I know the desktop app can get around this. I have my reasons for not using it.
-
Eric Lengyel
@EricLengyel
Neither Unity Technologies nor Electronic Arts have a license to Slug. Coincidence?
(If you want to see who does have a license, visit sluglibrary.com.) -
Eric Lengyel reposted
BILL OAKLEY
@thatbilloakley
It's hard to believe, I know, but for about 65 straight years, TV's didn't take 45 seconds to load profiles and apps and stuff but just turned right on when you pressed the ON button
-
Eric Lengyel
@EricLengyel
Anyone remember devmaster.net? It was *the* place to go for discussion about game engines and reliable independent reviews. It's too bad they're not around any more, but the C4 Engine reviews can still be found with the Wayback Machine:
web.archive.org/web/20130117113812/http://devmaster.net/d… -
Eric Lengyel reposted
Game Developer
@gamedevdotcom
Featured Blog | The Death of Unity
"If you're starting a new game project, do not use Unity. If you started a project 4 months ago, it's worth switching to something else. Unity is quite simply not a company to be trusted."
www.gamedeveloper.com/business/the-death-of-unity -
Eric Lengyel
@EricLengyel
This is what I'm spending all of my time on right now:
-
Eric Lengyel
@EricLengyel
The C4 Engine costs $100 per person, and that gets you in for life. There are no fees beyond that, and there can't ever be. Unlike everyone else's, our license doesn't have a clause that allows us to change terms unilaterally at any time for any reason.
c4engine.com
Eric Lengyel
@EricLengyel
There are people who bought a license to the first version of the C4 Engine in 2005 for a hundred bucks, and they're still getting free updates in 2023.
-
Eric Lengyel
@EricLengyel
If the truncated text plus the words "Show more" is longer than the full text that appears when you hit "Show more", then just show the whole damn text to begin with!
Eric Lengyel
@EricLengyel
Even better, if the line count wouldn't increase after hitting "Show more", then you never needed "Show more" in the first place. Not a tough problem to solve, but it seems like everybody gets it wrong.
-
Eric Lengyel
@EricLengyel
Yesterday's Wordle answer was my opening word. Finally got one on the first guess!
-
Eric Lengyel
@EricLengyel
This is a minimum dependency graph for operations in projective geometric algebra. The green boxes are configurable inputs: We choose how basis vectors square in the metric tensor, and we choose the orientation of the volume element. Everything else is then strictly determined.
Eric Lengyel
@EricLengyel
Dashed lines represent alternative dependencies. Antidot products and duals can be defined in two different ways with equivalent results.
-
Eric Lengyel
@EricLengyel
Despite problems like this, I still think Microsoft Word is the best solution that currently exists. The core engineering is solid, although a lot of the bloat on top of it sucks. Please stop suggesting alternatives. I've tried them, and they're all shit.
Eric Lengyel
@EricLengyel
Editing a single-file book heavy with equations, tables, and figures, I'm discovering that the copy command (plain old Ctrl-C) in Microsoft Word starts getting pretty crashy, even when copying just a few lines of text.
-
Eric Lengyel
@EricLengyel
Editing a single-file book heavy with equations, tables, and figures, I'm discovering that the copy command (plain old Ctrl-C) in Microsoft Word starts getting pretty crashy, even when copying just a few lines of text.
-
Eric Lengyel reposted
Pawel Pachniewski
@pwlot
-
Eric Lengyel
@EricLengyel
I'd like to welcome Zeiss Planetariums as the newest company to license the Slug Library. It's always great to see Slug being used in scientific visualizations.
www.zeiss.com/planetariums/us/home.html
sluglibrary.com -
Eric Lengyel
@EricLengyel
Something else missing from Visual Studio for at least 25 years is the ability to preprocess or disassemble a file and have the results immediately open in a new tab. I used this in CodeWarrior all the time in the mid 90s.
-
Eric Lengyel
@EricLengyel
Yay, Visual Studio 17.7 finally has the ability to compare files! Better 25 years late than never, I suppose.
-
Eric Lengyel
@EricLengyel
Anybody want to start Wikipedia pages for the Slug algorithm and/or the Transvoxel algorithm?
-
Eric Lengyel
@EricLengyel
These are a couple pics of the Mac tables I set up for QuakeCon 1999. (Jim and I were there representing Apple at the time.)
Eric Lengyel
@EricLengyel
Jim! Here are a couple pics from that one. Can't believe it was 24 years ago.
-
Post not available here, view on X
Eric Lengyel
@EricLengyel
Jim! Here are a couple pics from that one. Can't believe it was 24 years ago.
-
Eric Lengyel
@EricLengyel
FGED 1 & 2 have almost sold out at the Terathon booth. I have also run out of one of the posters (but there are 6 other kinds of posters still available). I’ll have to bring a larger number next time!
-
Eric Lengyel
@EricLengyel
A family with a young boy, maybe 8-9 years old, visited my booth today, and the parents were really excited about the posters I had. They wanted to get a math poster to hang in the boy's room, but he adamantly refused because he didn't want other kids calling him a nerd.
Eric Lengyel
@EricLengyel
It's so sad to see children not taking an interest in S.T.E.M. subjects because they're afraid of being bullied for it. I wish the adults in the lives of the bullies would take some responsibility and do something about it, but it's more likely they're actually encouraging it.
-
Eric Lengyel
@EricLengyel
The exhibition is open! There are a limited number of FGED books available at booth 831.
-
Eric Lengyel
@EricLengyel
I have a binder full of preview materials from my upcoming book. Check it out at booth 831 this week.
Eric Lengyel
@EricLengyel
More
-
Eric Lengyel
@EricLengyel
Would you like some posters? They’re free at SIGGRAPH this week. Booth 831, exhibit opens tomorrow.
-
Eric Lengyel
@EricLengyel
Stop by the Terathon booth (#831) at SIGGRAPH tomorrow, Wednesday, and Thursday to see the Slug Library or C4 Engine.
-
Eric Lengyel
@EricLengyel
Driving down to L.A. today for SIGGRAPH.
-
Eric Lengyel
@EricLengyel
I made my first contribution to the On-Line Encyclopedia of Integer Sequences (OEIS). It's not a new sequence, just an additional interpretation of a rather elementary sequence that has to do with geometric degrees of freedom.
oeis.org/A003991 -
Eric Lengyel
@EricLengyel
A license for Slug does not require attribution, but it sure is appreciated when I see "Slug Library" and/or "Eric Lengyel" included in the credits.
-
Eric Lengyel
@EricLengyel
You might enjoy this table from Game Engine Gems 2.
Sebastian Aaltonen
@SebAaltonen
These tricks are interesting...
Eric Lengyel
@EricLengyel
These operations are also included here:
Eric Lengyel
@EricLengyel
I made this binary fundamentals chart for my students.
You can grab a PDF here:
terathon.com/binary_fund.pdf -
Eric Lengyel
@EricLengyel
If you're going to be at SIGGRAPH in Los Angeles next week, please stop by the Terathon booth (#831) to check out the latest Slug Library, to see how the C4 Engine is coming along, to take a sneak peek at my upcoming book, or to just say hello!
-
Eric Lengyel
@EricLengyel
And here's everything you ever wanted to know about a 2D dipole.
Eric Lengyel
@EricLengyel
In CGA, 2D conformal transformations have the form
𝐐 = exp[(α𝟏 + β𝟙) ⟇ 𝐝],
where 𝐝 is a fixed dipole, α is a hyperbolic angle, and β is an elliptic angle. The value α𝟏 + β𝟙 is the loxodromic parameter, and the ratio α/β determines the motion.
Eric Lengyel
@EricLengyel
The topic that I'm mainly spending more time on is a complete and thorough exposition of conformal transformations in geometric algebra. A small 2D example is this continuous homogeneous loxodromic parameterization between elliptic and hyperbolic motions.
Eric Lengyel
@EricLengyel
I was hoping to have this book finished by SIGGRAPH, but I've decided to take a little longer to do everything right without being rushed. The book is turning out to be amazing, and it will definitely be worth the wait. I will have some preview materials available at SIGGRAPH.
-
Eric Lengyel
@EricLengyel
In CGA, 2D conformal transformations have the form
𝐐 = exp[(α𝟏 + β𝟙) ⟇ 𝐝],
where 𝐝 is a fixed dipole, α is a hyperbolic angle, and β is an elliptic angle. The value α𝟏 + β𝟙 is the loxodromic parameter, and the ratio α/β determines the motion.
Eric Lengyel
@EricLengyel
The topic that I'm mainly spending more time on is a complete and thorough exposition of conformal transformations in geometric algebra. A small 2D example is this continuous homogeneous loxodromic parameterization between elliptic and hyperbolic motions.
Eric Lengyel
@EricLengyel
I was hoping to have this book finished by SIGGRAPH, but I've decided to take a little longer to do everything right without being rushed. The book is turning out to be amazing, and it will definitely be worth the wait. I will have some preview materials available at SIGGRAPH.
-
Eric Lengyel
@EricLengyel
I was hoping to have this book finished by SIGGRAPH, but I've decided to take a little longer to do everything right without being rushed. The book is turning out to be amazing, and it will definitely be worth the wait. I will have some preview materials available at SIGGRAPH.
Eric Lengyel
@EricLengyel
Eric Lengyel
@EricLengyel
The topic that I'm mainly spending more time on is a complete and thorough exposition of conformal transformations in geometric algebra. A small 2D example is this continuous homogeneous loxodromic parameterization between elliptic and hyperbolic motions.
Eric Lengyel
@EricLengyel
I was hoping to have this book finished by SIGGRAPH, but I've decided to take a little longer to do everything right without being rushed. The book is turning out to be amazing, and it will definitely be worth the wait. I will have some preview materials available at SIGGRAPH.
-
Eric Lengyel
@EricLengyel
The topic that I'm mainly spending more time on is a complete and thorough exposition of conformal transformations in geometric algebra. A small 2D example is this continuous homogeneous loxodromic parameterization between elliptic and hyperbolic motions.
Eric Lengyel
@EricLengyel
I was hoping to have this book finished by SIGGRAPH, but I've decided to take a little longer to do everything right without being rushed. The book is turning out to be amazing, and it will definitely be worth the wait. I will have some preview materials available at SIGGRAPH.
-
Eric Lengyel
@EricLengyel
I've always used an old standard notation 𝑣² (italics) for the squared magnitude of a vector 𝐯 (bold). After an impetus a few months ago to start thinking about whether that makes sense (thanks, @ChristerEricson), I've come to the conclusion that the notation 𝐯² is better.
-
Eric Lengyel
@EricLengyel
You may have noticed that my websites have been down for about two days. My web hosting provider has now been fired, and I am moving to a new provider. Hopefully, most things will be back by tonight sometime.
-
Eric Lengyel
@EricLengyel
Web servers are such a mess.
-
Eric Lengyel
@EricLengyel
1/2 These are subgroups in 𝑛-D conformal GA that fix the origin (left), infinity (right), or both (center). Purple boxes are subgroups also belonging to the rigid GA.
• 𝐈 = 𝑛×𝑛 identity
• 𝐑 = 𝑛×𝑛 rotation
• 𝐌 = 𝑛×𝑛 orthogonal
• 𝛕 = 𝑛×1 vector
• σ = scale
Eric Lengyel
@EricLengyel
2/2 These are the group symbols:
• O = Orthogonal group
• SO = Special Orthogonal group
• T = Translation group
• D = Dilation group
• E = Euclidean group
• SE = Special Euclidean group
• RX = Reciprocal X group -
Eric Lengyel
@EricLengyel
I worked through the one-dimensional conformal exterior algebra, and it's nontrivial to a surprising degree.
This has been added to my upcoming book "Projective Geometric Algebra Illuminated". -
Eric Lengyel
@EricLengyel
Here is the entire 1D rigid geometric algebra.
• The only type of geometry is a homogeneous point.
• The only proper isometry is a translation.
• The only improper isometry is a reflection.
• There are no rotations or transflections as exist in 2D.
Eric Lengyel
@EricLengyel
Eric Lengyel
@EricLengyel
To really be complete, I need to add the reciprocal isometries to the 1D geometric algebra:
Eric Lengyel
@EricLengyel
Here is the entire 1D rigid geometric algebra.
• The only type of geometry is a homogeneous point.
• The only proper isometry is a translation.
• The only improper isometry is a reflection.
• There are no rotations or transflections as exist in 2D. -
Eric Lengyel
@EricLengyel
To really be complete, I need to add the reciprocal isometries to the 1D geometric algebra:
Eric Lengyel
@EricLengyel
Here is the entire 1D rigid geometric algebra.
• The only type of geometry is a homogeneous point.
• The only proper isometry is a translation.
• The only improper isometry is a reflection.
• There are no rotations or transflections as exist in 2D. -
Eric Lengyel
@EricLengyel
I wasn't really planning to cover 1D geometry in my upcoming book, but it seems there is enough interest that it would be a valuable inclusion.
Eric Lengyel
@EricLengyel
Here is the entire 1D rigid geometric algebra.
• The only type of geometry is a homogeneous point.
• The only proper isometry is a translation.
• The only improper isometry is a reflection.
• There are no rotations or transflections as exist in 2D. -
Eric Lengyel reposted
Jason Hise
@JasonHise64
Way more epic than it has any right to be.
youtu.be/B1J6Ou4q8vE -
Eric Lengyel
@EricLengyel
In 𝑛 dimensions, the act of negating the 𝑛 coordinates of a point requires 𝑛 reflections, one along each axis direction. This operation is a rotation, an orientation-preserving isometry, only when 𝑛 is even.
-
Eric Lengyel
@EricLengyel
I ran into something like this recently. A reasonably guessed pattern worked for a while and then broke down. In this case, we're counting the degrees of freedom for a 𝑘-D flat geometry in an 𝑛-D ambient space. The wrong answer worked for everything up through 4 dimensions! 1/2
Grant Sanderson
@3blue1brown
The puzzle below is a famous cautionary tale in math. But there's more to it than just coincidence, and on the YouTube version, we dig into what's really going on.
Full explanation: youtu.be/YtkIWDE36qU
Eric Lengyel
@EricLengyel
Binomial coefficients were already relevant, so something involving Pascal's triangle kind of made sense, but it turned out to be off by one for a 2D object in 5D space. It gets worse in higher dimensions. The correct, proven answer turned out to be simpler. 2/2
-
Eric Lengyel
@EricLengyel
Getting some things ready for SIGGRAPH today. Here's where the Terathon booth will be on August 8-10. If you're going to be there, stop by to check out the latest Slug Library, the C4 Engine, or my new math book!
-
Eric Lengyel
@EricLengyel
In 3D conformal geometric algebra, a 𝑘-vector represents a (𝑘 − 2)-sphere:
• A 4-vector is a sphere with a 2D surface,
• A 3-vector is a circle with a 1D surface,
• A 2-vector is a dipole with a 0D surface,
• A 1-vector is a point with a −1D surface. (?!)
1/3
Eric Lengyel
@EricLengyel
Trying to understand what's going on with points, the best I've got is this:
A real sphere contains real points inside and imaginary points outside. It's a solid ball of real points.
The dual of a real sphere is an imaginary point with the same center and absolute radius.
2/3
Eric Lengyel
@EricLengyel
An imaginary point is contained only by real spheres centered outside the point's radius and by imaginary spheres centered inside. In this sense, we can think of the point as an empty hole inside otherwise solid space.
3/3 -
Eric Lengyel
@EricLengyel
In an 𝑛-dimensional ambient space, a 𝑘-dimensional linear geometry has (𝑛 − 𝑘)(𝑘 + 1) degrees of freedom. That's how many real numbers are required to uniquely describe a point, line, plane, etc., which is less than the number of homogeneous coordinates used in GA. 1/2
Eric Lengyel
@EricLengyel
This diagram also highlights the correspondence between 𝑘-dimensional flat surfaces in 𝑛 dimensions and (𝑘 − 1)-dimensional round surfaces in 𝑛 − 1 dimensions. They have the same (𝑘 + 1)-grade representations in projective geometric algebra. 2/2
-
Eric Lengyel reposted
🐔 Brian Bucklew 🐔 ₑͤ>∿<ₑͤ ∞🌮
@unormal
Guys like this will complain forever about oo programming and then write a shitload of C functions that all start with a struct pointer thay they operate on
David Chapman
@Meaningness
The older you get, the harder to resist saying "I told you so."
When OO programming came in, it made no sense to me, and I've never used it. Everyone said I was too old to understand.
Thirty years later, everyone's snapping out of it and wondering wtf they'd been thinking. -
Eric Lengyel
@EricLengyel
Never accept less than what you're worth. Ever.
-
Eric Lengyel
@EricLengyel
This is a big upgrade with a lot of new functionality.
Slug Library
@SlugLibrary
Slug version 7.0 has been released!
-
Eric Lengyel
@EricLengyel
Slug 7.0 will be ready for release as soon as I finish updating the documentation.
-
Eric Lengyel reposted
sing waras ojo ngalah. #swong
@mncrgknskl
what is 'science'?
-
Eric Lengyel
@EricLengyel
Can't wait!
Croteam
@Croteam
The first look at The Talos Principle 2 gameplay is here!
Check it out and let us know what you think about some of the new puzzle mechanics, and share your best guess about what others we may have kept hidden for future unveiling.This media couldn't be displayed. See it on the original post. -
Eric Lengyel
@EricLengyel
To be published for SIGGRAPH 2023.
-
Eric Lengyel
@EricLengyel
I'd like to welcome Monolith Productions as the latest AAA studio to license the Slug Library for their font rendering and advanced typography needs.
sluglibrary.com -
Eric Lengyel reposted
Sherief, FYI
@SheriefFYI
The quality of writing seems to correlate inversely with the amount of promotion the writer does on social media, double so if we're talking about technical writing.
-
Eric Lengyel reposted
Unsolicited (not) Financial Advice
@unfadv
If you're a student/fresh grad who wants to become a graphics programmer in gamedev, here's the deal. You need to have a SOLID knowledge on what they taught you in school on: C++, 3D math, graphics, low level, algorithms.
-
Eric Lengyel
@EricLengyel
Implemented soft hyphen support in Slug today. Too much more of this kind of stuff, and I’ll have a full-blown word processor!
-
Eric Lengyel
@EricLengyel
Here's something about the quadratic equation that isn't often taught. The sign chosen in the solution
x = (−b ± sqrt(b² − 4ac)) / 2a
is also the sign of the derivative at the root x. Choosing plus always gives the root where the curve goes up through the x axis. 1/3
Eric Lengyel
@EricLengyel
Choosing minus always gives the root where the curve goes down through the x axis. (The meaning of up and down are as x increases.) This correspondence is true regardless of the sign of a. 2/3
Eric Lengyel
@EricLengyel
This is obvious as soon as you plug the roots into the derivative, but it's not something people seem to realize. Slug relies on it to add or subtract from the winding number without checking the derivative, but I was asked by smart people how I could be sure that was right. 3/3
-
Eric Lengyel
@EricLengyel
This is what I see when I boot my Windows 11 machine. Looks like vector graphics rendering artifacts due to floating-point precision problems in whatever method they’re using.
-
Eric Lengyel
@EricLengyel
The Terathon Math Library has been updated with faster quaternion and motor (dual quaternion) transformation functions for points, lines, and planes.
github.com/EricLengyel/Terathon-Math-Library -
Eric Lengyel
@EricLengyel
I got to admit, the latest episode of Picard ended on a pretty sweet note.
-
Eric Lengyel reposted
-
Eric Lengyel reposted
jendrik illner
@jendrikillner
Graphics Programming weekly - Issue 281 - April 2nd, 2023 www.jendrikillner.com/post/graphics-programming-weekly-is…
-
Eric Lengyel
@EricLengyel
The Terathon Math Library has been updated on GitHub to bring component naming conventions in line with the PGA wiki and my GDC talk. MIT license.
github.com/EricLengyel/Terathon-Math-Library -
Eric Lengyel
@EricLengyel
This is interesting. On the day of my post about piracy last week and the following day, FGED 1&2 had the highest two-day combined sales of all time by a significant margin.
-
Eric Lengyel
@EricLengyel
LOL
0xDesigner
@0xDesigner
Probably the best thing you'll see today.
In 2017, a group of developers hilariously competed for who could create worst volume control interface in the world.
The results 🧵
1/22 -
Eric Lengyel
@EricLengyel
Let’s call it what it has ultimately become, OpenGL 5.0!
Dieter
@dieter_debaets
ok, I'm calling it, we should have a @VulkanAPI V2. Now that we have extensions that fundamentally change framebuffers, pipelines, DSsets, shader stages ... , there should be a V2 rather then this mumbo jumbo of extensions, parallel APIs and just general bloat/verbosity
-
Eric Lengyel
@EricLengyel
My final GDC slides are available here:
terathon.com/gdc23_lengyel.pdf
I was having problems with the vector graphics in the conversion from PPT to PDF. It turns out I could open the whole PDF in Illustrator and manually replace the problematic diagrams. -
Eric Lengyel
@EricLengyel
The problem statement at the beginning of this document is an extremely well conceived and lucid analysis of Vulkan's design issues.
github.com/KhronosGroup/Vulkan-Docs/blob/main/proposals/V… -
Eric Lengyel
@EricLengyel
It's truly amazing how many people have delusions that conflict with verifiable facts. One person scolded me for not selling my books for $20-30. I pointed out that such a price wouldn't even cover the manufacturing costs for FGED2, and he told me I was dead wrong. 1/3
Eric Lengyel
@EricLengyel
The paperback version of FGED2 is 412 pages long, and it's printed at a trim size of 7.5 x 9.25 inches in premium color. You can see what Amazon charges yourself right here (just enter anything for the list price):
kdp.amazon.com/en_US/help/topic/GSQF43YAMUPFTMSP
2/3
Eric Lengyel
@EricLengyel
It costs $29.69 to print one copy of FGED2, and the absolute minimum purchase price I'm able to set is $49.48. At that price, I make precisely $0.00, so of course the list price has to be higher. My royalty is 60% of the difference between the list price and the min price. 3/3
-
Eric Lengyel reposted
Landon ⚛️
@PartlyAtomic
I absolutely wasn't prepared for how fast @C4Engine compiles.
========== Rebuild started at 7:13 PM and took 22.021 seconds ========== -
Eric Lengyel reposted
Michael Tornberg
@Planetrift
@C4Engine The engine compiles so fast I first thought something was missed. Never been happier to be wrong. This actually makes it fun to code again.
-
Eric Lengyel
@EricLengyel
50 today.🎂
-
Eric Lengyel reposted
🙊Christer Ericson
@ChristerEricson
I totally support this sentiment. If I ever were to write a book again, I would 1) self-publish, and 2) only offer print copies, no electronic books, for the same reason Eric mentions.
Eric Lengyel
@EricLengyel
Due to rampant, out of control, ridiculous, completely insane levels of piracy, my future books will not be published in electronic format.
-
Eric Lengyel
@EricLengyel
Apparently, the technology needed to make a PDF out of my GDC slides with vector graphics preserved does not exist.
(Whatever you're thinking, I've already tried it, and it's broken.) -
Eric Lengyel
@EricLengyel
I think the turning point here was discovering that a large portion of my students last quarter were using pirated copies of FGED right in front of me.
Eric Lengyel
@EricLengyel
Due to rampant, out of control, ridiculous, completely insane levels of piracy, my future books will not be published in electronic format.
-
Eric Lengyel
@EricLengyel
Due to rampant, out of control, ridiculous, completely insane levels of piracy, my future books will not be published in electronic format.
-
Eric Lengyel
@EricLengyel
Many early adopters of the C4 Engine, from way back in 2005, have shown up again to grab the latest version, including the first licensee of all time! Reactivate your license here:
c4engine.com/activate.php
New licenses cost $100 for life! Get yours here:
terathon-software-llc.square.site/product/c4-engine/9 -
Eric Lengyel
@EricLengyel
All copies of FGED 1 & 2 have sold out at GDC. Enjoy!
-
Eric Lengyel
@EricLengyel
Still plenty of free posters available at the GDC booth. Come and get ‘em!
-
Eric Lengyel
@EricLengyel
I still have a few copies of FGED 1 & 2 left at the GDC booth with a show discount, but they’re almost sold out!
-
Eric Lengyel reposted
C4 Engine
@C4Engine
Awesome laser-etched water bottles at the C4 booth.
-
Eric Lengyel
@EricLengyel
If you’re at GDC, stop by the Slug / C4 booth and say hello! South hall, booth 1326.
-
Eric Lengyel
@EricLengyel
The slides from my GDC presentation "Practical Projective Geometric Algebra" are now available here:
terathon.com/gdc23_lengyel.pdf
I'll be able to upload a better version that includes the movies after the conference. -
Eric Lengyel
@EricLengyel
This is my 25th GDC.
-
Eric Lengyel reposted
Hamish Todd
@hamish_todd
I'm giving two consecutive talks at the Game Developer Conference, on Tuesday 21st of March 😁
The first is on Quaternions and Dual Quaternions; the second is on how they combine beautifully with points, lines, and planes 🙂
Please HMU if you're at GDC -or in SF in late March! -
Eric Lengyel
@EricLengyel
The final class of the quarter is already here at UCSC! I'll be talking about color science, physical units of illumination, exposure, tone mapping, and gamma correction.
-
Eric Lengyel
@EricLengyel
The Terathon Math Library has been updated to include primitives for round objects (round points, dipoles, circles, and spheres) in conformal geometric algebra.
MIT license.
github.com/EricLengyel/Terathon-Math-Library -
Eric Lengyel
@EricLengyel
This week in my real-time rendering class at UCSC, I'm talking about portal systems and marching cubes.
-
Eric Lengyel
@EricLengyel
I wish I could get Twitter Blue without the checkmark. Tweets up to 4000 characters and 30-minute editing abilities sound like they might be worth $8/mo.
-
Eric Lengyel
@EricLengyel
Practical Projective Geometric Algebra
Tuesday, March 21 at 4:10pm, Room 2001 West Hall
#gdc23
schedule.gdconf.com/session/math-in-game-development-summ… -
Eric Lengyel
@EricLengyel
The ultimate Terathon poster pack. I'll have all of these to give away at booth 1326 in the south hall at GDC.
See next tweet for PDF download links.
Eric Lengyel
@EricLengyel
Geometric Algebra
projectivegeometricalgebra.org/projgeomalg.pdf
projectivegeometricalgebra.org/confgeomalg.pdf
Slug Algorithm
sluglibrary.com/slug_algorithm.pdf
C4 Engine
c4engine.com/C4Engine.pdf
Transvoxel
transvoxel.org/Transvoxel.pdf
OpenDDL
openddl.org/openddl.pdf
Binary Fundamentals
terathon.com/binary_fund.pdf -
Eric Lengyel
@EricLengyel
I've seen plenty of fur shaders, but what about feathers?
-
Eric Lengyel reposted
Бранимир Караџић
@bkaradzic
I completely removed use of CRT or anything from C++ RT / STL from my own code base. This is something I tried to do multiple times at game companies, but there was always someone who was holding it back (including myself at some point when I thought it's not a good idea).
-
Eric Lengyel
@EricLengyel
In my real-time rendering class tomorrow, we're talking about all things fog. Participating media, absorption, scattering, extinction, optical depth, half-space fog, fog-based occlusion...
-
Eric Lengyel
@EricLengyel
Another new print I have is this large 36x24 inch poster full of information about specific parts of conformal geometric algebra.
The PDF is available here:
projectivegeometricalgebra.org/confgeomalg.pdf
A printed version can be ordered on Amazon here:
www.amazon.com/dp/B0BW6RG8VK/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
For the same reason that you drive on a parkway and park on a driveway.
Arvid Gerstmann
@ArvidGerstmann
Why are deliveries on a ship called "cargo" but in a car, it's called a "shipment"?
-
Eric Lengyel
@EricLengyel
I would also like to see GPUs implement the 1D analog of cube texture mapping. Square maps? This would be the right fit for horizon mapping weight lookup.
-
Eric Lengyel
@EricLengyel
Argh! It's 2023, and GPUs still don't have 3D texture arrays. I have multi-channel volumetric data that I'd prefer not to pack into separate parts of the same layer. It would be so much cleaner to grab some data from one layer and other data from the same coords in another layer.
-
Eric Lengyel
@EricLengyel
In conformal geometric algebra, round points, dipoles, circles, and spheres can be real or imaginary, depending on whether the squared radius is positive or negative. A real sphere contains real points inside its surface and imaginary points outside. 1/2
Eric Lengyel
@EricLengyel
An imaginary sphere contains imaginary points both inside and outside, but it cannot contain any real points. Despite there being 4 combos of real and imaginary, only 3 can happen, and they correspond to 𝑟, 𝑅, and 𝑑 assuming the role of the hypotenuse in a right triangle. 2/2
-
Eric Lengyel
@EricLengyel
I made this binary fundamentals chart for my students.
You can grab a PDF here:
terathon.com/binary_fund.pdf
Eric Lengyel
@EricLengyel
Eric Lengyel
@EricLengyel
I have 18x24 inch poster prints of this Binary Fundamentals chart now, and I can ship anywhere in the U.S. for the time being. You can order it through Amazon:
www.amazon.com/dp/B0BW6NFZ6P/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
I have 18x24 inch poster prints of this Binary Fundamentals chart now, and I can ship anywhere in the U.S. for the time being. You can order it through Amazon:
www.amazon.com/dp/B0BW6NFZ6P/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
My upcoming GDC talk about geometric algebra will include comparisons for specific tasks like the following.
-
Eric Lengyel
@EricLengyel
My company will have its usual GDC booth at the front of the South Hall this year, and I'll be there all day every day. See the newest version of Slug or the C4 Engine, or stop by just to chat about C++ or math or whatever!
-
Eric Lengyel reposted
C4 Engine
@C4Engine
C4 Engine version 7.0 will be released at the Game Developers Conference on March 22, 2023.
All previous users with a perpetual license will receive a free upgrade. New users can obtain a personal license for $100.
More details to come over the next few weeks! -
Eric Lengyel
@EricLengyel
At GDC 2023, I'm giving a 60-minute talk entitled "Practical Projective Geometric Algebra". It will highlight situations where geometric algebra makes code easier to write, but it will also tell you when GA is *not* practical and it's better to just stick with good old matrices.
-
Eric Lengyel
@EricLengyel
Todays topics in my real-time rendering class are polygon clipping and occlusion culling.
-
Eric Lengyel
@EricLengyel
I'd really love to see standard C++ get branched into a new simplified language that stays as true as possible to the original under the constraint that it fixes the massive problems wherever feasible. I'm just talking about the language here—the entire std library needs to go.
Eric Lengyel
@EricLengyel
Don't get me wrong. I love the core C++ language, and all of my major work has been written in C++ since 1994. I have no intention of switching to any other language, nor would it be practical for me to do so.
-
Eric Lengyel
@EricLengyel
This week's topic in my real-time rendering class is all sorts of texture mapping. Diffuse / specular mapping, alpha testing, bump mapping, parallax mapping, horizon mapping, ambient occlusion mapping, tangent space...
-
Eric Lengyel
@EricLengyel
There's no way to save a Word doc to PDF and preserve SVG diagrams as vector gfx. Not with MS tools, not with Adobe tools. No matter what I try, I run into unwanted rasterization, rendering errors, horrible precision, sloppy feature support, or outright crashes. It's all broken.
-
Eric Lengyel
@EricLengyel
Attention application developers. If the user creates a new document and then closes it without making any edits, you don't need to display a dialog asking them whether they want to save it.
-
Eric Lengyel
@EricLengyel
Apparently, talking about all of that for over three hours is a recipe for laryngitis.🙁
Eric Lengyel
@EricLengyel
In my real-time rendering class at UCSC today, I'm talking about frustum culling, light-object culling, more on points, lines, and planes, a little bit about quaternions, and an introduction to Grassmann algebra.
-
Eric Lengyel
@EricLengyel
In my real-time rendering class at UCSC today, I'm talking about frustum culling, light-object culling, more on points, lines, and planes, a little bit about quaternions, and an introduction to Grassmann algebra.
-
Eric Lengyel
@EricLengyel
Them's fightin' words.
bmcnett
@bmcnett
The original Night Court wasn't all that great, anyway.
-
Eric Lengyel reposted
Sabine Hossenfelder
@skdh
Sometimes I come across a paper on an idea I have long ago explained is nonsense, even published a paper laying out why that is so, but people just continue publishing more nonsense on it. Academia is so fucking broken and I'm so fucking tired of it.
-
Eric Lengyel
@EricLengyel
Quick clarification because I've encountered some misunderstandings lately:
The Slug algorithm does not use supersampling to achieve antialiasing. It calculates a floating-point coverage value for a single sample point. 1/3
Eric Lengyel
@EricLengyel
The Slug shader does, however, include a dynamic supersampling mode, but it is only intended to be used in extreme cases when text can be very small inside 3D environments. It works as a filter to smooth things out so you don't see sparkling or wobbling on very tiny glyphs. 2/3
Eric Lengyel
@EricLengyel
That supersampling mode is not turned on under normal operation, certainly not for any text rendered at an ordinary readable size. And the "dynamic" part means that it wouldn't be active at those sizes anyway because the shader determines that the glyphs aren't small enough. 3/3
-
Eric Lengyel
@EricLengyel
I looked at the WGSL spec for the first time today. Um....
-
Eric Lengyel
@EricLengyel
In my class at UCSC this week, the math topics include line and plane representations and calculations involving points, lines, and planes. The graphics topics will be the view frustum and bounding volume culling.
-
Eric Lengyel
@EricLengyel
Though not nearly as awesome as the flaming rocket-propelled chainsaw launcher in Serious Sam 4, I figured I'd add an improvised engine-powered buzzsaw to @The31stGame. First task is to sync the chain, which is just an animated alpha-tested texture, with the rotating saw blade.
Eric Lengyel
@EricLengyel
The buzzsaw will be a special weapon that you get once you've collected all of the separate parts. Maybe it could shoot flaming saw blades of death, too, since we have this nifty blade pack.
-
Eric Lengyel
@EricLengyel
I still see a lot of games that use bump and parallax mapping extensively, but don't include horizon mapping. HM has a simple shader implementation, it works with dynamic lights, and the results can be pretty remarkable. See FGED2, Section 7.8 for details.
www.amazon.com/dp/0985811757/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
Here's what my font rendering looked like in 1997.😀
It would be fun to do a GPU based remaster that uses Slug for the massive amount of text in this game.
Questing for Glory: The Quest for Glory History
@qfgbook
Finally drinking the Dragon's Breath: a story in four parts
-
Eric Lengyel
@EricLengyel
After some more math review, I'm teaching point light attenuation and basic diffuse/specular shading with texture maps today at UCSC.
-
Eric Lengyel
@EricLengyel
(Top) A typical computer keyboard rendered inside a 3D environment. This is from a PC game released about two years ago.
(Bottom) A keyboard rendered in the C4 Engine using the Slug Library to draw the text on all the keys.
Eric Lengyel
@EricLengyel
Btw, the keyboard itself is just a flat quad. Parallax and horizon mapping are making it look like there's more geometry there.
-
Eric Lengyel
@EricLengyel
I have established a wiki for conformal geometric algebra at the link below. I'm still working on it, so it's not complete, but there's enough information now for me to post it. My upcoming book will go into much deeper exposition.
conformalgeometricalgebra.org
#geometricalgebra -
Eric Lengyel
@EricLengyel
I’m getting my axes warmed up for a new year of classes at UC Santa Cruz. I’m teaching the same classes as last year again, CMPM 163: Game Graphics and Real-Time Rendering and CMPM 164: Game Engines.
-
Eric Lengyel
@EricLengyel
Range-based for loops also do not require use of STL in any way. I did the tiny amount of work necessary to support them in my own container classes (Array, List, Map, and Graph), and I agree it is a very convenient feature.
github.com/EricLengyel/Terathon-Container-Library
Fletcher Dunn
@ZPostFacto
The other day there were some threads about the ranged-based for loop. I have opinions; here they all are!
(Begin tutorial for those who need it.) "Range-based" refers to a loop construct introduced in C++ 11. E.g.:
std::vector<int> vec;
for ( int x: vec ) { f(x); } -
Eric Lengyel
@EricLengyel
I'm happy to announce that Insomniac Games has joined the growing list of AAA studios now using the Slug Library for their font rendering and advanced typography needs.
sluglibrary.com -
Eric Lengyel
@EricLengyel
OMG, there’s a new Night Court starting in two weeks? Sweet!
-
Eric Lengyel reposted
Slug Library
@SlugLibrary
Slug version 6.5 has been released.
A new Windows demo can be found on the sluglibrary.com website.
Happy New Year! -
Eric Lengyel
@EricLengyel
New Slug 6.5 performance data that includes a high-end Radeon GPU. This comes from a very specific test designed to measure raw fill rate of the Slug glyph shader.
Slug 6.5 to be released on Jan 3, 2023. sluglibrary.com -
Eric Lengyel
@EricLengyel
I'm setting a release date of Jan 3, 2023 for Slug version 6.5. It's pretty much good to go, but trying to release right now would be a little silly. We'll be doing some additional testing and documenting until people get back from the holidays. It's a pretty significant update.
-
Eric Lengyel
@EricLengyel
If that hurts, then you definitely don't want me to start showing you close ups of vector emoji glyphs in either the Segoe or Twemoji fonts.
-
Eric Lengyel
@EricLengyel
Another new data point today -- GeForce RTX 3070.
-
Eric Lengyel
@EricLengyel
New Slug perf data point today -- Intel ARC 770.
Much better than expected. Consider me impressed.
This worked perfectly under OpenGL. The Vulkan driver crashed. DX12 version ran, but did not render correctly.
Performance in C4 Engine was much less impressive. More on that later. -
Eric Lengyel
@EricLengyel
Got a GeForce RTX 4080 to try out today. Holy Toledo!
This test covers a 4K screen with one triangle containing the interior of the letter "o" from the Arial font to measure the raw computational performance of the Slug shader with a simple glyph. -
Eric Lengyel
@EricLengyel
A sphere 𝐬 with center 𝐜 and radius 𝑅 contains a round point 𝐩 on its surface when 𝐬 ∧ 𝐩 = 0.
If 𝐩 has radius 𝑟, then (𝐜 − 𝐩)² = 𝑅² − 𝑟².
For a real sphere (𝑅² > 0, blue), real points (𝑟² > 0, green) are inside, and imaginary points (𝑟² < 0, purple) are outside.
Eric Lengyel
@EricLengyel
An imaginary sphere (𝑅² < 0) cannot contain any real points (with 𝑟² > 0) because then (𝐜 − 𝐩)² would be negative, which is impossible. Imaginary spheres contain only imaginary points (of no lesser absolute size), which is somewhat of a rare asymmetry in geometric algebra.
Eric Lengyel
@EricLengyel
The three cases (1) real point inside a real sphere, (2) imaginary point outside a real sphere, and (3) imaginary point inside or outside an imaginary sphere correspond to three right triangles in which 𝑅, ‖𝐜 − 𝐩‖, and 𝑟 each assume the role of the hypotenuse, respectively.
-
Eric Lengyel
@EricLengyel
As someone who (circa 1984) learned Pascal before C, I see trailing return types as both the old school syntax and the modern syntax.
-
Eric Lengyel
@EricLengyel
More generally this, where 𝐜 and 𝑟 are the center and radius of the sphere made by the four points (𝑥, 𝑦, 𝑧). The RHS is zero if 𝐩 lies on the surface of the sphere, positive if 𝐩 lies inside the sphere, and negative if 𝐩 lies outside the sphere.
Algebra Etc.
@AlgebraFact
Equation of a sphere through four points
-
Eric Lengyel
@EricLengyel
Objects in conformal GA can have a real or imaginary radius. I need a term that describes the property of being real or imaginary without regard for size.
One could ask "What is the _____ of X?", and the answer would be either "real" or "imaginary". What should go in the blank?
Eric Lengyel
@EricLengyel
We usually only see the square of the radius, which is positive in the real case and negative in the imaginary case. A fitting term could reflect this positive or negative property instead of the realness or imaginariness of the radius.
-
Eric Lengyel reposted
Mario Zechner
@badlogicgames
Good memories.
-
Eric Lengyel
@EricLengyel
Properties of all the types of geometries you'll find in 3D conformal geometric algebra.
#geometricalgebra -
Eric Lengyel
@EricLengyel
Suppose you have two arbitrarily oriented circles in 3D space. How would you tell if they're linked or not?
The antiwedge product between them gives a round point. Its squared radius is positive (green) if the circles are linked and negative (purple) otherwise.
#geometricalgebra -
Eric Lengyel
@EricLengyel
I'm gradually building a wiki for the 5D conformal geometric algebra similar to the one I've made for the 4D rigid algebra. It will contain information like these join, meet, and connect operations that can all be done with the wedge and antiwedge products.
#geometricalgebra -
Eric Lengyel
@EricLengyel
Today’s Wordle answer was a word I encounter a lot more than most people would!
-
Eric Lengyel reposted
Andreas Kling
@awesomekling
Rust is a neat language, but without inheritance and virtual dispatch, it's extremely cumbersome to build GUI applications.
If they added basic OO functionality today, we'd be drowning in Rust-based GUI apps by this time next year. -
Eric Lengyel
@EricLengyel
These are the full 1024-entry Cayley tables for the geometric product and antiproduct in 5D conformal geometric algebra (using the basis where e₄ = origin and e₅ = infinity).
#geometricalgebra -
Eric Lengyel
@EricLengyel
Enrollment in my Game Graphics and Real-Time Rendering course at UCSC has reached the full capacity of 90 students this upcoming winter!
-
Eric Lengyel
@EricLengyel
I wanted to rotate an image 90 degrees CCW in @Microsoft Word. First, I tried entering 90 in the rotation field, and it rotated 90° CW. Ah, wrong direction. So I entered −90 in the rotation field, and it rotated 286° CW. I tried some others, and they're all subtracted from 376°.
-
Eric Lengyel reposted
Michael IV
@SasMaster1980
Finally I have found time to finish this boring technical article regarding integration of @SlugLibrary into @UnrealEngine. Hopefully,those of you who want to learn more how to extend UE rendering functionality find it useful.
sasmaster.medium.com/vector-text-rendering-in-unreal-engi… -
Eric Lengyel
@EricLengyel
Is it valid to consider a monopole to be a dipole with one end at infinity? I thought I heard something like this a long time ago, but I can’t find anything about it now.
-
Eric Lengyel
@EricLengyel
All the properties of a circle you ever wanted to know about in 3D conformal geometric algebra.
-
Eric Lengyel
@EricLengyel
Here are some numbers showing the pixel shader performance of a specific test in the @SlugLibrary on various console and desktop hardware. (Yes, I need to get my hands on some newer desktop GPUs.)
-
Eric Lengyel
@EricLengyel
Tried to order online from @Outback. Enter email and password. Get a message saying something went wrong. It tells me to try again in a few minutes. I try again a couple times. Then I get a message saying that my account is blocked for too many failed attempts to login.
-
Eric Lengyel
@EricLengyel
I will once again be teaching upper division computational media courses at UC Santa Cruz in the Winter and Spring quarters of 2023:
• CMPM 163 - Game Graphics and Real-Time Rendering
• CMPM 164 - Game Engines -
Eric Lengyel
@EricLengyel
OK, @Microsoft, what now? You're not giving me the option to install anything.
-
Eric Lengyel
@EricLengyel
So why intrusive containers in C4? To look at one example out of many, consider that a single node in the scene can range in size from a few hundred bytes to roughly a kilobyte in size. (The largest levels I've worked with have more than a million nodes in them.) 1/9
Post not available here, view on X
Eric Lengyel
@EricLengyel
The only option with an STL-like approach would be to have containers of pointers. But then you've got additional allocations separate from the objects themselves. Much more importantly, cleanup becomes a nightmare of two-way dependencies! 8/9
Eric Lengyel
@EricLengyel
When a node is deleted, it would have to go look in all containers that could possibly be holding a reference to it and remove itself. This requires a node to have knowledge of internal structures in lots of other places, which is extremely poor and error-prone design. 9/9
-
Eric Lengyel
@EricLengyel
The largest task remaining before I can release C4 Engine version 7.0 is an upgrade to the GI solution. For many years, the engine has been using a volumetric "illuminance space" that contains precomputed ambient light for 6 directions at every point inside a 3D grid. 1/12
Post not available here, view on X
Eric Lengyel
@EricLengyel
I'm going to partition the full volume into regularly-sized chunks that can have their resolutions set independently. The chunks will be packed into a single 3D texture. One nice consequence of this is that we can exclude dead spaces like the volume underneath the terrain. 7/12
Eric Lengyel
@EricLengyel
An additional 3D texture containing integer indexes into a table of chunk data will tell the shader where to sample the luminance and chromaticity textures. This texture will be much smaller than the others because it just contains one texel per chunk. 8/12
Post not available here, view on X
Eric Lengyel
@EricLengyel
It would be possible to update chunks or special volumes individually at run time for some degree of dynamic GI. This could include simple things like blending between precomputed GI for different states like a door being open or closed. 11/12
Eric Lengyel
@EricLengyel
Anyway, none of this is meant to be pushing the state of the art. My goal is to implement a clean solution for mostly static GI that looks better than what I've currently got, offers meaningful flexibility to level designers, and still runs fast on low-end hardware. 12/12
-
Eric Lengyel reposted
Game From Scratch
@gamefromscratch
Developer @EricLengyel, creator of the C4Engine, has released the Terathon Container Library (think STL for games) as open source, as well as changing the Terathon Math Library to the much more useful MIT license.
gamefromscratch.com/terathon-container-math-c-libraries-o…
#gamedev #indiedev #opensource -
Eric Lengyel
@EricLengyel
In the C4 Engine, a simple text widget in a UI panel supports just about all of the features provided by Slug. This means the number of settings shown in the panel editor is kind of nuts:
c4engine.com/wiki/index.php?title=Text_Widget -
Eric Lengyel
@EricLengyel
I have updated the following repositories to be available under the MIT License:
• Terathon Math Library
• Terathon Container Library
• Open Data Description Language (OpenDDL)
• Open Game Engine Exchange (OpenGEX)
github.com/EricLengyel -
Eric Lengyel
@EricLengyel
I have posted the Terathon Container Library on github. This is a collection of the various C++ classes for arrays, lists, maps, hash tables, trees, and graphs that I have used in my work for a long time.
github.com/EricLengyel/Terathon-Container-Library -
Eric Lengyel
@EricLengyel
A lot of people have been asking about FGED3. It's in progress, but I wouldn't say it's near completion yet. Slug and C4 have been taking priority lately, but I plan to dedicate more time to writing this winter.
-
Eric Lengyel reposted
Sylvain Meunier
@meuns
rigidgeometricalgebra.org/wiki/index.php?title=Main_Page is great !
-
Eric Lengyel
@EricLengyel
I posted some minor updates to the Terathon Math Library.
github.com/EricLengyel/Terathon-Math-Library -
Eric Lengyel
@EricLengyel
The @C4Engine has used similar techniques to send reliable packets over UDP for more than two decades. But it also lets games send unreliable data that does not need to be acknowledged or received in the order sent. 1/4
Alex Xu
@alexxubyte
/1 What protocol does 𝐨𝐧𝐥𝐢𝐧𝐞 𝐠𝐚𝐦𝐢𝐧𝐠 use to transmit data? TCP or UDP?
A common practice is to use RUDP (Reliable UDP). It adds a 𝐫𝐞𝐥𝐢𝐚𝐛𝐥𝐞 mechanism on top of UDP so that it provides 𝐦𝐮𝐜𝐡 𝐥𝐨𝐰𝐞𝐫 𝐥𝐚𝐭𝐞𝐧𝐜𝐲 than TCP and guarantees accuracy.Post not available here, view on X
Eric Lengyel
@EricLengyel
There are a couple situations in which an unreliable packet is good enough. First, things that don't affect gameplay like the creation of random particle effects won't matter if the packet is lost and the client never knows about them. 3/4
Eric Lengyel
@EricLengyel
Second, state updates for characters, projectiles, etc., that are sent with some regularity don't need to be reliable because they will be superseded by the next update. If one of these packets is lost, the client will simply extrapolate from the last state a little longer. 4/4
-
Eric Lengyel
@EricLengyel
When the Slug shader is compiled from source in OpenGL, a specific test graphic takes 1.05ms to render on a GeForce GTX 1060.
When the same shader is compiled with DXC and run in D3D12 on the same computer, the same test takes 1.38ms to render, over 30% longer. -
Eric Lengyel
@EricLengyel
This is the *first time* running the Slug demo with a new D3D12 rendering path today. I can't believe it got this far! This means shaders, descriptor tables, vertex arrays, pipeline objects, and texture uploads all worked. I just forgot to clear the render target to white.
-
Eric Lengyel
@EricLengyel
Heh, I came across a blog post that credits an "angry" tweet of mine as the impetus for the development VK_EXT_extended_dynamic_state. Surely, I was not the first engine programmer frustrated by the loss of separate control over orthogonal HW state.
rg3.name/202007082102.html -
Eric Lengyel
@EricLengyel
I didn't realize the HLSL -> SPIR-V -> Vulkan pipeline was so mature. This could change things.
-
Eric Lengyel
@EricLengyel
There's an advantage to using D3D12 instead of Vulkan in the @C4Engine that I failed to mention yesterday. The shader code would be a lot more consistent across desktop / console platforms. HLSL and PSSL are essentially the same, but GLSL is different and has some odd quirks. 1/2
Eric Lengyel
@EricLengyel
It's not terribly difficult to write hybrid shader code that supports both HLSL and GLSL with a bunch of special defines (what I'm doing now), but using D3D12 would eliminate an extra layer of complexity. Combined with PC + Xbox under one API, I'm leaning this direction now. 2/2
-
Eric Lengyel
@EricLengyel
The @C4Engine currently uses OpenGL 4.5 on desktop, but I need to move to either Vulkan or D3D12. Now that I have some decent experience with both APIs, I think @VulkanAPI is the better choice. 1/4
Post not available here, view on X
Eric Lengyel
@EricLengyel
I still need to use D3D12 on Xbox, but at least there I can make use of the derived PSO mechanism. It's not as good as dynamic state, but it's something. If derived PSOs were available on Windows, it would make sense to write shared D3D12 code for desktop and Xbox. 3/4
Eric Lengyel
@EricLengyel
I'm kind of disappointed that D3D12 wasn't designed to match desktop / console hardware better since (I believe?) mobile didn't really need to be considered. This is where the GNM and AGC libraries on PS4/5 really shine, but of course, they only had to support one GPU each. 4/4
-
Eric Lengyel
@EricLengyel
I think it's about time that everyone just publishes on their own website, and journals cease to exist. Authors can post preliminary versions to get feedback before final publication. In recent years, I always got better comments from Twitter than I did from anonymous reviewers.
-
Eric Lengyel
@EricLengyel
The size of the Slug User Manual compared to other books I've written.
-
Eric Lengyel
@EricLengyel
You know what GPU feature I'd really like to see? The ability for the vertex shader to select an entry point for the fragment shader to be used by all pixels in a triangle. Or maybe a switch statement in the FS would be good enough. Anybody know the performance implications?
-
Eric Lengyel
@EricLengyel
It's great to see all the new emoji functionality in version 1 of the OpenType COLR table, but I think it may be a little overengineered. It's going to be very difficult to support all of this in a shader.
learn.microsoft.com/en-us/typography/opentype/spec/colr -
Eric Lengyel
@EricLengyel
I have received *many* inquiries about the C4 Engine over the past few months. There are a couple of things that still need to be updated, and then version 7.0 will be released. 1/2
c4engine.com
Eric Lengyel
@EricLengyel
More specifically, I'm currently working on an update to the global illumination method used by the engine, and I still need to make some updates to the material system. Doing these later could break a lot of user content, so it needs to be done before release. 2/2
-
Eric Lengyel
@EricLengyel
Slug version 6.4 has been released. The updated demo and user manual are available on the website.
sluglibrary.com
Slug Library
@SlugLibrary
Slug version 6.4 has been released! This version includes new API functions for faster CPU text processing, new placeholder functionality, and updated bidirectional layout features.
-
Eric Lengyel reposted
Wonderland Engine
@WebXREngine
With Wonderland Engine 0.9, #webxr finally got game-industry standard text rendering, thanks to @SlugLibrary.
Text rendering is crucial for VR, you need readability at a distance and perfectly crisp edges at closeup. -
Eric Lengyel
@EricLengyel
I turned on code analysis in VS to see what it would say. After getting a giant list of false positives, I unchecked all the boxes, but it wouldn't turn off! If you find yourself in the same situation, the XML tag to delete in the proj file is called <EnablePREfast>. Obviously.
-
Eric Lengyel
@EricLengyel
The description above Star Trek sounds a lot more interesting.
-
Eric Lengyel
@EricLengyel
The person who put all of this in one package deserves a promotion.
-
Eric Lengyel
@EricLengyel
Why do you keep doing this, @NBCSports? No graphics professional worth a damn would let this slide.
-
Eric Lengyel
@EricLengyel
"Rejection notes are often so random, or just factually incorrect, that applicants suspect nobody actually read their paper."
For a @siggraph paper I submitted a long time ago, I can prove at least one reviewer did not read later sections. And others had conflicts of interest.
🙊Christer Ericson
@ChristerEricson
“Employers need to know the reality is that getting conference papers accepted is extremely random.”
The paper reviewing system is crap, for sure, but does the professor really think employers fundamentally care about academic comp sci publications? -
Eric Lengyel
@EricLengyel
It looks like Unity does not have any support for true integer texture formats (not normalized to [0,1] float). Is that correct?
-
Eric Lengyel
@EricLengyel
Extreme magnification in the Slug demo reveals errors in the original artwork for some emoji. I'm always worried that somebody will interpret this as a rendering bug in Slug, but it's not. (This is Unicode 1F9B8 in the Windows 11 Segoe Emoji font.)
sluglibrary.com -
Eric Lengyel
@EricLengyel
The Slug demo currently runs on top of a bunch of graphics APIs: Vulkan, OpenGL, D3D11, Metal, GNM, and AGC. I'll start working on the D3D12 version tomorrow to complete the set.
Eric Lengyel
@EricLengyel
(This does not mean the Slug Library itself doesn't yet work with D3D12. It does.)
-
Eric Lengyel
@EricLengyel
Pro tip for startup executives: Do not ask a vendor if you can use their product now, but pay for it only after you've shipped, become profitable, succeeded, etc. At best, this is highly inappropriate. And in my experience, every studio who asked me that question failed. 1/2
Eric Lengyel
@EricLengyel
If your company cannot afford the basic tools that you need to build your awesome new software that's going to change the world, then you don't actually have a viable business plan. You need to step back and reevaluate your situation before attempting to go any further. 2/2
-
Eric Lengyel
@EricLengyel
I am delighted to announce that id Software, one of the companies that inspired me to go into game development back in the 90s, is now a Slug licensee! I can't wait to see Slug running in future DOOM games.
-
Eric Lengyel
@EricLengyel
Yesterday, I used Windows Explorer to copy a new index.html to one of my websites over FTP. I dragged the file over to the web server's window, and I would normally get a dialog asking if I want to replace the existing file, but this time nothing happened. 1/6
Post not available here, view on X
Eric Lengyel
@EricLengyel
This is just the latest example of a general trend of poorly thought out and poorly implemented design in modern operating systems. It's certainly not just Windows. 5/6
Eric Lengyel
@EricLengyel
Everybody is copying terrible design from everybody else because they think that's just how it's supposed to be. Nobody seems to have been taught proper UI design (well known since at least the late 70s) or to actually think carefully about what happens in failure situations. 6/6
-
Eric Lengyel
@EricLengyel
The #orville is rocking it.
-
Eric Lengyel
@EricLengyel
I've only attended one wedding in my life for which the couple is still married today -- my own.
-
Eric Lengyel
@EricLengyel
Working on some essential graphical upgrades in the C4 Engine. There are some things in there that are still based on 15-year-old designs, and they definitely need to be replaced.
-
Eric Lengyel
@EricLengyel
Some people reading this weren't born yet when I started working on the C4 Engine in 1999.
-
Eric Lengyel
@EricLengyel
The C4 Engine contains all of Slug.
-
Eric Lengyel
@EricLengyel
Something tells me this would be a really good time to bring back the C4 Engine. (It's almost ready.)
-
Eric Lengyel
@EricLengyel
Is there a specific term for the point on a geometric shape that's closest to the origin? The shape could simply be a line or plane, and we assume there's only one closest point. I couldn't really find anything that's widely accepted other than "point closest to the origin".
-
Eric Lengyel reposted
Slug Library
@SlugLibrary
Slug Library version 6.3 has been released!
This version implements several requested features from our users.
Updated manual and demo available at sluglibrary.com. -
Eric Lengyel
@EricLengyel
WSL is extremely convenient.
-
Eric Lengyel
@EricLengyel
Projects that I'm currently working on:
• Slug version 7.0
• C4 Engine version 7.0
• Foundations of Game Engine Development, Vol. 3
• A new untitled book about geometric algebra
• The 31st, a Halloween game for PC/PS/XB -
Eric Lengyel reposted
Megan Fox
@glassbottommeg
So this seems, bad. Significant layoffs in Unity, a large number of them in AI and Engineering?
Did you know that most of Unity's revenue (and thus their staff/hiring) is actually from ads?
Also lying to your staffers' faces is always. You know. Nice. kotaku.com/sources-unity-laying-off-hundreds-of-staffers-… -
Eric Lengyel
@EricLengyel
I've had a Word document (the Slug manual) continuously open on my computer for the last few weeks. I've noticed that every couple of days while it's just sitting in the background, Word crashes, automatically restarts, reopens the document, and puts the cursor at the beginning.
-
Eric Lengyel
@EricLengyel
Awesome, but what do we call that last one?
Garick Chan
@ilovegarick
I thought of @blelbach first...
-
Eric Lengyel
@EricLengyel
I really liked the ways in which the final episode of Obi-Wan Kenobi tied into A New Hope.
-
Eric Lengyel reposted
Lucid00.com
@Lucid00
SVG rendering needs to go mainstream in game dev.
Eric Lengyel
@EricLengyel
The Slug Algorithm rendered by Slug version 6.0 (coming soon). Graphics imported from SVG file.
Drawing directly from Bézier curves on the GPU (no texture images), it takes less than 0.5 ms to render this on a GeForce 1060 at 4K resolution.
#sluglibrary
sluglibrary.com -
Eric Lengyel
@EricLengyel
When a translation by a distance t happens in ordinary space, the transform simultaneously happening in antispace is a perspective projection with focal length 1/t onto the plane through the origin perpendicular to the direction of translation. These are duals of each other.
-
Eric Lengyel
@EricLengyel
When a rotation about a center (green point) happens in ordinary space, the dual of that center (green line) is the directrix for a transform simultaneously happening in antispace where all orbits have constant eccentricity with respect to a focus at the origin (red point).
-
Eric Lengyel
@EricLengyel
The Summer of Math Exposition #2 is open.
Should I make a video about the foundations of duality, transform correspondence in space/antispace, and the manifestation of all this in geometric algebra?
www.youtube.com/watch?v=hZuYICAEN9Y -
Eric Lengyel
@EricLengyel
I just received an email from @WolframResearch containing the following. What a shitty way to talk to customers.
"As the upgrades and updates come, your Mathematica will begin to have issues and slow down while it could be avoided just by purchasing service for another year."
Eric Lengyel
@EricLengyel
They also said "You will also lose access to first priority tech support when you have any questions." Well, I tried using that tech support to resolve a couple serious bugs, and all I got was condescension and indifference in return, not recognition or any attempt to fix them.
-
Eric Lengyel
@EricLengyel
It's near impossible to get somebody to understand a concept, even a rather simple one, when their reputation and/or psychological well-being depends on that concept not being a thing.
-
Eric Lengyel
@EricLengyel
When I interviewed with Apple back in 1999, some guy there argued with me for half an hour that infinity is a real number. We weren't talking about one-point compactifications or stereographic projections or any of that, just the ordinary set of real numbers.
-
Eric Lengyel
@EricLengyel
Check out the difference between SDF and Slug text rendering in Unreal.
Michael IV
@SasMaster1980
Multiline text,leading,tracking,align modes,lit/unlit. No shadows though in translucency/composite alpha mode.
Got rid of a custom shading model,no changes in the engine code,only basepass shaders.
@SlugLibrary -> #ue4 - mission accomplished. -
Eric Lengyel
@EricLengyel
Men in Tights is a better movie than Prince of Thieves.
-
Eric Lengyel
@EricLengyel
That's a wrap. My game engines class at UCSC has come to a close. I really enjoyed teaching for the past two quarters, and I was happy to hear all the positive comments yesterday about what my students have learned.
-
Eric Lengyel
@EricLengyel
I wrote a bunch of notes about the double product structure in projective #geometricalgebra. There's an entire parallel universe in there symmetric to the Euclidean isometries, and it corresponds to motion in "antispace" when things move in regular space.
projectivegeometricalgebra.org/Lengyel-SpaceAntispace.pdf -
Eric Lengyel
@EricLengyel
Two weeks left in my game engines class at UCSC. This week, I'm talking about large-scale visibility determination and level-of-detail techniques. Next week, physics.
-
Eric Lengyel
@EricLengyel
I taught this in my game engines class a couple weeks ago in the context of particle emitters. Extending to a solid unit sphere, you pick two random angles and take the *cube* root of a random radius.
Keenan Crane
@keenanisalive
Basic fact all graphics coders should know:
To uniformly sample points in a disk, you'd think you could just pick a random radius r ∈ [0,1] and a random angle θ ∈ [0,2π] to generate points r (cos θ, sin θ).
This doesn't work!
…But take the square root of r, and it does! 1/3 -
Eric Lengyel
@EricLengyel
Great Caesar's ghost! I just found something hiding in the dark corners of projective #geometricalgebra that wasn't supposed to exist. I hope it's actually real and I didn't screw up somewhere along the way.
-
Eric Lengyel
@EricLengyel
Its mystery is exceeded only by its power.
-
Eric Lengyel reposted
Michael IV
@SasMaster1980
This video is from my first iteration on @SlugLibrary text. I implemented it first as a post-process 2d overlay feature. It was an easy start since it didn't require messing with the #ue4 rendering pipeline and vertex factories.
-
Eric Lengyel reposted
QC
@QiaochuYuan
ime this sort of thing happens because the false, rigid, global belief is psychologically load-bearing in some way, it would be psychologically devastating somehow to admit that there were any exceptions whatsoever, it would break some kind of faith you have in something
-
Eric Lengyel
@EricLengyel
The "See less often" button does nothing.
-
Eric Lengyel
@EricLengyel
I live about 180 miles (290 km) away from UCSC. I drive there one day per week to give a three-hour lecture. There is a separate one-hour lab period run by a teaching assistant. In class, I talk quite a bit, and I work out a lot of stuff on the blackboard. 1/2
Mega Wolf
@WolfEyeRight
I've been following all these posts about your course and I'm quite curious: How is your lecture structured:
Is it mainly talking? Is it coding? How much time do you have? etc
Eric Lengyel
@EricLengyel
I always have some slides, but they usually contain diagrams or screenshots without much explanation by themselves. The course itself contains a bunch of math and coding, and the homework assignments always involve writing something in C++ and/or a shading language. 2/2
-
Eric Lengyel
@EricLengyel
This week, I'll be covering shadow mapping in my game engines course at UCSC. The final homework of the spring quarter will involve implementing 2D and cube shadow maps.
The source material comes directly from Chapter 8 in FGED2. www.amazon.com/dp/0985811757/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
I forgot to post about last week's topics in my game engines class. It was all about full-screen processing techniques: glow/bloom, distortion, ambient occlusion, motion blur, atmospheric shadowing, and color remapping.
-
Eric Lengyel
@EricLengyel
Text and icon rendering in the Adobe Substance 3D Modeler beta brought to you by the Slug Library. sluglibrary.com
-
Eric Lengyel
@EricLengyel
Many authors take delight in introducing some math topic in a "coordinate-free" manner even though its intended purpose is for some kind of more elegant computation. I think that's a mistake, and it makes it difficult for newcomers to understand what's happening. 1/2
Eric Lengyel
@EricLengyel
I prefer to teach with coordinates and real-world calculations first because it's more accessible. Once that's been mastered, then anyone who wants to learn about abstract coordinate-free formulations can go do that later. 2/2
-
Eric Lengyel
@EricLengyel
I was looking for a Unicode character that's a circle with a radial line inside, and I was a little surprised to find that there does not appear to be one.
-
Eric Lengyel
@EricLengyel
Talking about billboards, particle systems, and volumetric effects in the game engines class today.
-
Eric Lengyel
@EricLengyel
I've said it before, and I'll say it again. There is no such thing as a "plane-based" or "point-based" geometric algebra. Vectors are points and planes at the same time, and antivectors are points and planes at the same time. It's symmetric, and the universe has no preference.
-
Eric Lengyel
@EricLengyel
Today's main topic for my game engines class at UC Santa Cruz:
Character skinning, both with plain old matrices and with dual quaternions. -
Eric Lengyel
@EricLengyel
Just followed a bunch of new people. It seems like once a year or so, I realize the list needs a big update.
-
Eric Lengyel
@EricLengyel
The fatal flaw in MS Word's equation editor (and one of the worst design decisions in the history of software) is its limitation to fonts that include an internal 'MATH' table. These fonts are very rare, and most people have no choice but to use the unappealing Cambria font.🤮1/2
Eric Lengyel
@EricLengyel
It didn't have to be that way, and it prevents the built-in equation features from being used by any serious writer. (Please do not reply to lecture me on how the 'MATH' table is *necessary* for proper positioning, alignment, spacing, etc. It most definitely is not.) 2/2
-
Eric Lengyel
@EricLengyel
Michael has been working hard to get Slug running inside the @UnrealEngine. Looks great!
sluglibrary.com
Michael IV
@SasMaster1980
Added dynamic lighting. Shadows are next. #sluglibrary #unrealengine
-
Eric Lengyel
@EricLengyel
As part of their homework assignment this week, I'm having my students fix the typographical problems with the times shown in this kind of table. This will elevate their qualifications above whomever did these graphics for the Tokyo Olympics.
-
Eric Lengyel
@EricLengyel
One of the topics I'm covering in my game engines class today is Bézier curves. We're focusing on their use in vector graphics and keyframe animation.
-
Eric Lengyel
@EricLengyel
Are buffer textures really not available in WebGL? And how's mobile support for OpenGL ES 3.2 or GL_EXT_texture_buffer? I think using buffer textures instead of ordinary 2D textures for the curve and band data in Slug would be a win, but I don't want to exclude any important HW.
-
Eric Lengyel
@EricLengyel
In my game engines class today, I'm talking about input handling, GUIs, and a whole lot about text rendering.
-
Eric Lengyel
@EricLengyel
I'm talking to Sony about making Slug available to all PlayStation developers. If you work for a first-party studio and want to see this happen, please contact me to find out how you can help, and let your Sony managers know, too!
-
Eric Lengyel
@EricLengyel
Federal Form 1040, Schedule 1, Schedule 2, Schedule 3, Schedule A, Schedule C, Schedule E, Schedule SE, Schedule 8812, Form 3800, Form 4562, Form 6251, Form 6765, Form 8829, Form 8995, California Form 540, Schedule CA, Form 568, Form 3522, Form 3523, ...
-
Eric Lengyel
@EricLengyel
In the early 90s, before my entry into game dev, I worked in an industrial laboratory in Ohio. My first big professional software project was building a complete system for controlling an apparatus that measured viscosities of pressurized lubricant/refrigerant mixtures. 1/2
Eric Lengyel
@EricLengyel
This project included data acquisition, calibration methods, automation features, and a lot of mathematical analysis. I estimate I was paid around $10K for the job. Today, I would charge over $1M for something similar. 2/2
-
Eric Lengyel
@EricLengyel
Today’s example of oblivious ignorance: “I don’t buy books because I can learn anything I want on the internet for free.”
-
Eric Lengyel reposted
Michael IV
@SasMaster1980
On the positive side of things, I have finally managed to fully integrate #slug text rendering library into @UnrealEngine
-
Eric Lengyel
@EricLengyel
Ever since I saw last week’s episode of Star Trek Picard, I’ve had the song “I Hate You” stuck in my head.
-
Eric Lengyel
@EricLengyel
I've been researching the current state of professional-grade UI-based equation editors for the past several months. My conclusion is that every available offering is a flaming pile of crap. For my future work, I will be taking matters into my own hands. 1/2
Eric Lengyel
@EricLengyel
Do not reply to me to suggest I try your favorite equation editor because "it's actually really good and you just have to learn how to use it properly" or whatever. I've seen it, and I can tell you right now that I wouldn't call it good software on my most charitable day. 2/2
-
Eric Lengyel
@EricLengyel
The set of all points lying at a distance r from some center:
• In 3D, it's a "sphere".
• In 2D, it's a "circle".
• In 1D, it's a "point pair".
I wish there was a less clunky term for the 1D case.
(Context is conformal geometric algebra, where these all show up together.)
Eric Lengyel
@EricLengyel
Yes, I know they can just be called a 2-sphere, 1-sphere, and 0-sphere, but that's not the point. I don't want to generalize terms for these round things any more than I'd want to replace terms for planes, lines, and points with 2-planes, 1-planes, and 0-planes.
Eric Lengyel
@EricLengyel
I'm starting to like the idea of calling it a "dipole", especially because these show up in 3D as the poles of a sphere for which the dual circle represents the equator.
-
Eric Lengyel
@EricLengyel
Today, I start teaching a course on game engines at UC Santa Cruz. This will be ten weeks of exploring engine architecture and implementing some moderately advanced rendering techniques.
-
Eric Lengyel
@EricLengyel
Despite the fact that the issue was settled 18 years ago, I am still encountering new university lectures about bump mapping in which the word "binormal" is being used where the word "bitangent" is the proper term.
-
Eric Lengyel
@EricLengyel
I talked to a few people this week who were under the impression that SDF font rendering was still the state of the art. When I asked where they were from, they said they lived in a cave on a remote island. That checks out.
Eric Lengyel
@EricLengyel
(I’m including MSDF when I say SDF.)
-
Eric Lengyel
@EricLengyel
FGED 1 and 2 still available at booth P1740 for a great discount. Liquidation sale! Everything must go!
-
Eric Lengyel
@EricLengyel
Have you seen people walking around with these posters? Get yours for FREE at the Terathon booth, P1740.
-
Eric Lengyel
@EricLengyel
It has been nice to have some serious typophiles stop by my GDC booth. Upon seeing Slug for the first time, they are very excited about the high-quality typography, and one person even broke into tears of joy.🥲
-
Eric Lengyel
@EricLengyel
The majority of people visiting my booth at GDC have told me they want the Slug Library in @unity. The more people who express this directly to the Unity folks, the sooner this will happen. (I’m also talking to Unity, but more voices will help significantly.)
-
Eric Lengyel
@EricLengyel
I have some older prints of FGED 1 and 2 available at extreme discounts. Booth P1740.
-
Eric Lengyel reposted
XCompWiz
@XCompWiz
So was well into hyped about the Slug demo before I realized I was talking to Eric Lengyel.
I managed not to fan boy too hard, but I definitely did not manage any smart questions after that. 😅
Eric Lengyel
@EricLengyel
Game Engine Gems 3 is also available at the Terathon booth (P1740) with a big discount compared to the GDC bookstore.
-
Eric Lengyel
@EricLengyel
Game Engine Gems 3 is also available at the Terathon booth (P1740) with a big discount compared to the GDC bookstore.
-
Eric Lengyel
@EricLengyel
Lots of free posters at booth P1740.
-
Eric Lengyel
@EricLengyel
FGED 1 and 2 in stock at booth P1740.
-
Eric Lengyel
@EricLengyel
Check out the latest Slug Library at GDC booth P1740. sluglibrary.com
-
Eric Lengyel
@EricLengyel
My email account received an enormous amount of spam for about an hour starting at 11:45am PST today. Anybody else?
-
Eric Lengyel
@EricLengyel
Wow, Amazon is still showing FGED2 as the #1 bestseller in the Rendering & Ray Tracing category. I can't believe it!
The paperback version is currently 47% off list price:
www.amazon.com/dp/0985811757/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
Today is already the last day of normal class for Graphics & Real-Time Rendering at UCSC. In three weeks, I start teaching a course on Game Engines.
-
Eric Lengyel
@EricLengyel
In the not too distant future, I'm going to build a complete equation typesetting solution on top of Slug. When that day comes, I predict that Unity will still be limited to TMP. Convince me otherwise.
Freya Holmér
@FreyaHolmer
I wish TMP had alignment stops like LaTeX rn bc aligning stuff with mixed fonts, super/subscripts, and tabs, is actually a nightmare ;;
-
Eric Lengyel
@EricLengyel
Can you guess one of the topics I’ll be teaching this week?
-
Eric Lengyel
@EricLengyel
It's a little surreal to see that all of these companies (and more) now have licenses for the Slug Library. A single idea that I had five years ago, and a lot of hard work on top of it, has changed the course of my career.
sluglibrary.com
Eric Lengyel
@EricLengyel
A couple big licensees were accidentally left out! Here's an updated logo blob.
-
Eric Lengyel
@EricLengyel
After wrapping up the geometric algebra topics I started last week, I'm teaching good old bump mapping today.
-
Eric Lengyel
@EricLengyel
Since some people have been asking about it, here's a quick derivation of cosines and sines of dual numbers under both the geometric product and antiproduct using power series expansions. #geometricalgebra
-
Eric Lengyel
@EricLengyel
Teaching Grassmann algebra / geometric algebra in my graphics for games class today. This will be the first time that the newest findings have ever been taught in a university course. #geometricalgebra
projectivegeometricalgebra.org -
Eric Lengyel reposted
Don Williamson
@Donzanoid
Lookup tables for the Transvoxel algorithm's Modified Marching Cubes, using the same co-ordinate system and guaranteeing a closed mesh, unlike the original. Overview in the comments. gist.github.com/dwilliamson/72c60fcd287a94867b4334b42a7888ad
-
Eric Lengyel
@EricLengyel
Wordle 233 2/6
⬛⬛🟩⬛⬛
🟩🟩🟩🟩🟩 -
Eric Lengyel
@EricLengyel
Wordle 231 3/6
🟩⬜⬜⬜🟨
🟩⬜🟩⬜⬜
🟩🟩🟩🟩🟩 -
Eric Lengyel
@EricLengyel
UC Santa Cruz returned to in-person instruction this week, so I'll have my entire class in the room for the first time after four weeks of mostly remote. I'll be teaching quaternions, projection matrices, conventional shading, and light attenuation on Thursday (3 hours).
-
Eric Lengyel
@EricLengyel
For over 20 years, the C4 Engine has done virtually all of its shading calculations in tangent space. Many years ago, I concluded that it would be better to do them in world space for various reasons. This week, I was finally able to make the change, and it's working nicely.
-
Eric Lengyel
@EricLengyel
Wordle 227 3/6
⬜⬜⬜⬜🟨
🟨⬜🟨⬜🟨
🟩🟩🟩🟩🟩 -
Eric Lengyel
@EricLengyel
I've made some miscellaneous updates to the Terathon Math Library on GitHub.
github.com/EricLengyel/Terathon-Math-Library -
Eric Lengyel
@EricLengyel
Wordle 226 3/6
⬜⬜⬜🟨⬜
⬜🟨⬜⬜🟩
🟩🟩🟩🟩🟩 -
Eric Lengyel
@EricLengyel
Wordle 225 4/6
⬜🟨⬜⬜⬜
⬜⬜⬜⬜⬜
⬜🟩🟩⬜⬜
🟩🟩🟩🟩🟩 -
Eric Lengyel
@EricLengyel
Wordle 224 2/6
⬜🟨🟨⬜🟨
🟩🟩🟩🟩🟩 -
Eric Lengyel
@EricLengyel
Wordle 223 4/6
⬜⬜⬜⬜⬜
⬜⬜🟨🟨⬜
🟩🟩⬜⬜🟩
🟩🟩🟩🟩🟩 -
Eric Lengyel
@EricLengyel
Wordle 222 3/6
⬜🟨⬜⬜🟨
⬜⬜⬜⬜🟩
🟩🟩🟩🟩🟩 -
Eric Lengyel
@EricLengyel
After spending the afternoon trying to get a hold of an actual person at the IRS, I've come to the conclusion that it's not reasonably possible. I'm starting to suspect that nobody works there, and it's now just one big, very dumb AI. 1/2
Eric Lengyel
@EricLengyel
In some cases, the phone system just randomly hangs up on me. In other cases, I make it through all of the automated menus, get put on hold for 30 minutes, and then hear a message telling me that due to technical difficulties, I have to start over. Then it all repeats. 2/2
-
Eric Lengyel
@EricLengyel
I spent all of 2017 developing techniques to squeeze every last ounce of performance out of the Slug algorithm. Despite continuing to try, neither I nor any other researcher has been come up with a new way of taking it any further since then. 1/3
sluglibrary.com
Eric Lengyel
@EricLengyel
I think that after more than four years now, it's safe to opine that we've reached the ultimate solution along this specific direction when it comes to rendering glyphs on the GPU. I hope I'm wrong because a new optimization would be exciting, but it doesn't look likely. 2/3
Eric Lengyel
@EricLengyel
There are other directions to go, but as far as I'm aware, the best currently available implementation of every other option gains performance only through a significant sacrifice in robustness, versatility, and/or visual quality. 3/3
-
Eric Lengyel
@EricLengyel
Wordle 219 4/6
⬛⬛⬛⬛🟨
⬛🟨⬛⬛⬛
⬛🟨🟨⬛🟨
🟩🟩🟩🟩🟩 -
Eric Lengyel reposted
Slug Library
@SlugLibrary
Slug Library version 6.1 has been released!
This version contains new gradient fill capabilities and several small improvements.
New demo available at sluglibrary.com.
#sluglibrary -
Eric Lengyel
@EricLengyel
The 8 basis elements for the 3D geometric algebra correspond to the 8 ways that three dimensions x, y, and z can be partitioned into two groups, shown as red and blue here. The symmetries of duality arise from an operation that simply swaps the two colors.
Post not available here, view on X
Eric Lengyel
@EricLengyel
What about the basis elements with an odd number of red dimensions? They look like this, and they perform *rotoreflections*. These correspond to all possible improper isometries in 3D space that leave the origin fixed.
Eric Lengyel
@EricLengyel
The nature of duality means that we could also define both of these in terms of blue dimensions, and we end up with the same results. It's our choice as to which color means full and which one means empty. This also means there are always two forms of every product in GA.
-
Eric Lengyel
@EricLengyel
My first time playing.
Wordle 213 5/6
⬜⬜🟨⬜⬜
⬜⬜⬜⬜🟨
🟨🟨⬜⬜⬜
🟩🟩🟩⬜⬜
🟩🟩🟩🟩🟩 -
Eric Lengyel
@EricLengyel
One of the biggest misunderstandings I see about quaternions is their dimensionality. Despite having 4 components, quaternions are three dimensional things that live and work in 3D space. 1/2
Dan Hindes
@dhindes
Every explanation of quaternions I've seen has been "It's actually really easy to understand! First, just picture a hypercube-"
NO. I refuse. Can anyone explain them to my baby brain without saying hypercube or 4D?
Eric Lengyel
@EricLengyel
• Quaternions arise as the geometric products of 3D vectors.
• These produce sums of scalars and 3D bivectors.
• That's 4 numbers per quaternion, but it's a combination of things that exist in the 3D geometric algebra.
• Each quaternion has an equivalent 3×3 matrix, not 4×4. -
Eric Lengyel
@EricLengyel
I love working in C++, and it has been my language of choice since the early 90s. While I have been very happy to see many great improvements over the past decade, I have also been very frustrated to see some really terrible design make it into the language.
Bryce, the CUDA Colonel
@blelbach
Over the last few years some of the key figures in C++ twitter have adopted a negative & pessimistic perspective which I find incredibly harmful & hurtful.
I am saddened & disappointed that others have chosen to act this way.
Eric Lengyel
@EricLengyel
In my experience, massive egotism and gatekeeping behavior has been allowed to take over the C++ committee. This makes it impossible to provide constructive criticism that goes anywhere, and it makes it extraordinarily difficult for a qualified person to contribute something new.
-
Eric Lengyel
@EricLengyel
Old stuff, but I felt the urge to go watch this again today.
www.youtube.com/watch?v=sddv3d-w5p4 -
Eric Lengyel
@EricLengyel
It sure would be nice if we had a 100% common language syntax and function library instead of a bunch of random differences among GLSL, HLSL, and PSSL. Anybody know why Cg didn't work out? I remember it being very well done.
Eric Lengyel
@EricLengyel
The C4 Engine generates shaders at run time for combinations of lighting, fog, and user-created materials. I’ve finally made it so it emits universal source that can be cross compiled for PC, PlayStation, and Xbox. There’s a big prolog of #define statements to help with this.
Post not available here, view on X
Eric Lengyel
@EricLengyel
HLSL has Texture2DArray.
PSSL has Texture2D_Array.
GLSL has sampler2DArray.
Eric Lengyel
@EricLengyel
HLSL has bool frontFacing : SV_IsFrontFace.
PSSL has float frontFacing : S_FRONT_FACE.
GLSL has bool gl_FrontFacing. -
Eric Lengyel
@EricLengyel
The C4 Engine generates shaders at run time for combinations of lighting, fog, and user-created materials. I’ve finally made it so it emits universal source that can be cross compiled for PC, PlayStation, and Xbox. There’s a big prolog of #define statements to help with this.
-
Eric Lengyel
@EricLengyel
Best Spider-man movie of all time.
-
Eric Lengyel
@EricLengyel
I just received a nice email from a fan of Quest for Glory V, which was released in December, 1998. (I was the lead programmer.)
I knew there was a fan community for old Sierra adventure games, but I didn't realize people were actually still trying to speedrun QFG5. Cool! -
Eric Lengyel
@EricLengyel
Here's a sketch of point/line duality in homogeneous coordinates for 2D geometry. A point defined by a vector p is dual to the line defined by all the vectors perpendicular to p. They have the same coordinates before projection. Their distances to the origin are reciprocals.
Eric Lengyel
@EricLengyel
Errata: The value of r should be calculated with px and py after dividing each by pw to project onto the w=1 plane.
-
Eric Lengyel
@EricLengyel
Somebody got a surprise bonus in their copy of FGED2! (Just an unusual binding mistake at the press.)
-
Eric Lengyel
@EricLengyel
Raiders of the Lost Ark
The Wrath of Khan
Back to the Future III
Conan the Barbarian
Had to get all four composers in there.
Fletcher Dunn
@ZPostFacto
Conan the Barbarian
Hackers
Down With Love -
Eric Lengyel
@EricLengyel
And the winner in the category of unnecessarily over-engineered 2D graphics file formats is... SVG!
-
Eric Lengyel
@EricLengyel
Hardcover versions of FGED1 and FGED2 can now be ordered on Amazon. #fged
(It's the same content, but laid out differently for the 7x10-inch trim size used by this format.)
www.amazon.com/dp/B09M5B6NML/?tag=terathon-20
www.amazon.com/dp/B09M4NZM26/?tag=terathon-20 -
Eric Lengyel
@EricLengyel
I'm excited to announce that I will be teaching courses on computer graphics and game engines at UC Santa Cruz for the winter and spring quarters of 2022 (Computational Media 163 and 164). I'm going to be a banana slug!
-
Eric Lengyel
@EricLengyel
Sometimes, when I close a large Word file and then open it back up, the pagination is different because something inexplicably changed in size a tiny bit. @Office fail.
-
Eric Lengyel reposted
Alex John London
@AlexJohnLondon
If you read a paper and you think, “man, this is a good paper” it costs you nothing to email the author and let them know that you appreciate their work. Compliments are rare in #academia but they needn’t be.
-
Eric Lengyel
@EricLengyel
Building some physical axes to be used as a teaching aid.
-
Eric Lengyel
@EricLengyel
I posted a new article about the conclusions I reached about wedge products with scalars, dot products with scalars, canonical norms, and the geometric property:
terathon.com/blog/wedge-products-dot-products-scalars-and…
The materials on the website have been updated:
projectivegeometricalgebra.org
#geometricalgebra -
Eric Lengyel
@EricLengyel
If your studio is owned by a larger company and you'd like to use Slug in your game, then you might want to check to see whether your parent company already has a license. Many of the big companies in the games industry do! #sluglibrary
-
Eric Lengyel
@EricLengyel
Nice little history. I'll add that what separates Slug from other techniques that've popped up in recent years is its perfect robustness. This means you'll never see streaks, sparkles, or dropped pixels like the one appearing in the demo at the end of the article (on 4K screen):
Cedric Guillemet
@skaven_
I wrote some thoughts and history about text rendering in game/apps/web, past and present, CPU or GPU. babylonjs.medium.com/rendering-text-bf3bc53f7c2e @babylonjs #webdev #gamedev #indiedev #3d #webgl
-
Eric Lengyel
@EricLengyel
Due to an increasing influx of messages from demanding kooks, I have to close my DMs.
-
Eric Lengyel
@EricLengyel
I realized today that the modified dot product discussed in my last blog post causes the geometric norm to be idempotent. This is great! Previously, the norms of homogeneous magnitudes were not working the way I had hoped, but now they're perfect!
terathon.com/blog/wedge-and-dot-products-involving-scalars/ -
Eric Lengyel
@EricLengyel
I recently found out that Amazon KDP is currently running a beta test for hard cover book publishing!
I'll definitely be participating soon by making FGED 1 and 2 available in a hard cover format in addition to the existing soft cover and electronic formats. #fged -
Eric Lengyel
@EricLengyel
I wrote a new blog post about traditional publishers vs. self-publishing for technical books:
terathon.com/blog/so-you-want-to-write-a-technical-book/ -
Eric Lengyel
@EricLengyel
I've been working on improved impostors in C4, and I'm pretty happy with the results. It has taken about two weeks, though, and my brain is so used to looking at them that it expects to see transitions in the trees that go by while I'm driving. #c4engine
This media couldn't be displayed. See it on the original post.
Eric Lengyel
@EricLengyel
The compression really butchered the video. I guess everyone will have to wait for the new demo to see how nice the transitions are.
-
Eric Lengyel
@EricLengyel
Anybody know what I'm going to do with this texture?
-
Eric Lengyel
@EricLengyel
I did a regex search for the string
for \(.*;.*;.*\)
in the C4 Engine source code, and I got 4418 matches over 601 files. I thought there would be more.
Eric Lengyel
@EricLengyel
Searching for
for \([^(;]*\)
which detects range-based for loops, yielded only 139 matches (and all are used to iterate over custom container types). -
Eric Lengyel
@EricLengyel
The Slug Algorithm rendered by Slug version 6.0 (coming soon). Graphics imported from SVG file.
Drawing directly from Bézier curves on the GPU (no texture images), it takes less than 0.5 ms to render this on a GeForce 1060 at 4K resolution.
#sluglibrary
sluglibrary.com
Eric Lengyel
@EricLengyel
When you can fundamentally change society so that I don't have to pay for my house, car, insurance (home, health, business), property taxes, food, clothing, electricity, water, trash, internet, phone, hardware, software, office supplies, or anything else, then Slug will be free.
-
Eric Lengyel
@EricLengyel
Finished Serious Sam 4, and it exceeded my expectations (which were not low). That's a whole lot of game. Amazing job, @Croteam!
-
Eric Lengyel
@EricLengyel
Introducing "Slug", a GPU-centered font rendering and text layout library. Standalone demo code coming soon. sluglibrary.com































































































































































































































































































































































































