Tuesday, December 9, 2014

Minimal City - Final project breakdown

Minimal City : This is a procedural game completely generated by using Geo Spatial data, L Systems and Rules based modelling. The final product is a game playable on Mac or Windows, made using Unity.

This is a detailed description of what went into my final project for the class. Here are some links to all the good stuff.

Link to download game for Windows http://tinyurl.com/p8rw92v
http://tinyurl.com/lmd44br
Breakdown video Coming Soon
Screen Grabs Coming Soon


There were mainly 4 types of models that I generated for the game

  1. Buildings
    I relied on  Map data from Openstreetmaps.org to get the shapes of buildings. I extruded the building shapes to random heights. (This was not ideal, but there is absolutely no information about the height of the buildings in Openstreetmaps data.) After this I poke holes in the building based on how many windows are specified. Having a lot of Windows caused many Z fighting issues in the building corners and also increased the poly count. So I kept the number of windows to minimum.
  2. Roads
    There is no information about the width of the road in the data. So I had to guess the width of the road by the type of road. (Highway, walkway etc) The hardest challenge when dealing with roads was the intersections. I even wrote an email to openstreetmaps asking them how to interpret lane information in their data. Some roads have multiple lines for lanes, some roads have them all merged into one line.This becomes an issue since I am doing 3D and have plans to extrude roads as well. I couldn't resolve this issue, So I decided to lay all the roads as a Flat plane. This leaves me only Z fighting between primitives to deal with. To prevent Z fight between different roads, I used a for loop to loop through all the patches of roads and translate them in Y axis. It took me 4 weeks to figure this out!

    Here's an example of pretty data and Ugly data from maps. How would I go about converting those choppy lines into one continuous line? :O
  3. Car
    I didn't plan to model everything procedurally until I figured Cars could be modeled using rules based systems. This tool takes a parameterized cube as input and reduces the number of polygons and creates wheels for the car. Here's a test render of the Car that I ended up using.
  4. Trees, Lamppost, Cloud etc.  I have talked about L System rules for the Trees in my previous post. Here's a Gif showing different Trees that I had generated. This is only 1/3 of what's in the game.





Lessons learnt

  1. I didn't have the idea of creating everything in City procedurally. So I ended up with 4 different tools that generates Geometry. Ideally, I should have one tool that does all this.
  2. Never figured out how to best use Location data, even though I had it!
  3. This was way too much work for 2 weeks. But it was time well spent.
Future plans 
  1.  These are the games that are ruling the App store and making some noise.
    https://everyplay.com/videos/11914792
    https://everyplay.com/crossy-road/home
    It means that this art style definitely has some opportunities in Mobile/Tablet market .
  2. Overlay Openstreet map in the mini map?
  3. Unless you are into Racing games, this game doesn't particularly offer anything unique to hook the players! I need to talk to people and figure out the best Gameplay to best use location based maps. This either needs Multiplayer or something else. 
  4. Have a library of assets that replace generic buildings with something more specific. For example , I could search for "McDonald's" and generate a suitable building that looks like McDonalds, instead of just Boxes.

Thursday, December 4, 2014

Houdini tesselation

I am already behind schedule to finish my City Game. I was searching for more reference online for low poly images. I saw some more fascinating images online and the most intriguing part was that they were pretty simple to do! Even though I should be working in Unity right now, I spent the night playing with renders in Houdini. Pretty happy with the results. I started learning Houdini during Christmas break last year. I have been enslaved by this software. The more I know it, the more I love it!

I began messing with the polygon arrangement on a Grid and applied a color palette on it. I tried Quads, Triangles, Sub divided quads.





 

Then I started trying paintings as textures on top of these polygons.
But I thought I striked Gold when I tried a photograph. I changed the Polygon count to get this neat animation effect! Depending on whether you watch these images from 1st to last or last to 1st, it could mean different things. I feel if you watch from low poly face to high poly face, it could be interpreted as "The more I know you the more I love you!". If you watch it from high poly to low poly face, it could mean that "everything fades over time!". Here are the images.