frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Ambigram Generator: Create words that read the same upside-down

https://www.ambigramgenerator.me/
1•Franklinjobs617•3h ago
Hello Hacker News!

This is a side project I've been working on: Ambigram Generator (https://www.ambigramgenerator.me/). It generates rotational ambigrams, which are words or phrases that read the same when inverted (rotated 180 degrees).

The Technical Challenge: Why is Ambigram Generation Hard? The core challenge isn't just about flipping letters; it's about solving a complex substitution cipher problem while maintaining legibility and aesthetic coherence.

Character Pair Mapping (The Logic): The system relies on a massive, pre-rendered and manually optimized database of character pair combinations (e.g., 'A' flips to 'V' or 'L' flips to 'J'). The difficulty lies in optimizing the system to prioritize aesthetically pleasing pairings over just mechanically correct ones. Our current engine holds hundreds of pairing rules derived from hand-drawn ambigram work.

Aesthetic Coherence (The Design): Unlike a simple font swap, generating an ambigram requires that the 'A' from one side perfectly melds into a 'T' on the inverted side. We implemented a weight and stress system for each transition, preferring connections that share visual weight and line thickness.

The Feedback Loop: Early versions used rudimentary stroke merging, which failed for 90% of inputs. The current iteration uses an SVG-based rendering pipeline with custom path merging logic to smooth out the joins between characters like 'N' and 'Z' when inverted.

Key Trade-offs and Open Questions Trade-off: Speed vs. Quality: We could use a full ML/AI approach for higher flexibility, but the latency and cost would be prohibitive for a simple, fun tool. We opted for a highly optimized, rule-based system for near-instant results.

Trade-off: Font Flexibility: The system is currently tied to a single optimized, high-contrast serif typeface. Making it work across multiple fonts requires rebuilding the entire character-pair database, which is a massive undertaking.

Open Question for the Community: The current system uses a brute-force approach on the character dictionary. Has anyone here worked on a similar combinatorial design problem? I'd love input on whether a Constraint Satisfaction Problem (CSP) solver could be a more efficient long-term solution for finding valid character pairings.

We're offering this tool for fun and to revive interest in this niche art form. Feel free to try generating your own name and let me know which letter pairings look the worst, or if you have any suggestions on the SVG path smoothing logic!

Thanks!

Comments

Franklinjobs617•2h ago
Hello Hacker News!

I'm the creator of Ambigram Generator (https://www.ambigramgenerator.me/). It generates rotationally symmetrical ambigrams—words or phrases that read the same when inverted (rotated 180 degrees).

The Engineering Deep Dive: From SVG to 3D Print While the 2D generation relies on a complex rule-based dictionary for character pairing and SVG path merging (a significant combinatorial challenge in itself), the most interesting part for makers and engineers is the 3D functionality.

1. 3D Model Generation and WebGL: Once the optimal 2D ambigram is generated, we extrude the 2D SVG vector path into a 3D mesh. This involves:

Mesh Extrusion: Using Three.js to handle the complex geometry of the merged character paths. We implemented custom logic to ensure clean, manifold geometry, crucial for the next step.

Real-time Preview: The 3D view is rendered using WebGL, allowing users to interactively rotate the model to confirm the ambigram symmetry from all angles. We also include a feature to generate a looping GIF preview that cycles through angles, providing an immediate, shareable demonstration of the effect.

2. The Bridge to the Physical World: STL Export The generator's core utility is the ability to export the resulting 3D model as an STL file. This transforms the generated word into a physical object ready for 3D printing.

Key Challenge: STL files require closed, watertight meshes (manifold geometry). Any flaws in the initial SVG or the extrusion process (like overlapping faces or open edges) will result in a non-printable file. We spent considerable time tuning the extrusion depth and simplifying the mesh to produce robust, validated STL files.

Open Questions for the Makers/3D Community I'd appreciate any feedback on the 3D pipeline:

Slicing Optimization: Have any makers here found particular settings (e.g., specific wall thickness or infill patterns) that work best for printing these highly detailed and symmetrical text models?

WebAssembly for Geometry: Currently, all geometry processing is client-side in JS. Would integrating a C++/Rust geometry library via WebAssembly be a worthwhile effort to speed up complex mesh generation before export?

Try generating an ambigram and check out the 3D preview and STL export feature!

Virus Doesn't Make You Sick. It Makes You Stronger

https://scitechdaily.com/this-virus-doesnt-make-you-sick-it-makes-you-stronger/
1•thelastgallon•16s ago•0 comments

