Monday, April 28, 2014

Spring Show Builds

Controls
W - Forward
S - Backword
A - Left
D - Right
E - Interact with Speaker
M - Mute Music
Left-Click - Next Song
Right-Click - Previous Song
T - Teleport Inside/Outside

Download (Windows)
Download (Mac)

Look out for the wrap up post some time this week!!

Sunday, April 6, 2014

Weekly Update: 4/3/14

This week was once again spent primarily on optimizing the game while making some minor adjustments to features and polishing off the look.

Firstly, to optimize, I layered objects so that lights are only illuminating what the absolutely must be.  This will save from extra polygons being drawn and reducing performance.  Additionally, I cut down the number of trees that are rendered as meshes as opposed to being billboarded.  This cut down roughly 1200 polygons per tree, about 150,000 reduced total.  Also, by upgrading to a Unity Pro license, I have been able to take advantage of Occlusion Culling, a feature which allows the engine to only render objects that can actually be seen by the camera, not just those which are in its viewing angle.

Secondly, I added some features and modified some existing ones.  I fixed the clouds, which were disappearing behind the fog, but modifying its shader to bypass the fog effect.  Next, I added wind to the scene.  It's a minimal performance hit, but it adds a nice touch by having the trees outside swaying softly.  Then, because I upgraded to Pro, I updated the water to take advantage of realtime reflections, making it much more realistic.  I also adjusted the driveway because of how thin the lanes were and made them a more practical 15 feet wide.

I then rebaked the lightmaps at a high quality to make the interior much more realistic and closer to the quality seen in the initial renders.  After that, I added several post-processing effects to make the game feel more polished.  I started with Bloom to accent the lights and stretch their glow.  I followed that up with Tonemapping to make the colors softer and transition nicely from the accented lights.  Finally, I turned off Antialiasing in the render settings and applied it to the camera.  The quality is not quite as powerful as it was, but this allows me to use post-processing effects and adjust the settings to achieve the visuals I want.

I'll have some more screenshots and an updated build showing the recent progress next week.

Thursday, March 27, 2014

Weekly Update: 3/27/14

The last week has been adding a few small features, but mostly focused on optimizing the game so it can run at a reasonable speed.  When starting, I was rendering nearly 40 million triangles per frame at about 1 frame per second.  Optimally, I would want around 3 million for the game to run smoothly.  Because of the number of lights in the scene, the triangle count has soared; each polygon is drawn the number of times a light hits it.  Because of this, I need to find out the light settings and bake lightmaps for the entire scene, reducing each polygon to be drawn once, maybe twice for characters' shadows.

Some of the features I've added this week include soft fog to simulate a natural environment.  As the landscape stretches away, it because a bit more difficult to see clearly, as opposed to it being just as clear as an object a foot away.  Additionally, I've adjusted settings for the glass so it is more transparent and less reflective of lights, which was a problem when trying to look through windows.

First Stage of Optimization
Additionally, I have also created a sidewalk and roadway for the hospital.  I am working on bringing the model into 3ds Max and preparing it to import into Unity.

First Draft of Driveway

Final Driveway

Over the next week, I want to finish adjusting the materials in the hospital so they are not just flat colors and actually have the appropriate textures.  I'll also have to bake the final light map and further optimize the game from there.  After that, I might start working on some recording a few more sound effects and importing them.

Thursday, March 20, 2014

Weekly Update: 3/20/14 - Spring Midterm (Revised)

Here is the updated presentation with what I have accomplished in the last two weeks.

Monday, March 17, 2014

Weekly Update: 3/13/14

This one's a doozy.   Spring break was crazy productive, so I'm breaking my progress down day by day to fully explain and showcase everything I've done.

Friday, 3/7/14

I have implemented a skybox into the scene to increase the immersion, as well as textured a sphere with a cloud map and added a rotation animation to it to simulate moving clouds.  Additionally, I have baked a lightmap for the terrain to allow for smoother shadows and to reduce the hit it normally takes on performance.  At any given time, the scene contains 1000 trees that are being rendered as 3D objects; I will probably lower this more as I optimize for performance.  By baking the lightmap, static objects will no longer cast real-time shadows, thus saving quite a bit of performance power.

Saturday, 3/8/14

I began creating the hospital, which is the main environment for the demo I am producing.  I am using a floor plan I found online as reference.

Referenced floor plan

After importing the above image into Revit, I began to setup the exterior walls with a custom structure: brick exterior and laminate interior.  I then began dividing the west wing into individual rooms before deciding to create the curtain wall in the northeast corner.

Some interior walls and curtain wall
I then completed the remaining interior walls and built a tiled floor for the entire first level.

First floor completed
Then added some windows, columns for the entrance walkway and curtain walls for the lobby and courtyard.

Windows, columns, curtain walls
Finally, I created custom doors and placed them throughout the hospital.  These allowed me to place them with varying degrees of openness: closed, 45 degrees, or 90.

Doors
Sunday, 3/9/14

Next were building handrails and placing them throughout the patient wings.

Close-up of railings
Perspective view at this stage.
I then created a floor on the second level, extended the exterior walls up, placed windows and built the roof.  I also created a ceiling for both floors.  This would be necessary for later details.

From here, I modified the curtain walls at the entrance to have glass doors and adjusted the mullions to be at the proper height.

I ended the day by bringing the model into 3ds Max and recreating some of the materials using the "Standard" material.  Revit uses Autodesk Materials, which most other software packages cannot understand.  Fortunately, 3ds Max does, so I opened up each material and did my best to recreate the same effects using Standard materials.  This would allow me to bring a single FBX file into Unity with the materials embedded.

I brought the model into Unity and found the materials worked well, so that would be my workflow.  For now.

Monday, 3/10/14

I began the day with duplicating the first floor assets up to the second floor to start to populate it.  I added/removed some windows to add some variety.

I then created the concrete slab to cover the walkway into the hospital, then used the same technique from Saturday to create a second curtain wall on the north side of the hospital.

Enclosed building
From there, I grabbed a few components from RevitCity.com, namely a shower/tub combo, a toilet/sink unit, and a hospital bed.  I placed either one or two beds in each patient room, depending on the size, and a toilet/sink unit and shower/tub combo in every bathroom that could fit them.

Patient room
I then cut out a section of the second level floor in two places, moved some walls and created two staircases, one in each wing.  I adjusted some of the materials to have wood steps and laminate risers with chrome railings.

Curtain wall and stairs in the west wing
Tuesday, 3/11/14

At this point, I began the incredibly long and tedious process of placing the lighting in each and every room in the hospital.  Below is a screenshot of what was involved in properly placing each one.

This was fun
I had to setup dimension constraints on every light and the interior face of the room's walls the appropriately space them.

Wednesday, 3/12/14

Day 2 of the light endeavor.  The hospital ended up requiring a total of 690 lights to properly illuminate the entire space.  Fortunately, I could duplicate almost all of them up to the second floor, so I only manually placed between 350 and 400.

I needed to make a few final adjustments to the curtain wall system to make the doors the proper dimensions and to line up all the mullions with each other.

I then placed chairs in each patient room, setup a waiting room on the first floor and lounge on the second, as well as a few offices and conference rooms with basic furnishings.

Semi-furnished hospital with interior lights
Thursday, 3/13/14

This was spent mostly on final touch ups and renders.  Fortunately, I happen to be looking on Autodesk's website and discovered that they have free cloud rendering for students using Revit.  I was able to upload my file to their server and have it render the different views for me.

Patient room

Waiting room (Night)
Walkway (Night)
Stairwell (Night)

Waiting room (Day)

Walkway (Day)

Stairwell (Day)

Semi-finished hospital (Day)
What's Next?

At this point, my next step is to bring the model into the scene in Unity so that the player can explore it.  That involves me finalizing textures in 3ds Max and probably creating some within Unity as well.  Additionally, it will require that I level out the terrain and remove the trees and grass in that area.  From there, I will create a few more elements outside of the hospital to bring it all together, e.g. a road, sidewalk, parking lot, courtyard, etc...  Whether those will be implemented before or after the draft of my pitch has yet to be determined and will be based off on the amount of time I can devote to it.

Thursday, March 6, 2014

Weekly Update: 3/6/14 - Spring Midterm

I'll just make this easy by embedding the entire presentation.  No need to repeat information.


Thursday, February 27, 2014

Weekly Update: 2/27/14 (Part 2)

Quick update!  The renders for Isabella and Dr. Frank have completed and I have assembled them into turntable videos.

----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------

Additionally, I have uploaded the first build of the game to allow for environment exploration.  Right now, it is Windows only.

Controls:
  • Move: W-Forward, S-Back, A-Left, D-Right
  • Sprint: Shift
  • Jump: Space
  • Rotate Camera: Mouse