Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

► Vertex Texture Baker ◄

Discussion in 'Assets and Asset Store' started by Arkhivrag, Dec 13, 2021.

  1. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,837
    Vertex Texture Baker is run-time and editor solution for baking textures inside mesh vertex buffers.

    Supported textures types:
    • Texture2D
    • RenderTexture
    • Cubemap
    • Camera render texture (skybox, environment lighting, etc)
    • Baked lighmaps

    Editor tools allows baking simultaneously 8 textures inside any mesh vertex buffers (vertex color, uv0 - uv7, normal, tangent) and inside any channels of them (R, G, B, A).
    Textures can be combined and merged before baking them inside mesh.

    Vertex Texture Baker is part of the Amazing Tools Bundle.

    Combined.jpg



    Amazing Assets - YouTube Facebook Twitter
     
    Last edited: Oct 13, 2022
  2. Kabookie

    Kabookie

    Joined:
    Mar 13, 2018
    Posts:
    10
    Hello! This looks fantastic. One question I have though, we're using a very specific material shader for our project, if I'm understanding correctly textures baked to vertex colors don't use a material. Would this addon still be viable for us? Or does it only support the pipeline's default material?
     
  3. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,837
    Data can be baked not only in the vertex color, but inside any mesh vertex buffer or its individual channel (for example UV2.x, or UV5.z, or Tangent.w and so on).
    All you have to do in the custom shader is just read that value.



    Amazing Assets - YouTube Facebook Twitter
     
  4. ikemen_blueD

    ikemen_blueD

    Joined:
    Jan 19, 2013
    Posts:
    329
    @Arkhivrag can this tool work well with your Convert Vertex Color To Texture? Thanks
     
  5. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,837
    Yes, work together perfectly.
    But note: Texture Baker can bake data inside any mesh vertex buffer (uv0 - uv7, normal, tangent, color).
    Convert Vertex Color To Texture reads data only only from mesh vertex color buffer. Also triangles must not overlap each other or generated texture may not be correct.



    Amazing Assets - YouTube Facebook Twitter
     
  6. blueivy

    blueivy

    Joined:
    Mar 4, 2013
    Posts:
    570
    Do you think this tool would play nicely with the vertex color baking done in an external lightmapper like bakery? Would I just set the texture2d target to multiply?

    Also, do you know if baking to mesh vertex plays well with your tessellation shader?
     
    Last edited: Apr 26, 2022
  7. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,837
    You can bake any texture inside a mesh.
    Beast tessellation shader doesn't support vertex color.



    Amazing Assets - YouTube Facebook Twitter
     
    blueivy likes this.