←back to thread

513 points todsacerdoti | 3 comments | | HN request time: 0s | source
Show context
FrostKiwi ◴[] No.42192825[source]
Thanks for sharing! Author here, happy to answer any questions.
replies(14): >>42193691 #>>42193836 #>>42193884 #>>42194114 #>>42195074 #>>42195398 #>>42196248 #>>42196427 #>>42196783 #>>42197142 #>>42197506 #>>42198224 #>>42198810 #>>42202062 #
aappleby ◴[] No.42197506[source]
Google Maps uses AAA on capsule shapes for all road segments - I wrote it ~10 years ago. :D
replies(1): >>42197877 #
delusional ◴[] No.42197877[source]
Neat. Does that mean that every road segment is a separate mesh?
replies(1): >>42199001 #
1. aappleby ◴[] No.42199001[source]
Depends on what you mean by "mesh". Each road segment is an instanced rectangle that gets extruded and beveled so that it fits tightly against adjacent segments, and then the pixels are shaded using AAA (with a capsule-shaped distance field) so that the result looks like an antialiased wide line with round end caps and joints.
replies(1): >>42200557 #
2. david-gpu ◴[] No.42200557[source]
This brought back some memories. Long ago I had to do some AAA for line rendering on some hardware that didn't support line AA natively.

A big customer was furious that they had bought a part that didn't perform the way they wanted, so I was voluntold to fix it.

I was given a ridiculous timeframe to come up with a solution and present them to our customer in a big in-person meeting with all the decision makers. I managed to implement three different alternatives so that the customer would feel they had some agency selecting the one they liked the most. The best looking by far was a form of AAA.

This was one out of several of these big last minute fires I was assigned to solve. Years later my manager told me how great it was knowing that the could throw any crap at me and I would be able to fix it in time.

However, these sort of experiences are why I struggled with burnout during my career, which led me to save like crazy to retire as early as possible, which I did.

For younglings out there: when they ask you to do the impossible, remember that failure IS an option. Push back if you think they are asking you for something unreasonable.

replies(1): >>42201084 #
3. rglynn ◴[] No.42201084[source]
Great story and useful lesson, thanks for sharing.

Also, going to add "voluntold" to my lexicon :D