Chrome Experiments: “3d city”
chromeexperiments.com
chromeexperiments.com
EDIT: Strictly speaking, SimCity Classic let you remove the edge tiles of residential plots as long as you didn't destroy the center, allowing you to force low-density suburban areas. </random sim nerdery>
Seeing this running in the browser reinvigorated my wishful excitement for the Citybound[1] project.
[1] - http://cityboundsim.com/
SimCity for XWindows, released as Micropolis under the GPL: https://code.google.com/p/micropolis/
Ported to JavaScript: https://github.com/graememcc/micropolisJS
Ported to 3d: https://github.com/lo-th/3d.city
An initial glance suggests reducing the populationDensityMap is the real solution (aka don't put so many houses next to each other, but spread it out?)? Feel free to dig into it and reply below with findings.
value -= policeStationMap.worldGet(x, y);
when they probably meant to do
value -= policeStationEffectMap.worldGet(x, y);
otherwise, crime is reduced only if there's a police station right there. That's just a guess based on a cursory look, though.
Before the for loop it "smooths" the policeStationMap 3 times. And this is reset every 15 cycles and in the first 8 cycles it re-populates the policeStationMap before performing the crimeScan.
(https://github.com/lo-th/3d.city/blob/5827c3be180c6b7b39076d...).
So a cursory investigation it doesn't look good and any policeStation needs to be within 3 to have any effect.
What the simulation should do is never clear the policeStationMap. The policeStationMap is constantly cooling and diffusing and it is only by refreshing where the police stations are is how new energy is introduced into the system (policeStationMap). The simulation doesn't even need to reset the spot on the map when a Tile.POLICESTATION is removed because the value will on its own cool. As an added bonus the simulation doesn't need to waste cpu cycles calling smoothStationMap three times in a row, but only needs to do it once.
[0] https://github.com/robhawkes/vizicities
[1] http://www.amazon.com/Mirror-Worlds-Software-Universe-Shoebo...
Very impressive example of the richness in todays web. Well done loth!
http://www.reddit.com/r/SimCity/comments/1dwctf/fixing_up_mi...
I'm most impressed by how fresh and clean the graphics are. I've got the original tile expansion sets for Ancient Asia, Future Europe, Future USA, Medieval Times, Moon Colony and Wild West, if anyone is interested in making 3D versions of those, too!
Tried again, it worked for a few games then it got stuck at max cpu usage, after closing the tab.