ColePowered Games Ltd.
  • Navigation
    • Shadows of Doubt
    • Concrete Jungle
    • Older Projects
    • Jobs
    • Bug Report/Support
    • Contact
  • Search Icon
Search Icon

ColePowered Games Ltd.

The Game development adventures of Cole Jefferies.

Shadows of Doubt DevBlog #14: Interior Colours

Shadows of Doubt DevBlog #14: Interior Colours

March 19, 2019 colej Comments 3 comments

Shadows of Doubt is a detective stealth game set in a fully-simulated sci-fi metropolis! There’s been a murder and it’s up to you to solve it by any means necessary, with the condition that you keep a low profile. A unique mix of procedural generation and hand-crafted design enables every room of every building to be explored. Citizens go about their lives independent of the player as you watch from the Shadows, in search of crucial information. Read previous dev blog entries here.

As you may have seen in previous entries, I want the game to have a mix of interiors ranging from old and murky 1930s decors to more modern 70s and 80s styles (the game itself is set in the 80s- albeit an alternate reality).

The first task was creating a custom shader that could take walls, floors, even props and apply different colours to them. Manually creating unity materials for each of these, then a range of colours wouldn’t really be feasible due to the sheer range of them I would need. Creating a custom shader with a map that told where to apply certain colours seemed to be the way to go. I’m a novice when it comes to writing shaders, but thankfully Unity’s new shader graph came to the rescue here, and it didn’t take me too long to come up with something that functioned as intended. Remember that green striped wallpaper that was applied to every single interior wall before? Well, now I can have that in any colour combination I want. Progress!

In addition to this, I also wanted to represent neglected/abandoned apartments by having an additional dirt map that I could apply also using the shader…

Now I’ve got a base material that I can alter using a couple of simple inputs. But how do I get my game to look like the style I want? I would have to come up with a system that selected colours similar to the designs I mentioned a couple of months back.

I decided to make a custom palette that features 5 colours: 2x Primary and secondary colours that compliment each other, along with a neutral colour. I used scriptable objects, so I could easily create palettes in-editor.

After some messing around I found a great way to pick these 5 colours. Using images found on various sites and design books from the eras I want to mimic in game, I use coolors.co to pick a complimentary palette from them. It’s a great free tool that allows me to cycle through several palettes from each image to get one that I like. I can’t export into my scriptable object directly, but copy and pasting the colour hex codes doesn’t take long!

As I also wanted the game to pick from these using citizen’s personality data- as I wanted someone’s apartment to reflect their personality to some extent. So I also added some variables to the palette object that enable me to do this. I settled on these 4 variables:

Modernity: How ‘modern’ this colour palette is in terms of design. Muted colours like the original green striped wallpaper may be suited to a less modern style, while brighter reds and oranges might be more suited to more modern styles. Richer citizens tend to be able to afford more modern decor styles.

Cleanness: This one is more to do with the room type that citizen personality. ‘Clean’ palettes will be found more often in bathrooms or corporate environments.

Loudness: I couldn’t think of a better name for this, but in broad strokes, this is how bold the colour scheme is. Bright reds, for example, are ‘loud‘, and are more likely to be found in apartments of more extroverted citizens.

Emotive: In general how ‘warm’ or ‘cold’ the colours are. This is similar to the cleanness value but links to personality instead; more emotive citizens are more likely to feature these palettes.

Now when a citizen is assigned an apartment, I can use a system that matches colour palettes to their personality!

I’ve developed a very similar system that does the same thing but for the base materials themselves: A floral pattern may be considered more emotive for instance. A combination of these methods to procedurally decorate apartments, offices etc is a great starting point that gives meaning, reason, and personality to the procedural generation that is at risk of becoming too random and cookie-cutter. Hopefully, this kind of attention to detail will excite some of you (and I bet a few think it’s pointless!)



It’s already starting to make my previously labyrinth-like environments look like something more habitable. The next step is to start work on some basic props: Chairs, tables, beds etc.

Twitter
Follow
Facebook
RSS

Development Blog, Police Department Game, Shadows of Doubt

Post navigation

NEXT
Collected Thoughts: Hypnospace Outlaw
PREVIOUS
Shadows of Doubt DevBlog #13: Creating Procedural Interiors

3 thoughts on “Shadows of Doubt DevBlog #14: Interior Colours”

  1. Avatar eric h. says:
    March 25, 2019 at 11:11 am

    this is amazing. can’t wait to see the rooms as they progress!

    Reply
    1. Avatar eric h. says:
      March 25, 2019 at 11:14 am

      it would be cool to add overlay settings to add or remove the wall paneling, trim, chair rails, or molding entirely at runtime, if that isn’t already an option. paneling, for example, would occur more often in richer people’s homes.

      Reply
      1. colej colej says:
        March 25, 2019 at 11:33 am

        Thanks Eric! This is indeed my plan- I just don’t have enough textures/assets to cover all the bases yet so what you see so far is very much just the first batch of configurations. The first style I’m working on is a kind of early century 1930s look.

        Reply

Leave a Reply to colej Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About

Indie Games developer, currently working on detective simulator game ‘Shadows of Doubt’. I also made Concrete Jungle.

Twitter
Facebook
Instagram
YouTube
IndieDB

Development Blog

  • Shadows of Doubt
  • Concrete Jungle

Previously on ColePowered…

  • October 2022 (1)
  • March 2022 (1)
  • December 2021 (1)
  • October 2021 (1)
  • August 2021 (1)
  • July 2021 (1)
  • June 2021 (1)
  • May 2021 (1)
  • January 2021 (1)
  • October 2020 (1)
  • July 2020 (2)
  • March 2020 (2)
  • January 2020 (1)
  • December 2019 (1)
  • November 2019 (1)
  • September 2019 (1)
  • August 2019 (1)
  • April 2019 (1)
  • March 2019 (2)
  • February 2019 (3)
  • January 2019 (1)
  • November 2018 (1)
  • October 2018 (2)
  • September 2018 (1)
  • August 2018 (1)
  • July 2018 (3)
  • June 2018 (2)
  • April 2018 (1)
  • August 2017 (1)
  • May 2017 (1)
  • March 2017 (1)
  • January 2017 (1)
  • December 2016 (1)
  • September 2016 (2)
  • August 2016 (1)
  • September 2015 (3)
  • August 2015 (1)
  • July 2015 (1)
  • June 2015 (3)
  • May 2015 (4)
  • April 2015 (4)
  • March 2015 (4)
  • February 2015 (4)
  • January 2015 (4)
  • December 2014 (5)
  • November 2014 (3)
  • October 2014 (3)
  • August 2014 (1)
  • July 2014 (1)
  • June 2014 (1)
  • May 2014 (2)
  • March 2014 (3)
  • September 2013 (2)
  • July 2013 (3)
  • June 2013 (3)
  • May 2013 (2)
  • April 2013 (4)
  • March 2013 (4)
  • January 2013 (1)
  • December 2012 (1)
  • November 2012 (2)
  • October 2012 (1)
  • August 2012 (1)
  • July 2012 (2)
  • June 2012 (2)
  • April 2012 (4)
  • March 2012 (2)
  • February 2012 (3)
  • January 2012 (3)
  • December 2011 (2)
  • November 2011 (4)
  • October 2011 (2)
© 2023   Copyright. All Rights Reserved. Designed by Freepik