Show HN: A CSS 3D Engine (no WebGL)

rofko 67 points 24 comments June 01, 2026
github.com · View on Hacker News

Discussion Highlights (8 comments)

cush

I give it 15 minutes before someone on here ports Doom

Rohansi

But why not use WebGL? It's widely available, more efficient, and can render at a much higher quality. https://polycss.com/gallery/?model=2843066616 https://threejs.org/examples/#webgl_animation_multiple

sgm1018

wow thats cool

tomaytotomato

Always thought it would be cool to make an RTS or simple city builder game in the browser. Would you recommend this for hacking around or not?

tajoma

This reminds me of the 3D maps in corru.observer, which also only used CSS transforms

madrox

Over a weekend about a decade ago, I toyed with making a Final Fantasy Tactics-like game in the browser using CSS for the renderer. I could not get it to work in the time I gave it. I realized too late I needed to make some abstractions and stop trying to manipulate CSS directly. Which is a long way of saying I appreciate how challenging this probably was to figure out. I love stuff like this.

1taimoorkhan0

The per-polygon DOM events are what make this more than a trick. Getting click handlers on individual faces in WebGL means raycasting. Here it's just onClick. For certain use cases that's the whole argument.

luckykiddie

It's cool. The performance is good but why not use WebGL, any reason?

Semantic search powered by Rivestack pgvector
9,294 stories · 87,504 chunks indexed