hourigan.info - portfolio ·

main

live

~/

portfolio

›

src

›

index.html

›

<

section

hero

/>

⌘K palette

⌘P files

main

↓0↑2

0 errors

open_to_work

UTF-8

•

HTML

•

Cincinnati

10:52 PM

Prefab Brush

Work Image
The Problem: marketing scenes took hours of prep and iteration time

When making a video game, it's not enough for most projects to simply make the best game they can, release it onto Steam, and hope for the best from word-of-mouth. Realistically, you need trailers, social media content, and a whole heaping spoonful of luck. Trailers and other video content can be exacting, grueling work, with many iterations and revisions for even a 10 second shot. Furthermore, in-progress games have to create a beautiful corner that evokes the raw intentionality of a game from disparate systems that may not yet be fully implemented, meaning trailers and other marketing work can often require fully-constructing scenes that, before the work on the video ever began, were merely conceptual. In short: you have to place a lot of prefabs. For some time at Uncommon, this was done manually for every object in the game, from shrubs to Trees, which meant that making a forest involved manually finding a tree in the project tab, dragging it into a scene, getting it to land right, and then dragging more, then relying on copypasting objects which then often wouldn't align with the terrain correctly, etc etc. It was grueling, time consuming work, and it meant that making an entire forest could take hours we couldn't afford to spend.

Placing 100+ trees like this is a daunting task.

The Solution: a config-driven editor prefab brush

After doing it the hard way for a while, I finally spent the time to make a prefab brush, driven by internal configs, that would place prefabs in Animalkind automatically. It was designed to use internal configs you would create pointing to any number of prefabs, set an orientation, a density, and a brush size, anything you can imagine.

This is a far more efficient way to melt GPUs with alpha overdraw.

The Result: tens of hours saved per trailer and marketing video

Switching to the prefab brush allowed us to create an entire lush scene in a matter of minutes, even seconds, and iterating on something you didn't like went from taking just as much time as the original to being near-instantaneous. Not only was making a lush, deep scene faster than it would have ever been before, it genuinely unlocked the ability to do a level of detail that was hitherto unavailable to us, since the very act of trying to make a forest or foliage feel organic was deeply time consuming to the point where it was impossible to even justify trying. This multiplicatively sped up both trailer production, but also level design.

you can see the dots generating candidates as I place foliage

Key Features
  • easy brush config creation means you only look for an asset once

  • intuitive weights that allow tuning the random placement

  • ctrl+z and undo/redo support

  • auto-alignment and surface targeting

Other blogs

1
1