Creating Waves on Plane mesh

So in a recent post, we talked about generating a Quad and a Plane, which is an excellent introduction to creating meshes from code! But this time, let’s modify a mesh on a fly, by making water from a Plane with some waves! ?‍♂️

If you read my previous posts, you already know how to generate a quad or a plane from code. We will use the code from my last post to create a plane, so we don’t need to write it again.

But before we can jump into modifying mesh, the first thing that I would do is to add scrolling to water texture. ?‍?

Continue reading “Creating Waves on Plane mesh”

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!”