Top Banner

of 14

Texture Baker Manual 1.0

Jun 02, 2018

Download

Documents

ippobour
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/10/2019 Texture Baker Manual 1.0

    1/14

  • 8/10/2019 Texture Baker Manual 1.0

    2/14

    Thanks for your interest in Texture Baker.

    Texture Baker is a utility and a collection of shaders that helps you visualize, tweak and manipulatetextures in Unity .

    Using it, you can

    - visualize specular maps without baking them in alpha, for tweaking them faster

    - visualize ambient occlusion maps applied by a AO factor- bake ambient occlusion maps ( influenced by an AO factor ) and the Tint in the diffuse texture,

    for use with fast shaders from Unity 4.x- extract the specular map from the alpha channel of a diffuse texture, from assets authored for

    the Unity 4.x pipeline (e.g Robot Lab)

    - Extract any channel (r, g, b, a) from a composite texture (e.g textures from DOTA or Luxshaders)

    - Create a composite texture, from many maps, like the ones created in Substance Painter (SSS,specular, ambient occlusion, etc ), for use in complex shaders.

    - Everything is done in the Unity Editor, through an intuitive interface, without resorting in otherapps

    - Works for Pro and Free, is fast

    - All operations are non - destructive, your original textures remain untouched

    - No need to refresh manually - the texture is immediately available in the Editor

    I am open to suggestions, if you have some ideas about how to make this utility better,

    please contact me at Unity forums ( Ippokratis Bournellis ), or at my email ippobour at gmail dotcom

    Now lets see how this utility works !

  • 8/10/2019 Texture Baker Manual 1.0

    3/14

    FIRST RUN

    Inside the package, you will find 3 shaders and a C# script. Make sure the script will always be in afolder named Editor, since it is necessary for Unity to recognize it and let it function correctly.

    To access the Texture Baker, go to Menu->Window->Texture Baker

    After you click it, drop it in a dock zone (online doc)

  • 8/10/2019 Texture Baker Manual 1.0

    4/14

    At the top of the window there is a pop-up menu that lets you use each of the five modes.

  • 8/10/2019 Texture Baker Manual 1.0

    5/14

    The first mode is the Bake Specular.

    Its purpose is to help you bake a specular map (S) in the alpha channel (A), for use with Unity 4.xShaders that support Specular (sometimes referred as Gloss) maps. It is common for artists to shiptheir models with separate specular maps. These maps must be baked in the alpha channel of thediffuse texture to work. For more info, see the online docs.

    To create a diffuse texture with specular map in alpha,- drag the diffuse map on the Diffuse texture slot

    - drag the specular map in the Specular texture slot

    - press the Bake button, located at the bottom

    A Save dialog will show up. Select the location you want to save the texture and it will appearimmediately, ready to use it. There are two shaders in the package that allow for visualization ofthe Specular Maps on your models without embedding them in alpha, that can be useful fortweaking the Specular without baking it every time to see the results.

  • 8/10/2019 Texture Baker Manual 1.0

    6/14

    The second mode is the Extract Specular

    This mode is useful when you have a Diffuse texture map (D) with an embedded specular map inalpha channel (lets call it DS map) and you want to extract the specular map. There are many such

    textures in the Robot Lab Unity Project. To extract the specular map (S) from the DS

    - drag the DS texture in the Diffuse(A Specular) slot

    - press the Extract Button

    Again, you will be prompted to save the specular map where you wish via a Save dialog.

  • 8/10/2019 Texture Baker Manual 1.0

    7/14

    The third mode is the Bake AO and Tint

    This mode allows you to bake a Tint color and an ambient occlusion map in a diffuse map. Thisallows you to retain great looks, while using fast performant shaders, like the Mobile Diffuse. Thereare three shaders in the package that allow you to visualize the models with an ambient occlusion

    map (optional) and a Tint.

  • 8/10/2019 Texture Baker Manual 1.0

    8/14

    The ambient occlusion map effect can be accentuated to diminished by the AO factor. At a value ofone, it shows the AO map as-is, raising the value accentuates the effect, lowering the valuediminishes the effect.

    Here is a demonstration of the Ambient occlusion baker. I used the Cartoon Submachine Gunmodel from Torry, available at the asset store for free. Torry includes a diffuse and an ambientocclusion map.

    with ambient occlusion factor = 0 ( no AO map)

  • 8/10/2019 Texture Baker Manual 1.0

    9/14

    with ambient occlusion factor = 1 (as-is)

    with ambient occlusion factor = 3 (accentuated)

    When you are happy with the looks of the AO, move to the Tint

  • 8/10/2019 Texture Baker Manual 1.0

    10/14

    Play with the tint until you find one that you like. In the Color Picker, if the presets group is closed,open it. Click on the last swatch to add the color you have chose as a new preset.

    Now you are ready to bake the color and the AO in the the Texture Baker

  • 8/10/2019 Texture Baker Manual 1.0

    11/14

    To bake the AO and the Tint in a diffuse texture:

    - drag the diffuse map in the Diffuse slot

    - (optional) drag the AO map in the ambient occlusion slot

    - set the tint (you can recall the color from the presets in the Color Picker)

    - set the AO factor, using the same value you used in the shader- press the Bake button at the bottom

    The resulting texture can be used as the diffuse texture in any shader, it should be used in shaderswithout Tint for speed though, like the Unlit or the Mobile Diffuse.

  • 8/10/2019 Texture Baker Manual 1.0

    12/14

    The fourth mode is the Extract channel

    This mode allows you to extract a map from a composite texture. There are shaders (like Lux PBRor DOTA ) that use different channels of a texture to store maps like specular, SSS (subsurfacescattering), roughness, etc. If you want to extract a map from such a texture

    - drag the composite texture in its slot- select a channel

    - click the Extract button

  • 8/10/2019 Texture Baker Manual 1.0

    13/14

    The fifth mode is the Compose

    There are many shaders ( Antonov suit, Lux, etc ) that use different maps (roughness, cavitycurvature etc) stored in textures channel ( e.g. R = Metallic G = Roughness, B = AmbientOcclusion, A = Alpha.). There are programs like Substance Painter, ZBrush, Mari or libraries likeQuixel Megascans that lets you create and find such maps. To make them work though in Unity,you have to arrange them in a textures channel.

    Compose mode lets you do exactly that.

    - drag each map on the corresponding channel- if you do not drag a map on a channel, it will be filled by the value specified in the corresponding

    value field- click the Compose button.

  • 8/10/2019 Texture Baker Manual 1.0

    14/14

    Contact and acknowledgements

    Feel free to contact me about questions, suggestions at unity forums ( Ippokratis ), Skype( Bournellis Ippokratis ) or at my email : ippobour at gmail dot com.

    Many thanks to the beta - testers !

    Also, many thanks to Texel, Daniel Brauer, Martin Krauss, Jessy Anders, NeilCarter, MichaelGarforth, Eric Haines, Keli Hlodversson, Tenebrous, fholm, airship, duckets, Tak, LittleAngel, andall the other people who helped me over time to create this utility.

    Kind regards,

    -Ippokratis