项目作者: Aetheris743

项目描述 :
A Blender PBR Material Texture and Object Exporter
高级语言: Python
项目地址: git://github.com/Aetheris743/Blender-PBR-Texture-Exporter.git
创建时间: 2019-03-21T02:58:15Z
项目社区:https://github.com/Aetheris743/Blender-PBR-Texture-Exporter

开源协议:MIT License

下载


Blender 2.8+ Object Exporter

This plugin is designed to improve the export process from blender to any external software by automaticly baking standard PBR texture maps, meshes, and other maps that are useful for texturing.

How to install this plugin

To install this plugin download PBR_Exporter.py, install it from the Add-ons panel in blender’s preferences, and enable it.

How to use this plugin

First, Select the objects you want to export the textures of.

Select the options you want in the export panel. (In render properties)

image

Export Options

  • Textures To Export: The texture maps to export for each object. (Combined will take a very long time)
    • Albedo: Bake and export albedo maps. (This only work with Principled BSDF materials. On other materials this will be a diffuse map)
    • Normal: Bake and export normal maps.
    • Metalness: Bake and export metalness maps. (This only work with Principled BSDF materials. On other materials this will be a gloss map)
    • Roughness: Bake and export roughness maps.
    • Emission: Bake and export emission maps.
    • AO: Bake and export AO maps.
    • Curvature: Bake a curvature map.
    • Material ID: Bake a map with a different color for each material.
    • Combined: Bake and export combined maps. (Settings can be changed from cycles baking options)
  • Texture Resolution: The size of the texture maps (1024 -> 1024 * 1024).
  • Composite Maps: Options to create maps that have Metalic, Roughness, AO, and Concavity channels Currently each channel can be Empty or a Curvature, AO, Metalness, or Roughness
  1. <img width="193" alt="image" src="https://user-images.githubusercontent.com/45411688/175611965-2db996d7-9501-4ff7-854d-9be3ce659a4c.png">
  • Separate Objects: Exports each of the selected objects to it’s own file and subdirectory
  • Generate UV Maps: Generates a UV map for each selected object.

Exporting

Then, if you want to see the progress open the console (Window > Toggle Console), and click the Export Maps button. This will take a while. Blender will momentarily freeze while it is baking textures.

After it finishes you will have an your objects export somthing like this

  1. Blend-file Name
  2. ├───Object_1
  3. Object_1.fbx
  4. Object_1_Albedo.png
  5. Object_1_AO.png
  6. Object_1_Custom.png
  7. Object_1_Emission.png
  8. ...
  9. ├───Object_2
  10. Object_2.fbx
  11. Object_2_Albedo.png
  12. Object_2_AO.png
  13. Object_2_Custom.png
  14. Object_2_Emission.png
  15. ...
  16. ├─ etc...

or this depending on your settings.

  1. Blend-file Name
  2. Object_1_Albedo.png
  3. Object_1_AO.png
  4. Object_1_Custom.png
  5. Object_1_Metalness.png
  6. Object_1_Normal.png
  7. Object_1_Roughness.png
  8. Object_2_Albedo.png
  9. Object_2_AO.png
  10. Object_2_Custom.png
  11. ...
  12. Blend-file Name.fbx