Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

180
Visualizações
Strange shadowing after optimising mesh vertices

I'm generating a custom mesh out of a height map, and it works fine, except that after generating the mesh, there are a lot of duplicated vertices; duplicated in the sense that they occupy the same point in space.

In an attempt to optimise this, I run thru all of them and detect the ones in the same space and remove the duplication, and recalculate all the triangles.

This yields the same mesh, but now with 1 fifth of the vertices, the exact desired result.

However, in the unity editor, the visual changes. Some strange shadowing appears after I have optimised the mesh. See screenshots below.

This screenshot is before optimising the mesh.

BEFORE optimisation

This screenshot is the exact same mesh, but now with optimised vertices.

AFTER the optimisation has run

What can be the cause of this? I assume it's being done by the lightning of the scene, but no changes to the lighting has been made between the two screenshots.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Ok, so I figured it out. In optimising the mesh, I removed all overlapping vertices, but then I loose the hard edging, since every vertices only have one normal which is shared bu several triangles.

When the vertices are shared, the normal is interpolated across faces. I bet that is what is causing this effect.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda