Unity Lightmapping Tips, Tricks and Thoughts

This was written up during a particularly long render running Unity 4.1.2f1

I am writing this from the context of mobile gaming - specifically tablets and 5th generation iDevices.

Install "Lightmapping Extended":

Step 1 is to pick up "Lightmapping Extended" on the Unity Asset Store! and commit it into the project! https://www.assetstore.unity3d.com/#/content/6071

While most of the settings are a bit beyond pick up and play, the ability to save and load xml configurations is a life saver and if you are working with a team it can really speed up the workflow. There are great tool tips for the rest of the settings. Without a formal lighting background I make do with what I have and search for what I don't know.

Document Changes:

Despite knowing and saving your production settings with Lightmapping Extended, when dialing in a light setup I take screenshots of the editor and the light map settings panel. This lets me get good before and after images documented when I make subtle changes to the overall settings. It also lets me show others how the system works and how the scene has evolved.

UV scale / ratio fine tuning:

After I get my main light sources in and where I want them I run a high quality bake so I can see where major shadows fall. Armed with this I can manually select all prefabs that are 100% within shadow and set their "Scale in Lightmap" setting down to .1 - .05. Once you have done this to all relevant objects you can do the reverse for 'hero' objects. Unfortunately you often want to increase the light map resolution on large objects such as the ground, and depending on how the geometry is split up the UV block might be too big and bulky to do too much with. (Currently Unity 4.1 does a terrible job auto laying out UV's - according to this thread that should be resolved in 4.2)

Maximize your resolution within your output targets:

Once I have all the manual light map scaling in place I then nuke my settings back down to a 10-20 second render time and start inching the resolution up or down to get everything at my desired output target. We often want to get everything onto 1 1024 map (which we can still cut down later). I want the scene to look as good as it can be - even if it means spending an hour bumping up the resolution by .01!

Editing the light map .exr file:

While my options are limited I from time to time do bring in the final .exr image into Photoshop for some slight level adjustments Note that doing this will probably hose you if you need to do dual light map realtime lighting. Photoshop is pretty limited in what you can do to a 32 channel image however I do have a work around for solidifying unity's output if I feel the image will benefit form it. since you can't use the magic wand with a tolerance of 1 to select out and delete the black I save off a version with 16 channels, save a selection of what I want to delete and load it back into the 32 bit file, delete out the black and run Solidify A on it to blend in the image. I am 100% sure there is an easier way to do this - I just have no experience editing HDR files, let alone 16bit in photoshop.

Wishes:

I would LOVE to be able to set what I want my output to be and have Unity fill in the rest. I usually have to spend an hour or two over the course of a scene setup fine tuning the atlas resolution trying to get it all onto 1 1024 map for instance. This changes and needs to be re-optimized every time you manually set a scale override on something in your scene (which I have the tendency to do quite often!)

Additionally I would LOVE to have some sort of automated workflow occur where I could set up a stationary camera that takes the same screenshot after every bake and splices in the settings data as well!

That's all for now, hope this saves somebody some time!​

DOTA 2 - Sand King Redesign

I love playing as Sand King, but always thought he looked super cheesy in context with the other heroes of DOTA. Spent a few lunch hours seeing if i could do anything i liked more. Got out of DOTA and forgot i had this image on hand! 

SandKing_Concepts.jpg

Back from GDC13

Back from my 5th GDC in a row - and it keeps getting better and better! My thanks goes out to the speakers and the shared knowledge they have worked so hard to obtain. Chances are if you are reading this i met you on the floor, in a hallway or at a party! I can't wait to see you all again next year. In the mean time ill be following your sites!

​Don't lose the passion GDC ignites!

​Moscone South - GDC 13

​Moscone South - GDC 13

Cintiq 21UX Distortion

This just started showing up on my Cintiq 21UX and iMac - Hoping it doesn't get worse, but wanting to document it in case anybody else finds a solution or solace in knowing they are not alone. 

I considered the Thunderbolt > DVI cable, but have made sure it is snug. Nothing has changed in the past 2 years of operation, and the tablet was purchased new.

Will update if anything is resolved or it gets worse.

Generic Robot Soldier sketch

Whenever i don't know what to work on, or want to try out something new, i usually lapse into "Generic Soldier from the Future" designs. This is no exception. 

I do really wish paper had more color and brush control, but i suppose there are other more complicated apps out there. 

Done using Paper on my iPad

Photo Apr 13, 8 59 24 AM.jpg

Using "Paper" on the iPad

Since my Cintiq drivers are still broken i've had time to check out stylus drawing on the iPad thanks to the new Paper app and the Adonit Jot Classic!

I am usually a fan of application limitations, but I think Paper could be significantly better with at least a few tweaks. I am looking forward to what they add in the coming weeks and months! 

The Jot stylus is really quite awesome and leaps and bounds more capable than any other squishy tipped stylus i've used. I am anxious to use the bluetooth pressure styluses coming out on the market soon, but for now this will do! 

Photo Apr 09, 2 05 38 PM.jpg

"THE TABLET DRIVER WAS NOT FOUND."

​This has been the message greeting me for the past 2 weeks. It would seem like my Cintiq 21UX's drivers are self destructing 5-30 minutes into use and the only band-aid i've been able to find is a computer restart. I've really wanted to hammer through another piece but the only frustration-free time i have is over lunch at work. I've lost a whole week to real productivity at home and with a possible move coming up an update is looking grim.