Full notes
Full Path to Prosperity update
Read the full published notes in a cleaner layout. The original post stays linked below.
What changed
- Gameplay
- UI and audio
Hi everyone,
Following the creation of the windmill model, I finally decided to automate parts of the model creation process to make things just a little quicker for the next models - so I’ll use this post to explain in a little more detail.
First of all, let me go over some parts of the process I use to create new models: A little while ago, I created some basic building blocks for the various buildings, such as the wooden and metal beams, wooden planks, etc. Over time, I also created various objects from these building blocks and some additional work, such as the furniture, the doors, windows, roofs, etc. As I create new buildings, I essentially put these parts together in whatever way seems appropriate for the building, and then combine or adjust them as needed. This is a fairly simple and quick process, and leaves me with a building that is made up of sometimes hundreds of little parts.
Of course I am also aware that each of the parts may require an eventual overhaul or some fixes to issues I haven’t noticed yet - so I have linked them into each building file from a central one. If I make changes to the part file, these can carry over to each building really easily, making updating each part much easier. But this also comes with a problem: Many of the hundreds of parts used in the buildings now can’t be easily joined together, some are only references that aren’t considered “real” by blender, others are representations of mathematical formulas, rather than actual geometry. To get the models ready for the game engine, I then have to go through the hundreds of model parts and fix all of these issues - then select the parts I want to combine, and join them, as well as delete any remnants.
Depending on the complexity of the building, this has taken between 1 and 4 hours in the past - and any mistakes I make (and sometimes don’t notice) can lead to longer term problems with the models or mean I have to go back to an earlier version of the file.
After the windmill took me about 4 hours to join together, I decided to try to automate this. Blender luckily allows for some automation scripts to be created with Python, and while Python isn’t my favourite language, I have enough experience with it to have gotten right into it. After a few hours, the result is now a simple shortcut that does the majority of the work for me. I simply select the relevant parts, and the script solves all of the issues, deletes remnants, and joins the parts together into one - usually within a few seconds. This means that I merely need to organise the parts into groups I want, and run the script a few times - having tried it on the windmill, it took the time to make the model game engine ready down to about 10 minutes.
While saving a few hours here and there at the end of a model creation may not sound like a lot of a difference, I am still looking at a few dozen new models to be created, and this part of the creation process was something I was usually dreading for how mind numbing yet fiddly it was. So as a result, I am quite excited to be able to skip it in the future!
Even though I am hoping to get a decent bit of game work done over the
Source
Changelog.gg summarizes and formats this update. How we read updates.
