• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

CK3 Dev Diary #84 - Building a Court - A Tale of Code and Art

CK3 Dev Diary #84 - Building a Court - A Tale of Code and Art.​

Hello and welcome to Dev Diary #84, I’m @Carlberg , the 3D environment lead artist and today we will be having a closer look at the development of the Royal Court rooms. This is a feature that we’ve been working hard on and it represents a great new step in bringing this historical era to life. Big thanks to @Alien-47 (code), Stella (3D environment art) and Linus (tech art) who's perspectives they've written down for this Dev diary, drawn from their experiences from both code and art in the making of this feature.

Heads up! - A lot of the pictures in this post will be of old prototypes and iterations intermixed later with more recent images towards the end. So no need to worry about issues you may spot in the older images.​

A new visual feature​

With the new 3D character systems implemented in CK3 we wanted to show the characters of the middle ages in a whole new dynamic way. So as we started laying down the foundations of the Royal Court we also wanted to bring the very courts to life and find continued use for these 3D characters. This new feature was a major step in that direction.

The inspiration for the feature was partly scenes that hearken back to throne rooms seen in games of old where we wish they had been livelier, with more interaction and chances for us to impact the people and objects in them. We drew upon these concepts and ideas of our own to weave together a visualization of the courts hosted by the most prominent royal titles.​



The Prototyping​

At the beginning of the court development we knew that we were in for a challenge to stake out a new visual workflow within the engine that previously had not had any instances of contained 3D scenes and shared lighting systems within it. So we decided that to start off we needed a working prototype - laying a foundation and gradually adding more and more graphical features and complexity. Moving forward only when we’re sure the previous step succeeded.

A natural starting point of exploration were the characters. We could already show beautiful animated portraits and the courtroom had to be able to show the same people so players could easily recognize their appearance. Could we reuse the same system that assembles characters - show appropriate body, apply transformation to show age, height, weight, apply the same clothing, hair, set the same animation? First step - success. The people in the courtroom look exactly the same as in portraits.

Next step, is it possible to show many people at the same time in the same scene? This is quite different from portraits in the interface and events - those always have 1 person per image, even if the UI tries to combine them nicely together. With some optimization the room could now handle about 20 random characters, and even some objects. So the scene finally resembles a courtroom. Although a bit dark.​

many-people.png

The scene could now show several people and items in the prototype

But what can we do with lights? The ambition for the court scene and requirement for lighting is much higher and more advanced than for regular portraits. We needed more simultaneous light sources. At the same time shadows naturally become much more complicated as well. People and objects can interfere with lights and it needs to be visible. Another issue was making sure characters and objects apply the lighting and shadows in the same way, so it’s easier for artists to manipulate the scene and develop the assets. After a bit of time and several iterations we had upgraded and made many improvements to the lighting system.​

working-lights.png

Lights and shadows in a shared scene — Proof that multiple lights work and blend as intended, if a bit rough still.

It was roughly at this time we felt we had confidence that the goal was within reach, and all technology was working as we intended. It was also clear that we could afford the desired complexity of the scene from a performance point of view. After all, players should have an enjoyable experience both on the map and in the court. We had built an understanding of how many people the scene could handle efficiently, how many light sources, and how many shadows we could allow (this is one of the most expensive parts).

And so the prototype has been integrated as a proper feature of the game.

looking-good.png

Scene with better lighting, assets, materials, people positions

From this point on work on the court room continued with multiple people from different disciplines working very closely together. More and more features waited to be implemented, so you can now see the beautiful results of all this effort.



Concept art and vision​

Being worked alongside the prototype was the vision we had for the Royal Court-rooms. We began by looking at the four main cultural areas we would be covering in the expansion. The west European, Mediterranean, Middle-eastern and Indian courts. We wanted each of these areas to be distinct, having their own visual style through architecture and lighting so to give their own unique feeling.

mediterranean_front_wall_concept.jpg
western_front_wall_concept1.jpg

front_walls_concept_mena.jpg
indian_front_walls_concept.jpg

Concepts of the different walls aesthetics of the courts, Mediterranean, Western, Middle-East/North Africa and India.

