Home Technical Talk

Артефакты в unity

Offline / Send Message
Pinned
Не могу понят что не так. У меня есть стена и оконный проем, между ними фаска. Когда я делаю их в одной sg то появляются такие артефакты при запечке света. А когда они в разных sg то получается вот такой видимый шов. Подскажите пожалуйста как это исправить. Unity

Replies

  • Fabi_G
    Offline / Send Message
    Fabi_G godlike master sticky
    Hi! Did you create manual lightmap UVs? Doing so, you could add another loop in the flat area and then lightmap UV the whole opening as a straightened strip. You could probably ditch the bevel and let the baked lighting do the edge smoothing.

    The other way would be to simply increase lightmap resolution.

    Share the mesh if you want it looked at.
  • Diar3dcg
    Fabi_G said:
    Hi! Did you create manual lightmap UVs? Doing so, you could add another loop in the flat area and then lightmap UV the whole opening as a straightened strip. You could probably ditch the bevel and let the baked lighting do the edge smoothing.

    The other way would be to simply increase lightmap resolution.

    Share the mesh if you want it looked at.

    Да я сделал вручную развертку для UV2. Сделал шов вокруг чтобы выпрямить. Вот моя UV2 развертка. Возможно связано с швом, но я указал чтобы для он швы между собой соединял в lightmap. Как мне кажется тут проблема в группах сглаживания, между стеной и фаской окна стоит hard edge. Если они все у меня в одной sg, то у меня возникают такие артефакты((
  • Diar3dcg
    Fabi_G said:
    Hi! Did you create manual lightmap UVs? Doing so, you could add another loop in the flat area and then lightmap UV the whole opening as a straightened strip. You could probably ditch the bevel and let the baked lighting do the edge smoothing.

    The other way would be to simply increase lightmap resolution.

    Share the mesh if you want it looked at.
    Переводчик не так перевел. Сейчас убрал фаску и получилось очень хорошо. Я делал её чтобы блик в игре лучше читался глазу, но наверное стоит отказаться. Ещё раз спасибо

  • Fabi_G
    Offline / Send Message
    Fabi_G godlike master sticky
    Hi! Don't know what happened when you beveled the edges. If you did so using modifiers, I would double check the result in Unity or reimport the export, to make sure UVs didn't get messed up. Attached you find two examples illustrating what I meant previously (another loop on flat area, then have lightmap wrap around corner). You can throw them into Unity and check how those situations light bake.

    Good luck with your project!
  • Diar3dcg
    Fabi_G said:
    Hi! Don't know what happened when you beveled the edges. If you did so using modifiers, I would double check the result in Unity or reimport the export, to make sure UVs didn't get messed up. Attached you find two examples illustrating what I meant previously (another loop on flat area, then have lightmap wrap around corner). You can throw them into Unity and check how those situations light bake.

    Good luck with your project!
    Уау, спасибо большое вам. Я понял что дело было в том что у меня была геометрия неправильная. Глянул ваш файл и понял в чём дело.
Sign In or Register to comment.