TolinSimpson / Kitbashery-Improved-Mesh-Combiner

An alternative to Unity's built-in mesh combiner. Built for Kitbashery. Combiner welds vertices and packs UVs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notice:

This repo was for the UV tools created for the Kitbashery standalone application; a project which was canceled. This repo uses the name Kitbashery but is not offcially part of the Kitbashery ecosystem and does not meet the quality standards of other Kitbashery assets. If you want this and more UV tools that I have since developed give me a shout @ https://github.com/Kitbashery and maybe I'll clean this up as a modern Unity package.

Kitbashery-Improved-Mesh-Combiner

An improved mesh combiner developed for Kitbashery. This contains an alternative implementation of Unity's built-in mesh combiner.

License:

MIT License (see Licensing for more info)
Created by Jorge Reyna Tamez @ https://www.fiverr.com/wkepro
Maintained by Kitbashery @ https://www.kitbashery.com
The name Kitbashery and all associated branding and logos are are under copyright ©2020-22 Tolin Simpson all rights reserved.

Features:

This project contains an improved mesh combiner for use in Kitbashery it does the following:
  • Combines Meshes into a single mesh.
  • (optionally) Merges vertices into vertex welds.
  • Packs UVs so they don't overlap or stretch (includes padding & size by bounds options)

This does NOT do the following (Kitbashery doesn't need these features):

  • Pack textures.
  • Combine submeshes.
  • Combine skinned meshes.
  • Preserve vertex colors.

Usage:


1) Import the .unitypackage file found under releases.
2) Editor implementation can be found under Tools>Kitbashery Combine Meshes>

Testing: Kitbashery contains a modified version of https://github.com/Chaser324/unity-wireframe" (required dependancy) wireframe shader that has been modified to display the wireframe of UVs in worldspace grab it from here: https://github.com/kitbashery/Kitbashery/blob/Latest-Experimental/Assets/_Kitbashery/Shaders/UVWireframeShaded-Unlit.shader"

Note: Unity's default quad will always be a perfect UV square and represent UV bound in worldspace. Also note that all UVs are offset by 0.5f in X and Y direction when visualized.

About

An alternative to Unity's built-in mesh combiner. Built for Kitbashery. Combiner welds vertices and packs UVs.

License:MIT License


Languages

Language:C# 100.0%