The west European court draws much of its inspiration from courtly interiors of England, Germany, France and neighboring areas. Darker rooms lit by fiery hearths, candles and chandeliers. In the Mediterranean more inspiration comes from the Byzantine courts and those found in Italy and other heirs of Rome. The rooms hint back at this grander past with larger roofs, domes and columns supporting the walls and arches.

In the Middle-eastern courts we have a wider spread geographically, as these courts draw inspiration and cues from the courts all the way from Arabia to the architecture of Andalusia. In India we encountered an interesting split, as influences in architecture were pushing in from the west while there were still distinctly Indian courts. This was one of the reasons behind adding more court variants so that we could cover more of these visual flairs.

indian_side_walls_concept07.jpg
indian_side_walls_concept08.jpg
indian_side_walls_concept09.jpg

Style variation exploration, more on those further down in the Dev Diary.

Each scene was broken down into components like walls, roofs, floors and key assets like thrones, chandeliers and fireplaces. While these were being designed from a plethora of references gathered from each culture we also created variants in the concepts. This was done both as exploration but also to add variance to the courts so that they don't all look the same all the time. You will most likely have seen some variants of these when we’ve shared screenshots in past dev-diaries.

1638205284220.png

Different courts, different architectural styles, different lighting setups.

But the concept art phase did not end after the initial stages however, because once the scenes were being put together we returned to the concepts to try out the different lighting setups to help in the lighting of the rooms, giving our artists more ideas of where to focus the light and accentuate the scene further. Since the lighting system was being built alongside this in the prototype, the concept art took inspiration from contemporary game engines to help guide the prototyping, and not just the visual development.



A room takes shape​

When starting the modeling of the actual assets for the throne rooms there were several constraints to keep in mind. We had decided to go with a modular workflow so we could easily swap out wall-types and materials, so the dimensions would have to be consistent and work with the plans and concepts we had decided to pursue. We were also making several visual variants for each culture, which meant that we had to try and keep the details of the walls and materials equally interesting for each different type.

Another big limitation was the fact that we had never before made a scene within our engine like this, so that meant that there were a lot of uncertainties when it came to how much we could push the graphics and where the limits were. Since we were also going to have the artifact system we had to make sure we left enough room for the artifacts and banners without having the environment taking too much attention. This became a trial and error phase to find a good baseline for each throne room.

placement.png

Early blocking out of the different artifact and furniture slots to be able to see where in the environments we had to make space.

To create variation we made sure to have the materials contrast with each other while still fitting together aesthetically so no culture would have throne rooms that all felt exactly the same. This along with changing some architectonic aspects helped the scenes be more distinct. We also worked on adding variation to the grandeur levels, here we wanted the difference to show in the cleanliness and brightness of the environment textures, as well as in the richness of detail in the geometry and amount of decorative props. (Visual examples of this are shown in the final chapter)

materials.png
materials2.png

Making sure the different materials work together to create a cohesive feeling for each culture, but still looking different from each other. Example images taken from the MENA culture throne rooms.



Lighting and FX​

A lot of our visual tech usually involves considerations for a top-down map, and since we didn’t have much need for full scale 3D room rendering & lighting in the past, we had to do a lot of rethinking to get this to work - we went from previously having 4 lights, moving up to 20 total light sources and expanding the light types available with new ones like area lights - adding sphere & disc area lights. This helps illuminate areas such as room filling bouncing light (seen to great effect in Mediterranean courts) and helps us with light coming in from the windows and other openings.

lighting.png

A cozily lit interior.

Another technique we used was animated lights. They move a little, flicker in intensity - very useful for making the fireplace feel like it’s actually on fire and heating up the room a bit. To sell the atmospheric feeling in the room, we added some transparent particles with a little light fade on the sides of the windows and other select places. Even though it isn’t adding to the “real” light of the room, it helps give it that last piece of convincing magic touch. We also used particle systems for effects like the fireplace, candles and torches.

The concept art helped us find the vision of what we wanted to do. Starting with just the room geometries, we used the color hues and general light level from the concepts to create a lit space that felt cohesive, which we then could tweak and modify until they felt comfortable to look at.



