Hacker News
Show HN: A CSS 3D Engine (no WebGL)
26 points by rofko
ago
|
10 comments
Rohansi
|next
[-]
But why not use WebGL? It's widely available, more efficient, and can render at a much higher quality.
rofko
|root
|parent
|next
[-]
Hi there! This is not trying to be a three.js replacement, scenes with huge polygon counts naturally should render in canvas.
For me, the interesting case is smaller low-poly or voxel scenes where loading a full 3D stack may be overkill, and where keeping the scene in DOM/CSS gives you easier integration with normal layout, styling, events, etc. Once you have the HTML, you don't even need to load the library to render a static model.
Also, part of the experiment is testing the browser’s limits and getting a clearer sense of where this approach works, where it breaks down, and what the tradeoffs are.
Cheers!
tomaytotomato
|next
|previous
[-]
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?
thih9
|root
|parent
|next
[-]
It’s a wide range from an RTS to a city builder. Perhaps try it for a couple of hours and see whether you like it or not.
blueboo
|root
|parent
|previous
[-]
I think the answer is no, as this is a creative repurposing of css3d as a basis for a general 3d engine. That lets you put web content everywhere, even on the triangles of your teapot. Cool, but extravagant
Whereas THREE.js or webgl is purpose-built for realtime animated 3d scenes.