From ethnographic museum real buildings to the video game locations!

Hello
You probably know that during The End of The Sun production we scanned buildings and exhibits from ethnographic museums. But how exactly do “copy and past” of real life buildings into video game 🙂 ?
If you are interested how we did it, in that post we will present whole process, from visiting Ethnographic museum “Skansen Wsi Pogórzańskiej in Szymbark” in Poland to complete 3d objects in the game.
POST CONTAINS A LOT OF GIFS some of them need little bit time to load if you have problem with loading some of them just refresh that webpage.
P.S We are not native English speakers, we try to write our blog posts the best we can. Sorry for all small language mistakes.
__________________________
________________________
But… 🙂
…Lets Back to our topic. You could see Here comparison between Real photo and in the game view of the same building 🙂
Here is how that building looks in Unity 3d Editor.

…So everything Started one Cloudy Day in Southern Poland in ethnographic museum called “Skansen wsi Pogórzańskiej” in Szymbark.
Why cloudy day You will ask? It’s not by accident 🙂
Cloudy day has perfect light (without hard shadow) to make photogrammetry scan. [Photogrammetry is method of making huge number of photos around real life objects so then computer could make 3d model from that, but we will describe whole that process for a moment 🙂 ]
So Poland has quite good climate for making Photogrammetry.
We have very often cloudy days here, the problem is that most days when there is cloudy weather, It starts to rain. What could break Whole job 🙂
Creating one building starting from taking photos to ready in game model could take even 2 weeks.
We will explain here step by step why it takes so long .
Ok So Firstly We had to make photos of objects, But not just few photos, For that building there were over 500 photos taken. This is needed especially if objects contains a lot of protruding elements. Our buildings has a lot of these kinds of protruding wooden beams on corners.

There is many rules that you have to keep when making outside objects Photogrammetry:
- You can’t do it with sunlight cause it cast hard shadows and you would like to get most smooth constant light – removing shadows in post-production is very hard thing to do with good effect. So Cloudy weather is a must have here.
- You need to use highest aperture possible on camera to keep whole photo in focus, With low aperture you will get narrow depth of field what is wrong in this case (it will make texture quality blurry at final bake)
- Avoid taking photos when surface is wet and shiny because of that
- Use Long pole to take photos of big or tall objects, We used drone at first but almost every drone has worse camera than our mirror-less camera. That difference in photo quality could be later visible on texture.
- Don’t take photos from really close distance, Of course sometimes You have to do that, to get good scan but try to avoid that if you can.
There is much more of it. To Get more detailed remarks You could read our earlier blog About our characters photogrammetry Here
Ok So After we took photos We put everything into Photogrammetry software (Agisoft Metashape earlier known as Photoscan) as You could see below. Computer calculated photos positions in 3d space and calculated Tie points. It Gives us overall look on object’s shape.

Ok but it not looks too perfect…so What next?
Now we need to calculate “Dense Point Cloud” It is shown on screen below and as You can see it gives pretty good overall look how will be final effect.

As you see above We had to remove points that we don’t need in our model, as well as made some manual clean up…But it is still only point of clouds not 3d Model…
…So basing on that very dense Points Cloud computer will calculate 3d Mesh (Model).
That Mesh is pretty heavy 🙂
No it doesn’t weigh 8000 kg (ok we know its a poor joke 😀 ) but it has over 8 milion of faces. (polygons that every 3d model is made from) what makes it heavy to calculate for any PC.

To Give you overall look how much it is – When you play newest 2020 game Your computer is drawing average about 4-5 millions of faces and it contains all 3d models on scene.
So Basically if that house model has 8 Milion faces, We would be able to show You only that One building in our whole game. 🙂
So What Could We do?
We need to make process called “retopology” It’s like creating similar looking much much simpler 3d model basing on actual High Quality Model (with 8k polygons).
It could be done very often automatic way, but not this time. We had to do it manual way.
In case of That buildings it was really hard job. Because many elements needed to be created from nothing. Why?
Because we weren’t able to move many exhibits that were placed around the house, So model wasn’t fully perfectly calculated. Look For Example Here:

We just can’t Take All that wood logs away during making photos in real life so photogrammetry don’t know what is under that. This kind of covered elements like wall under these wood logs need to be modeled manually.
Here Is How looks 3d model after Retopology:

