Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggest about meshs #35

Open
Li2rGou opened this issue Oct 16, 2018 · 1 comment
Open

suggest about meshs #35

Li2rGou opened this issue Oct 16, 2018 · 1 comment

Comments

@Li2rGou
Copy link

Li2rGou commented Oct 16, 2018

I try to export a scene,and finally I can see the scene but in that file about gltf I saw 600 meshes without reuse. So can you reuse the same mesh?

@AurL
Copy link

AurL commented Oct 18, 2018

Hi @Li2rGou ,

Could you share a Unity package with a scene of this type so that I can check if there is a way to reuse the meshes or not ?

The point is that Unity is able to reuse meshes in all cases since it makes the distinction between mesh and material (MeshFilter vs MeshRenderer)
In glTF, the material is defined inside the mesh's primitives, meaning that if the meshes use a different material (different unity .mat asset), it's not possible to reuse the original mesh.

If they all have the same material reference, optimizations are possible 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants