/Blender-BakeLab2-Fixed

Blender addon for baking images

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

I have (Unofficially) taken over this project because I wish to use this for my game development.

This fork is for me to make changes and port to Blender 3.2.1

This fork is not meant to take over the original, but the original repo has been abandoned for almost 2 years.
The reason for the fork detachment is because i wish to see those green squares on my profile for dopamine.
Original repo: @specoolar/Blender-BakeLab2

Small guide to export models with textures to FBX

You can't imagine how much effort I have put into export with textures (There are NO concrete guides). I have spent WEEKS on figuring it out.

Select your object, which you wish to export:

Select bake mode

image Note: "All To One Image" is used for exporting to FBX

Open BakeLab tab on the right menu:

CLick "Unwrap" and choose your unwrapping prefences and click "OK":

Add your texture types, that you want to bake:

!IMPORTANT! Choose "Output" to "Save" and choose your location for your baked textures:

!IMPORTANT! Check if your objects has more than one UV mapping:


If you have more than one then delete the unused one. If you don't know which one is unused then just clear UVs and re-Unwrap:

TIME TO BAKE!!!


You just have to click the big button called "Bake" 🤦🏻‍♂️

Now press "Generate Materials"

Next to the export part:

Choose the correct export settings


Path mode: Auto ==> Copy
Click the small button to the right:
Object types: * ==> Mesh

Finally! Press export!!

And here we go!!!

This object was opened in Paint 3D

Import FBX with texture into Unity

Go back and bake a smoothness map instead of roughness

image
image
Enable this checkbox, then rebake and export.

Import into Unity


Notice that this isn't showing textures.

Extract textures from FBX

Just select the object in Unity and in the inspector, extract the textures

Profit?




TODO: Move this guide to Wiki or create Youtube video instead (Minimum 24 minutes for some reason)

I probably won't do this but it's still a TODO







This is the original README (I don't know what to do with this and i decided to just keep it here)

Blender-BakeLab2

Thumbnail BakeLab - A blender addon for baking images.
For blender version 2.79 go to here

Main Features:

  • Automatically create images, setup materials, bake objects and save/pack images in one click;
  • Automatically generating materials;
  • Anti-Aliased baking;
  • Baking cycles displacement to real geometry;
  • Bake any PBR attributes of your material by its name (Metallic, Roughness, Specular and etc);
  • Adaptive image size by object's surface size;
  • Unwrap and Bake Multiple Objects into one image;

video: https://youtu.be/XmXek3TPZLk

Screen