Technical hurdles & Bloopers​

One of the hurdles throughout the development of the court scene were tools - a means for developers to manipulate the scene contents more efficiently - edit objects, characters, lights, change their positions, add or remove to have a toolset that allows more quick iteration and direct interaction. It took time to develop a solution that made this part of work less tiresome. One of the downsides of not having readily available tools - you have to do those yourself, and sometimes reinvent a wheel multiple times. But we’re lucky to have an internal tools team that came to rescue us, and it improved the processes immensely.

We had plenty of funny bugs over the court of development, resolved by now of course.

not-a-clan.png

It's not a cult! — Sometimes visual bugs can be quite fun

bighead_bug.png

Baby Bighead bug.

nohead_court_bug.png

They say you shouldn't lose your head in court, but this is ridiculous



Finished courts and courtly variation​

With a working feature, concepts drawn and all the parts built we got to compositing together the scenes. There were a lot of iterative steps working on the textures, lighting and positioning to get all pieces to look their best. The environment team has made a set of three different variations of each cultural court type that each has their own architectural and/or decorative flair and visuals, the scenes differ more in geometry and configuration or the construction materials used. So there may be more windows and ample light, or a fireplace castings its warm light into your court.

western_1.png
western_2.png
western_3.png

The western European inspired courts, with stone and plastered walls.

medi_1.png
medi_2.png
medi_3.png

The Mediterranean courts, drawing inspiration from the Roman past as well as the melding of surrounding cultures.

mena_1.png
mena_2.png
mena_3.png

The Middle Eastern courts, drawn on from architecture found in Arabia to Al-Andalus.

indian_1.png
indian_2.png
indian_3.png

The courts of India, greatly varying interiors.

Grandeur variants was a further change we added later in the development cycle, which helps give a little extra flavor to the progress of your court's grandeur. Lower court grandeur has less fancy details and furniture extras in the court than the higher level which sports more of them. The surfaces of the room have also been made to look more worn and less taken care of at a lower grandeur level, compared to the high grandeur which look their grandest.

Grandeur_low.png

The Pomeranian kings court has seen better days, its painted plastered walls worn and peeling, the floor tiling tired, scraped and just slightly dirty.
Little decorations or extra furniture have been afforded the kings halls.


Grandeur_high.png

After much investment in upping the level of grandeur, the court's floors are fresh and polished, extra candles and seats added to the court, and a long finely woven rug lines the path up to the throne.



Wrapping up​

And with that we’ve come the full way from inception all the way to the finished scenes. We’ve been continuously tweaking and polishing stuff like camera angles, lighting and textures, and we do hope this is a great foundation for a feature that we can grow over time.

So a big thanks from the court and environment team for checking into this Dev Diary, which will be the last one of the year, but fret not! We will still be bringing you weekly teasers all the way through December to the start of next year.
These teasers will be smaller in scale and focus on some minor features and things we still want to show off, so keep your eyes out for it next week.
 
Last edited:
  • 130Like
  • 51Love
  • 12
  • 6
  • 3
Reactions:
Totally open. Add new culture themes based on triggers, add more variations within the culture. Scene configuration itself is in script files, that one can edit manually or with some debug tools
So does this mean modders could tie a unique court scene to a title? I'm thinking of mods like Elder Kings with the Ruby Throne room when you own the Imperial City.
 
  • 1
  • 1Like
Reactions:
So does this mean modders could tie a unique court scene to a title? I'm thinking of mods like Elder Kings with the Ruby Throne room when you own the Imperial City.

Any interface trigger should work. You can take a look illustrations and their dynamic selection. All you can do there, is also possible for royal court.
 
  • 15
  • 3Like
  • 1Love
Reactions:
I know that after this DLC I will not be able to continue playing, I know it is impossible for my toaster to run so many graphics.

That's not true. If you have character animations disabled, court room will become a static picture, rendered only once - when the view is opened.
 
  • 28
  • 14Like
  • 5Love