Also As You probably noticed that we divided and organized some elements. Walls, roofs, doors, windows, are separate objects. We will explain Why for a moment.
As You saw photogrammetry software baked texture of 3d model basing on photos we took. It is biggest advantage of that method that textures are really unique and looks natural.
For optimization purposes We divided it for few textures:


But Photogrammetry texture isn’t always perfect.
Do you Remember That wood logs? These lying next to the building wall?
Computer don’t know what is behind it so it will just paint wood logs photo as wall texture. So Next step was to fix manually all texture artifacts:


But it’s not the end of Our Work.
Now it’s time to add details from our initial High Quality Model into low poly model.
We will do it using normal map. This is some kind of special texture that allows to simulate light behavior in Game Engine giving illusion of details on surfaces
We mixed both – details of colour(albedo) texture with 3d High Poly model details. We Described it here earlier. It’s rather technical
Here is how it looks in Game Engine with Normal maps Turned ON and OFF on walls:

Ok So Let’s talk why we divided building into The parts Like Roof, Walls, doors etc.
There were few reasons.
With this kind of organization we could manipulate different elements of buildings. For example we could open The Door, Remove Windows or some interior walls. It is very usefull in game design and gameplay interactions.
You could see that below:

Also all walls in interiors were manually modeled. Why?
In the ethnographic museums interiors there is always a huge number of objects(exhibits). This is main reason that without spending weeks on taking these objects out and then putting it back in it is impossible to make photogrammetry.
It’s much easier with almost the same effect to made it manually with mirroring outerior walls inside.
Here below is how finally interior looks. Pretty good. Because inside of building, walls aren’t most important elements. Most important are items that you will find there, so small exhibits that we scanned too. You could read about it in this Blog post 🙂 But probably soon we will write new one only about small exhibits.

…there were second more important reason of dividing Interior and Outerior walls…
…Dynamic Weather and snow that we have in our game.
Basically We are using Lux Shader that allows You to generate in Dynamic way snow on objects.
This is Why we needed separate “No Snow” material on interior walls/ floors and “With Dynamic Snow” on these ones Outside.
It works like that:

Here is how Home Looks In Unity 3d Editor:

Here is how It finally looks In the Game:

We would like to show you few screenshots from different building that You could also know from our Kickstarter Video



Thank you for Your Support!
News & devlog
New What's up? - NEWSXbox Launch + “Magic Creatures & Investigations” Trailer
The End of the Sun is now available on Xbox! We’re delighted to announce that The End of the Sun is now also available on Xbox Series X|S…
What's up? - NEWSXBOX – Announcement & Release Date!
Hello friends! We know the Xbox release date! 💚 Together with our console publisher IMGN.PRO, we are incredibly thrilled to announce, that The End of the Sun will…
Behind the scenes - GAMEDEV BLOG“From Poland with Love” Festival | Real locations in-game!
Hello friends! 🙂 Today we have exciting news for you! Let’s start step by step: 1. Prestigious “From Poland with Love” Festival! Right now on Steam, the amazing…
What's up? - NEWSThe End of the Sun now available on PS5!
Hello everyone! We have exciting news for you! The End of the Sun is now available on PS5! We are very proud of this and happy that, together…
What's up? - NEWSStudio Rebranding – The End of the Sun Forge
Hello everyone! Today we have extremely important but also incredibly exciting news for you! Over the last few weeks, we have been preparing a rebranding of our studio, which we…
What's up? - NEWSPlayStation 5 Announcement & Release Date!
Hi everyone! We have great news for you today! PlayStation 5 Premiere: April 21st!🔥 You’ve been waiting for this for a long time and we can finally confirm…
What's up? - NEWSWomen’s Day Festival & Geforce NOW!
HAPPY WOMEN’S DAY! 🌷 Taking this opportunity, we would like to extend our warmest wishes to all women. We wish you endless passion, courage in conquering new worlds (both…
What's up? - NEWSThe End of The Sun – Available on Steam, GOG and Epic!
The End of The Sun – Available on Steam, GOG and Epic Store! It’s been almost 2 weeks since we released The End of the Sun! It’s a busy…