Ghfgh

https://ctxt.io/2/AAD4SkruEA
1•grgt•3m ago•0 comments

Peter Thiel says he told Elon Musk not to give wealth to charity

https://www.reuters.com/world/us/peter-thiel-talk-antichrist-says-he-told-elon-musk-not-give-weal...
1•Cornbilly•3m ago•0 comments

Mixio AI – AILive-Streaming

https://mixio.ai
1•hslater101•4m ago•1 comments

Experience the Magic of Falling Sand

https://sand-blast.org/
1•yuyu74189w•4m ago•1 comments

Will the explainer post go extinct?

https://dynomight.substack.com/p/explainers
1•walterbell•5m ago•0 comments

The Language of the Black Parade

https://blambot.com/pages/the-language-of-the-black-parade
1•gaws•12m ago•0 comments

Project Amethyst: AMD and Sony Interactive Entertainment's Shared Vision [video]

https://www.youtube.com/watch?v=1LCMzw-_dMw
1•croes•13m ago•0 comments

How to Enable SFTP Without Shell Access on Ubuntu

https://www.digitalocean.com/community/tutorials/how-to-enable-sftp-without-shell-access-on-ubunt...
1•thunderbong•16m ago•0 comments

RND1-Base-0910: experimental diffusion LM with 30B params (3B active)

https://huggingface.co/radicalnumerics/RND1-Base-0910
1•jasonjmcghee•17m ago•0 comments

State of AI Report

https://www.stateof.ai/
1•kyahwill•24m ago•0 comments

The Underscore Music Player

https://kottke.org/25/10/the-underscore-music-player
1•tobr•31m ago•0 comments

A trader's 5-minute fix for missing IPO momentum plays

1•kvallans•31m ago•0 comments

Ask HN: Will large scale cross-holdings in US stocks lead to a market crash?

1•roschdal•32m ago•0 comments

When Will Quantum Computing Work?

https://tommccarthy.net/when-quantum.html
1•pongogogo•33m ago•0 comments

Every website builder felt like torture – so I built my own

https://instantsite.app
1•emanuilv•35m ago•0 comments

Laion, the dataset behind Stable Diffusion (2023)

https://www.deeplearning.ai/the-batch/the-story-of-laion-the-dataset-behind-stable-diffusion/
1•thelastgallon•43m ago•0 comments

Ask HN: Laptop for learning intermediate modern sysadmin

1•shivajikobardan•44m ago•2 comments

Response times and what to make of their percentile values

https://www.ombulabs.com/blog/performance/response-times-and-what-to-make-of-their-percentile-val...
1•thelastgallon•45m ago•0 comments

Numair Faraz Is R*

1•kwoii•49m ago•0 comments

Apple Reorganization Moves Health and Fitness to Services

https://www.bloomberg.com/news/articles/2025-10-10/apple-to-move-health-fitness-divisions-to-serv...
1•ksec•56m ago•1 comments

Tom's Data Onion

https://www.tomdalling.com/toms-data-onion/
1•archargelod•59m ago•1 comments

Syneris — Instantly share videos, images, and websites with zero friction

https://syneris.netlify.app
1•brandon22•1h ago•0 comments

Flowcharts vs. Handoffs: a simple math framing

https://blog.rowboatlabs.com/flowcharts-vs-handoffs-a-simple-math-framing/
1•thunderbong•1h ago•0 comments

Battlefield 6 players hit server queues as over 500k concurrents after launch

https://www.pcgamer.com/games/fps/battlefield-6-players-hit-server-queues-as-it-rockets-to-over-5...
2•ksec•1h ago•2 comments

AutomatosX – Multi-agent framework with persistent memory for developers

https://github.com/defai-digital/automatosx
2•akira921•1h ago•1 comments

Filmmaker Mode adapts to daylight to fix dark movies

https://www.flatpanelshd.com/news.php?subaction=showfull&id=1759990647
1•ksec•1h ago•0 comments

Why it took 4 years to get a lock files specification

https://snarky.ca/why-it-took-4-years-to-get-a-lock-files-specification/
1•todsacerdoti•1h ago•0 comments

More than half of entrepreneurs are considering moving to a new country

https://www.cnbc.com/2025/10/10/entrepreneurs-moving-motivations-hsbc-survey.html
1•jnord•1h ago•1 comments

The A.I. Prompt That Could End the World

https://www.nytimes.com/2025/10/10/opinion/ai-destruction-technology-future.html
1•axiomdata316•1h ago•0 comments