Reactions:
If not this expansion, then in later DLCs or flavor packs, I hope we'll eventually see Ermine Lined Coronation Robes. Even if only in the Court View...
 
  • 2Like
Reactions:
If character animation is enabled we will see characters doing animations?

Of course. You get full spectrum of things: animated characters, special animations for some court roles, flickering and trembling lights from fireplaces, smooth camera transitions between points of view, optional slight idle camera panning.
 
  • 16
  • 13Like
  • 5Love
Reactions:
Can you replace the zigzaggy texture in the Western variant one? It looks more like someone's accent wall than anything medieval because it's so simple. I'd prefer a wood textured one without colour over it even, were you not dedicated to making it look more authentic.
 
  • 4Like
  • 2
  • 1
Reactions:
It might be possible with modding the culture theme selection, but not with the variant within the culture.
Why not? Having preset clothing colors that you can change only by creating character from scratch is so inconvenient when everything else is so open to customization. Big sad
 
  • 3
  • 1Like
Reactions:
Visual style is based on various cultural and geographical triggers. A bit similar to how the game decides which holdings and units graphics to use. One way for the player to affect it - is to hybridize cultures and pick the desired visual style there.

I was wondering how hybridizing cultures would play into the courts' looks. An interesting way to eventually expand on this (and I understand this would be a long way off from happening and maybe not even feasible, but it just popped into my head looking at the screenshots) would be being able to have some sort of mixture of cultural elements in a court for a hybridized culture if it's a hybrid of two different court styles. So if you had, say, a Greek-Levantine hybrid, the court would have a mix of Mediterranean and Middle Eastern court graphics. Just something that would be neat if possible, especially later on if/when more styles of court graphics get added to the game.
 
  • 6
Reactions:
No, specific variant is picked at random based on your capital location. If you want to try your luck, try moving it several times across different rulers.
I understand the limitation, but please consider adding an option to choose between the three sub-variations for the player. Moving the capital is quite an inconvenience. It could be a minor decision similar to 'exoticise the court room', but your Court Architect offers you a choice between the three sub-variations.

Everything is looking great and I'm extremely eager to play with the Royal Court!
 
  • 6
  • 5Like
  • 1
Reactions:
1638288585335.png


Looking at the table in the front holding the goblet, the faces towards the camera are almost black, suggesting there is no light source from that side, and yet it casts no shadow whatsoever. Why not?
 
  • 3
  • 2
Reactions:
The picture literally has "Under Development" on it. I would imagine that's why.
I mean yeah, that's certainly a possible explanation, but it's also in a section titled "finished courts", so I'm not clear whether they intend to do further refinement of something so fundamental as the lightning model.
 
  • 5
  • 1Like
Reactions:
I mean yeah, that's certainly a possible explanation, but it's also in a section titled "finished courts", so I'm not clear whether they intend to do further refinement of something so fundamental as the lightning model.
"Finished" can mean several things in this context, like they've finished the major design and style choices, layouts and whatnot, but are still refining things like camera angles and lighting. I image they will be refining things up until the last minute.
 
Last edited:
  • 3
Reactions:
That's not true. If you have character animations disabled, court room will become a static picture, rendered only once - when the view is opened.
That is nice to hear. I had a similar concern even though I don't have a complete toaster. I do use a Mac, though, and the game and the graphics don't seem to well-optimised for that.
How many different set ups do you test this on? CK3 portrait graphics look always a bit off on my computer and I'm concerned this might intensify with something like the court rooms.
 
  • 1
  • 1Like
Reactions:
View attachment 780828

Looking at the table in the front holding the goblet, the faces towards the camera are almost black, suggesting there is no light source from that side, and yet it casts no shadow whatsoever. Why not?
If you look closely it actually does cast a shadow. It's just that most of where it would be is already in the greater shadow created by the back wall, whereas the table behind it is casting a shadow into an otherwise lit area so the shadow there is more noticeable.
 
  • 2
Reactions:
First of all I want to begin by saying thank you for this amazing effort.

looks like development is at its ending stages now and it's only QoL improvements and bug fixes to do, good luck and take your time :)