HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
Pixel City - Procedurally generated city

Shamus Young · Youtube · 224 HN points · 2 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention Shamus Young's video "Pixel City - Procedurally generated city".
Youtube Summary
This is a demonstration of a program I wrote to generate and fly through a dynamically generated city. You can read the step-by-step of how it was made at my website:

http://www.shamusyoung.com/twentysidedtale/?p=2940

* The program was built on vanilla OpenGL, Windows, using MS DevStudio 6.0
* Building the city takes about 5 seconds.
* Took about 50 hours of coding time.
* Runs on older hardware. The goal was to have the program work on Windows machines less than 5 years old.
* To be released as a Windows screensaver.

The music is "Around" by Oursvince, used under the Creative Commons:

http://www.vincentbernay.com/
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Jun 07, 2015 · 210 points, 33 comments · submitted by jdmoreira
userbinator
A little surprised that this doesn't seem to be a demoscene production, because it has all the characteristics of one. I was even expecting greets in the endscroller.

If he could get the contents of this video down to a single 64k or 4k binary (including the music), it would make a great demo. Cityscapes are pretty common and definitely doable in 4k or 64k; here are two examples of winning demos containing similar scenes:

https://www.youtube.com/watch?v=2UgbKQKD9I4 4k

https://www.youtube.com/watch?v=PaNYOzwlVC8 64k

david-given
Polygons are for the weak.

https://www.shadertoy.com/view/XsBSRG

(There are several awesome-looking procedural cities on ShaderToy. Here's another nice one: https://www.shadertoy.com/view/MdXGW2)

daviding
I really enjoy these, and had this bookmarked. A nice example here:

http://alteredqualia.com/three/examples/webgl_city.html

Holds up very well and looks very impressive (plus the source is uncompressed and interesting).

daviding
Plus if you ever need to warm up your hands on your old laptop, this is another very good example from the same author:

http://alteredqualia.com/xg/examples/animation_physics_vehic...

cpayne
Step 7: Release it as a... Damn. I actually have no idea what this thing is for

Summarizes my development career to date. Still awesome to watch...

irascible
It's on github and compiles to an .exe and a .scr.. but ther is a buffer overflow on on of the building geometry generating routines that I had to add a check to , to get it to build under free vs2013.
andrewfelix
I would love this as a screen saver.
Ologn
It exists as one for many platforms

http://rss-glx.sourceforge.net/screenshots.shtml

I ported some of the RSS-GLX screensavers to Android, but never tried this one.

adamrezich
This was from the scrapped game project that Introversion Software ended up not finishing in lieu of making Prison Architect: https://www.youtube.com/watch?v=J30i0gABfS8
tomc1985
Did they ever release the source to that tool? I'd love to take it apart
dsrw
What makes you say that? I'm fairly certain the two projects are unrelated.
adamrezich
I'm sorry, I was in a rush to write that comment and didn't make myself clear. I was bringing up a similar, related thing, and did not mean to conflate the two.

I like the Introversion one better because it builds the city organically out of roads, personally.

Wingman4l7
Introversion, the indie game dev, also different-but-equally-amazing procedural city generator, for their now-cancelled game Subversion. It was actually bundled in the Hunble Introversion Bundle, and you could play with the parameters and make your own city. You can see a demo here: https://www.youtube.com/watch?v=9pR8jpK4ETk
birger
10/10 would buy it as a screensaver! It has been years since I saw a cool screensaver that is just fun to watch when I am not doing stuff.

[edit] There is a screensaver and it works! http://code.google.com/p/pixelcity/

skeuomorf
I generally use videos as a screensaver, it allows me to have pretty cool screensavers fast. I use xsecurelock [0] with the saver_mplayer backend, which means that when I lock the screen, xsecurelock runs the videos in my ~/Videos directory on repeat.

I couple that with something like the Iron Man schematics videos made by Territory Studio [1] and I've got myself a pretty rad looking screensaver (with minimal effort).

[0] https://github.com/google/xsecurelock

[1] https://www.behance.net/gallery/26009421/AVENGERS-Age-of-Ult...

martin-adams
I used to be into modo as a hobbyist and this reminds me of the Telematics City showreel which for me was a true work of art (also from 2009).

https://www.youtube.com/watch?v=PodUqc4B5Fc&list=PL4DFBA006A...

m_eiman
I ported this screensaver to OSX way back when, and I think it still works: http://emage-software.com/
mcphage
It does! Awesome, thanks :-)
djent
Seems like it would make an amazing GPL Mirror's Edge clone.
felhr
The whole shamus projects, from books (I read his autobiography) to programming posts are awesome. His game "Good Robot" was greenlighted recently so we are going to see his first released game soon, which is pretty interesting coming from a guy who talked so openly about it http://www.shamusyoung.com/twentysidedtale/?p=20638
FraKtus
ArtMatic Voyager has amazing procedurally generated cities and landscapes: http://uisoftware.com/Voyager/index18.html It's based on a powerful texture engine to generate colors and height maps and the model is ray traced...
bipin_nag
I have one question, are the buildings generated randomly or is there any algorithm that generates which building goes where. The generation is like the urban version of "No man's Sky".
jdmoreira
http://www.shamusyoung.com/twentysidedtale/?p=2940
lamuerteflaca
Funny, I was just looking at this yesterday night to get some ideas on building design.
iamcreasy
The best part was when he added the yellow red lights. The swing of mood was stunning.
stretchwithme
Makes me appreciate the Chrysler build all the more.
pavel_lishin
I would love to have this as a screensaver.
opless
Also add [2009] to title.
dang
Thanks, done.
striking
Shamus Young's stuff is pretty incredible. Not the programs themselves, because it's "been done before." Rather, it's his writing skill that really shines. He has a true talent for describing and illustrating difficult or complex programming, and then showing it in action in a nicely-wrapped binary executable. You can see all of his wonderful series here: http://www.shamusyoung.com/twentysidedtale/?page_id=16458
geon
If you like scifi, go read his System Shock fanfiction novel. It's great.
ersii
Would that be his book "Free radical"? He mentions System Shock in the Forewords at: http://www.shamusyoung.com/shocked/
geon
Yes.
gavanwoolery
He has also had a bit of a rough life, good to see he making the best of his:

