9/12/2023 0 Comments Unity 2d paint![]() ![]() ![]() Let’s start by adding in some hills and maybe add in a bit of color variation, okay, to mix it up a bit. So, first of all, before we continue, let’s make this look a bit more like a planet, okay. Well, the great thing about Polybrush is that we can actually do this automatically and we can attach meshes or attach prefabs to a mesh’s surface. Now, normally inside of Unity, you will have to drag a mesh into the scene, position it, rotate it, and that can of course take quite a lot of time. In this lesson, we are going to be looking at how we can paint prefabs onto our mesh right here using Polybrush. You can see the list of all the prefab children that were added to the sphere in the Hierarchy window: To edit a single prefab of your sphere, go to the Inspector window and then click on the prefab and apply the necessary changes. In order not to have two or more models overlapping, enable ‘ Avoid Overlap‘:Īnd here’s our planet full of trees and bushes:įeel free to add more models and prefabs to your Current Palette and Brush Loadout. To speed up the process of drawing the models onto the sphere, you can set the Strength of the brush to 1: You’ll notice that the sphere is looking small in comparison to the prefabs, so let’s scale it up a bit on the Inspector window: From there, enable the ‘ Use Pivot‘ option and start drawing the prefabs on top of the sphere: Then click on the checkbox for each prefab so that they’ll appear on the ‘ Brush Loadout‘ window too. Now go over to the ‘ Scatter Prefabs on meshes‘ tab and, from the Models folder, drag and drop the prefabs to the ‘ Current Palette‘ window. Next, go to the vertex colors to add some variation like so: To push the mesh inwards, you can hold down Control and then draw normally. Note that by holding down Control and using the scroll wheel of your mouse to increase/decrease it you can change the outer radius quicker. ![]() In the sculpting tab, create some hills and valleys: In Polybrush, we can attach prefabs automatically to a mesh’s surface. Before we proceed, however, let’s make our mesh look more like a planet. In this lesson, we’re going to learn how to paint prefabs onto our mesh. ![]() You can access the full course here: Intro to Polybrush Prefab Painting ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |