Giter VIP home page Giter VIP logo

garikdog / autobake_tools Goto Github PK

View Code? Open in Web Editor NEW
40.0 4.0 2.0 64.17 MB

An easy to use Blender Add-on that allows you to bake Bevel Shader to the Normal Map, Ambient Occlusion to the AO Map in fully automatic mode.

Home Page: https://www.blendermarket.com/products/autobake-tools

License: Apache License 2.0

Python 100.00%
addon bake blender blender-addon blender-python normal-mapping blender-bake artists game-development gamedev

autobake_tools's Introduction

Contributors Stargazers support Total Downloads Release Issues MIT License


Logo

Auto-bake Tools

Blender Add-on for Automatic Bevel Shader - Normal Map Baking
easy to use
useful for 3D artists

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Explanation of what the addon code does
  5. Roadmap
  6. License
  7. Contact
  8. Acknowledgments

About The Project

An easy to use Blender Add-on that allows you to bake Bevel Shader to the Normal Map, Ambient Occlusion to the AO Map in fully automatic mode.

  • If You are working in Blender, this will save you a lot of time!
  • If You're not working in Blender but need to bake your bevels, this will save you even more time!

Product Name Screen Shot

(back to top)

Built With

  • bpy

Getting Started

Prerequisites

First You need to install Blender (You need the 3,0,1 or newer)

  • Download the last blender release:

  • blender

Installation

  1. Download latest release of Autobake Tools:
  • Release

  • You also can ❤:

  • support

  1. Run Blender

  2. Go to Edit>Preferences Add-ons tab.

  3. At the top right of the Blender Preferences window, push the install... button.

  4. Find the downloaded zip with Auto-bake Tools in file manager that appeared, select and click Install Add-on.

  5. Next, use the search in the Blender Preferences window (Directly under the Install... button), find the addon by name.

  6. Check the box next to the found Add-on.

(back to top)

Usage

  1. Select an object that need to bake in the scene. (Must be UV unwrapped)

  2. If an object is selected, the Auto-bake Tools Panel will become available.

  3. Go to Auto-bake Tools Panel

  4. Push the Create Bake Environment button

  5. Correct Values:

  • Image Width - Bake Image width
  • Image Height - Bake Image height

For Bevel:

  • Glossy Preview - Sets the glossy shader to visually display Bevel effect
  • Bevel Samples - Number of rays to trace per belel shader evaluation.
  • Bevel Radius - radius of traced bevels (in meters by default)

For AO:

  • AO Distance - distance of AO tracing
  • AO Samples - Number of rays to trace per Ambient Occlusion evaluation
  • AO Exponentiation - Exponentiation value of AO to increase contrast
  1. Push the Bake Normal and Show button for Bevel or Bake AO and Show for AO
  2. Wait... And That's All! You may save the Bake result Normal Map/AO Map in Image Window that appeared

You can look at this gif:

Important additional information:

It is advisable to check if GPU Render is available for Cycles.

If not available, go to Edit>Preferences System tab In it, select the CUDA subtab and uncheck / check the boxes next to your video card name and near the processor name.

After these steps, GPU Compute will be available in most cases (If the hardware is not quite ancient)

GPU Compute for Cycles is extremely important and greatly overclocks the render, please keep in mind!

(back to top)

Explanation of what the addon code does

Create Bake Environment operator:

  • Shading setup:
  1. Sets the Render Engine to Cycles

  2. Sets the Render Feature Set to Supported

  3. Trying to set the Render Device to GPU

  4. Sets the Bake Multires to False

  5. Sets the Selected to Active to False

  • Material Setup:
  1. Creates Material (if selected object have not material)

  2. Sets the Use Nodes to True

  • Shader Editor setup:
  1. Cleares Nodes

  2. Creates, places and conneсts Glossy BSDF, Diffuse BSDF, Material Output, Bevel node, Image Texture node, Ambient Occlusion, Math(Power)

Bake Normal and Show operator:

  • Creates the Image with custom _n name ending

  • Runs default blender Bake operator with type Normal

Bake AO and Show operator:

  • Creates the Image with custom _ao name ending

  • Runs default blender Bake operator with type DIFFUSE

  • Opens the window with the Result

Glossy preview, Image Width, Image Height, Bevel Samples, Bevel Radius, AO Distance, AO Samples, AO Exponentiation - custom properties. It's implementation allows you to change the values ​​at any time. The nodes will get them anyway.

(back to top)

Roadmap

  • Add a multimesh bake

See open issues for a full list of proposed features (and known issues).

(back to top)

License

Distributed under the APACHE-2.0 License. See LICENSE.md for more information.

(back to top)

Contact

Igor Subachev (GarikDog) - Discord - [email protected]

Project Link: https://github.com/GarikDog/autobake_tools

(back to top)

Acknowledgments

  • Thanks to Steven Wyatt for a great course on bpy development

(back to top)

autobake_tools's People

Contributors

garikdog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

autobake_tools's Issues

Add a dx normal bake option (bool property)

Sometimes we need to bake DirectX normal.
Of course, we can flip the green channel, but some people are interested in this feature. As long as it's not a priority. Must be done without overloading the interface

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.