News for hackers. Stuff that matters.
Re:WebGL procedural city that feels alive and is fun to watch by mcv on Monday October 26, 2020 @08:50AM (#24895578)
Pretty cool. To say it feels alive, well, compared to a city without any traffic, it does. But without pedestrians, and with cars never turning, it doesn't feel very alive yet. Would be cool to expand on this.
Re:WebGL procedural city that feels alive and is fun to watch by mercer on Monday October 26, 2020 @10:15AM (#24896375)
Agreed. No criticism about what this is so far, just excitement about the stuff that could be added. Great work!
Re:WebGL procedural city that feels alive and is fun to watch by bjconlan on Monday October 26, 2020 @09:19AM (#24895826)
Maybe update the title to include 2017, original HN post https://news.ycombinator.com/item?id=15795204
Re:WebGL procedural city that feels alive and is fun to watch by bregma on Monday October 26, 2020 @07:55AM (#24895131)
I tried following the ambulances but never found a hospital. Just plenty of show stores and many many pizza joints.
Re:WebGL procedural city that feels alive and is fun to watch by capableweb on Monday October 26, 2020 @08:06AM (#24895210)
Seems to be a realistic rendering of the US.
Re:WebGL procedural city that feels alive and is fun to watch by gbraad on Monday October 26, 2020 @08:21AM (#24895322)
LOL, was wondering why it had such an unnatural grid layout... But this explains it!
Re:WebGL procedural city that feels alive and is fun to watch by chrisseaton on Monday October 26, 2020 @09:07AM (#24895730)
When I was small and played 'Sim City' I used to think it was really artificial and created very unnatural cities, then I visited the US for the first time and realised that no they really do have grid layouts with hundreds and hundreds of cross-roads with lights and really do have 'zones' like that and it's pretty accurate for the US!
Re:WebGL procedural city that feels alive and is fun to watch by sammorrowdrums on Monday October 26, 2020 @09:56AM (#24896180)
Salt Lake city literally has an indexed grid around the Mormon Temple - it's kind of amazing. https://99percentinvisible.org/episode/plat-of-zion/
Re:WebGL procedural city that feels alive and is fun to watch by frogpelt on Monday October 26, 2020 @10:47AM (#24896706)
What would be a natural grid layout?
Re:WebGL procedural city that feels alive and is fun to watch by cardiffspaceman on Monday October 26, 2020 @02:59PM (#24899814)
Sort of like central Stockholm [1], where the grid is warped to respect natural barriers?

[1] https://www.openstreetmap.org/search?query=Stockholm%2C%20Sw...

Re:WebGL procedural city that feels alive and is fun to watch by uranium on Monday October 26, 2020 @10:21AM (#24896425)
Look for the "H" on the helipad.
Re:WebGL procedural city that feels alive and is fun to watch by speps on Monday October 26, 2020 @03:19AM (#24893582)
Add people otherwise it's not alive, reminds me of this interesting philosophical video: https://www.youtube.com/watch?v=aBBuoD9eL5k
Re:WebGL procedural city that feels alive and is fun to watch by 1_player on Monday October 26, 2020 @02:47AM (#24893419)
Please set user-select: none, somehow the whole canvas got highlighted on my iPhone and I couldn't deselect it.

Other than that, it runs pretty smooth.

Re:WebGL procedural city that feels alive and is fun to watch by vardump on Monday October 26, 2020 @08:40AM (#24895485)
The cars occasionally "crash", but without consequences: they just smoothly slide through each other.
Re:WebGL procedural city that feels alive and is fun to watch by coolspot on Monday October 26, 2020 @01:31AM (#24893074)
I love how it is optimized for phone. Do vehicles ever turn? I was watching a truck for couple minutes and it was going and going straight, never turning.
Re:WebGL procedural city that feels alive and is fun to watch by tmilard on Monday October 26, 2020 @07:27AM (#24894954)
I am also impressed it runs very smoothly on my two years old mid range phone.

I imagine it has to do with the fact we never see 50 houses at the same time.

Re:WebGL procedural city that feels alive and is fun to watch by yardshop on Monday October 26, 2020 @08:49AM (#24895574)
They have a lot of other neat demos on their website, go to the top page. I spent several minutes looking through the WebVR showroom, and playing the Keep Out game. Also the Digital Landscapes and Track musical experience were fun.

https://www.littleworkshop.fr

Re:WebGL procedural city that feels alive and is fun to watch by mgoetzke on Monday October 26, 2020 @02:47AM (#24893420)
Nice. Would feel a little less generated if the repeated tiles where offset by a few grid points as it is only 9 wide
Re:WebGL procedural city that feels alive and is fun to watch by nineteen999 on Monday October 26, 2020 @03:17AM (#24893566)
Spatial subdivision or k-d trees perhaps would provide a less repetitive layout.
Re:WebGL procedural city that feels alive and is fun to watch by Waterluvian on Monday October 26, 2020 @08:04AM (#24895197)
I love it.

Cars never seem to turn. Is that because it becomes far easier to simulate without any turns? I liked the effort not to collide in intersections.

Re:WebGL procedural city that feels alive and is fun to watch by op03 on Monday October 26, 2020 @10:33AM (#24896543)
Man I wish there were graphing tool to make graphs (eg 3D bar charts/over geo data) to look this cool.
Re:WebGL procedural city that feels alive and is fun to watch by motives on Monday October 26, 2020 @10:48AM (#24896723)
If I understand you correctly it sounds like your looking for something like deck.gl? (https://deck.gl/examples/geojson-layer-polygons/)
Re:WebGL procedural city that feels alive and is fun to watch by chrisbennet on Monday October 26, 2020 @07:38AM (#24895021)
This is awesome! Anything you can tell me/us about how you made it?
Re:WebGL procedural city that feels alive and is fun to watch by rottc0dd on Monday October 26, 2020 @10:27AM (#24896489)
Pretty cool.

Disclaimer : Not regarding the demo itself.

It is not working on firefox version 81.0.2. It works fine on chrome though.

Re:WebGL procedural city that feels alive and is fun to watch by bozobuttz on Monday October 26, 2020 @01:30PM (#24898689)
Yeah, something amiss with old(er) versions of Firefox. I see a gray screen, but if I click on the (?) help, it will glitch the display... FWIW it works in IE11.
Re:WebGL procedural city that feels alive and is fun to watch by motives on Monday October 26, 2020 @10:34AM (#24896560)
Works fine on firefox developer edition (83.0b3), I'm guessing whichever bug there was has since been fixed. Runs very smoothly aswell, props to the devs.
Re:WebGL procedural city that feels alive and is fun to watch by rottc0dd on Monday October 26, 2020 @11:35AM (#24897297)
Yep. It works fine on ff version 82.0/Ubuntu.

Thanks.

Re:WebGL procedural city that feels alive and is fun to watch by joosters on Monday October 26, 2020 @10:38AM (#24896598)
Runs smoothly on Mac/Firefox 82.0
Re:WebGL procedural city that feels alive and is fun to watch by rottc0dd on Monday October 26, 2020 @11:36AM (#24897313)
Yep. It works fine on ff version 82.0/Ubuntu.

Thanks for checking it up.

Re:WebGL procedural city that feels alive and is fun to watch by mam2 on Monday October 26, 2020 @01:42PM (#24898829)
Nice but would expect pedestrians, random interactions with elements sometimes etc...
Re:WebGL procedural city that feels alive and is fun to watch by schnable on Monday October 26, 2020 @09:38AM (#24896010)
Very cool but needs a road diet!
Re:WebGL procedural city that feels alive and is fun to watch by dvasdekis on Monday October 26, 2020 @02:08AM (#24893228)
Is it possible to see the source code? I'd love to learn some of these techniques.