Procedural Terrain Generation – Plane – Part 1

Have you ever wonder how to generate terrain procedurally in Unity? You are in the right place!

In this post, we are going to talk about generating mesh for the terrain.

If you don’t know how a mesh is created, I would recommend checking my last post on exactly that subject.

You will need to have an idea of how to generate a mesh, and you will need to use some math skills here. But don’t worry, we will get through it! πŸ€“

Continue reading “Procedural Terrain Generation – Plane – Part 1”

Generate mesh yourself!

Let’s talk about meshes! Did you try to generate one yourself? Well, you are about to do that!

Meshes are used to display 3D models in a virtual environment. They are built from polygons which are covered with texture, based on the UV map. Its role is to give a player or a user impression of an object.

When an object has a lot of polygons, it’s called hi-poly. Usually, these are counted in hundreds of thousands or even in millions. Often, you can see them in movies or some AAA games.

On the other hand, there are objects with much fewer polygons, and they are called low-poly. Usually, low-poly models are a style choice, especially when you can see polygons on the model without any problem.
Low-poly models can also be used as an optimization technique, with baked textures from hi-poly models.

Continue reading “Generate mesh yourself!”

Multithreading with Job System in Unity

Writing multithreaded code was never something easy, but this might change with the introduction of Job System in Unity.

If you didn’t know, the code that you write in Unity is executed on the main thread. This makes everything much easier to build, but it also has some drawbacks, mainly in the performance department.

I mentioned in the beginning, Unity is introducing Job System to help you write multithreaded code much easier. And the best part is that you don’t have to worry about race conditions! πŸ₯°

However, you still have to know what are you doing. πŸ˜‰

Continue reading “Multithreading with Job System in Unity”

Submit your ideas!

You could see that I posted a few ECS posts lately. That is a new thing for every Unity Developer, and it takes some time to learn all about it. πŸ˜‰

I’m currently diving into Burst Compiler and Job System in Unity for upcoming posts, so I thought that I could ask you one thing in the meantime.

So far, I was writing about things that I found interesting, but maybe you are looking for something different. Perhaps it’s something that you have a hard time understanding, or no one explained it to you, or maybe there is something that you always wanted to learn about?

Continue reading “Submit your ideas!”