http://www.shamusyoung.com/twentysidedtale/?p=12687

I always liked this procedurally generated nighttime cityscape by Shamus Young: http://www.youtube.com/watch?feature=player_embedded&v=-d2-P...

He wrote a whole article series walking you through it, plus source, etc, starting here: http://www.shamusyoung.com/twentysidedtale/?p=2940

finnh
I really enjoyed that whole series - learned a lot about 3D programming, which is part of the field I've never touched outside of motion planning in college.
jetienne2
beautifull. thanks!
Cass
I also really liked Shamus's Project Frontier, a detailed walkthrough on generating an entire procedural world. http://www.shamusyoung.com/twentysidedtale/?p=11874

He released the executable at the end of the series, and I'm still sad that, as a non-programmer, I couldn't get it to run on my computer. I would have loved to have a chance to explore the world. Some of his screencaps are mindblowing.

[ETA: Since it's not immediately obvious how to get there from the rest of the articles on Project Frontier, here's the link to the source code: http://www.shamusyoung.com/twentysidedtale/?p=15808]

Dec 15, 2011 · 3 points, 0 comments · submitted by nyellin
May 05, 2009 · 11 points, 1 comments · submitted by mlLK
asmosoinio
Very nice blog posts about the creation of this step by step:

http://www.shamusyoung.com/twentysidedtale/?p=2940

And the download as a Windows screen saver - it's only 116 KB unpacked!

http://code.google.com/p/pixelcity/downloads/list

Source code is also available at the Google Code page.

You can see the process and the end result in a video:

http://www.youtube.com/watch?v=-d2-PtK4F6Y

Also, if you are interested in procedural cities generation, there is a very cool Swiss startup:

http://www.procedural.com

It's a spin-off from ETHZ graphics research. You can find their SIGGRAPH papers here:

http://www.procedural.com/company/publications.html

HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.