Live data from Hacker News

Show HN: A CSS-Only Terrain Generator

terra.layoutit.com

31–40 of 88 posts

Re: Show HN: A CSS-Only Terrain Generator

#31
This thing is killing my CPU, what's the actual bottleneck here for CSS? Is it the number of elements visible and rendered at once? Is it the calculation engine backing CSS is super slow? Or just that most of the work is being done on the CPU it seems (on my machine, rotating around the map, my integrated GPU goes to 20% but CPU stays around 40-50%).

Re: Show HN: A CSS-Only Terrain Generator

#34
post #26

Can someone please reimplement something like Warcraft 2 on a mobile web device? It would be a hit, I’m telling you. Even from 1995. Some people are still playing it 30 years later, obsessively. And myth ii by Bungie is a classic too

The controls would take some serious reworking to make it work on mobile - I could see adding a ‘pause’ feature to give you time to scrub your fingers all over the screen to issue all your unit and build orders, performant pinch to zoom would nearly negate the need for a mini map, lots of reworked GUI for building stuff and managing workers

Re: Show HN: A CSS-Only Terrain Generator

#35

Lots of javascript for a "css-only" tool. Looks like just the rendering is css-only.

Yep. Can confirm this does not work with JS disabled. I'm disappointed by the misleading title.

is it a Generator for CSS-Only Terrain? or a CSS-Only Generator which creates Terrain?

We need PEMDAS for English.

Re: Show HN: A CSS-Only Terrain Generator

#38
I've used a few terrain generators before but I think this one might be my favourite. Obviously the fact its a "CSS only" demo project restricts things a bit, but its got enough going for it regardless.

It actually comes at a really good time for me, I'm currently trying to make the transition from 2d game dev to 3d and things like this are really helpful.

Re: Show HN: A CSS-Only Terrain Generator

#39

Earlier quoted context omitted.

Yep. Can confirm this does not work with JS disabled. I'm disappointed by the misleading title.

is it a Generator for CSS-Only Terrain? or a CSS-Only Generator which creates Terrain? We need PEMDAS for English.

Let's use sexpr?

actual meaning -> ((CSS-Only Terrain) Generator)

incorrect interpretation -> (CSS-Only (Terrain Generator))

Re: Show HN: A CSS-Only Terrain Generator

#40

Lots of javascript for a "css-only" tool. Looks like just the rendering is css-only.

You can open up your terrain in codepen with nothing but CSS/HTML, and it renders fine. It's just not interactive / draggable anymore.

So the JS is only being used, essentially, as a nice UI for configuring your terrain and the camera angle from which it's viewed.

This is still an incredible feat.

Post reply on HN