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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

seams of GI map

Discussion in 'Global Illumination' started by eirianka, Apr 2, 2015.

  1. eirianka

    eirianka

    Joined:
    Apr 2, 2015
    Posts:
    5
    Problem that I have encountered, when GI bake, like this line comes into boundary line of UV piece. This problem is what my misconfiguration, Or is a known bug?
     

    Attached Files:

    • 01.jpg
      01.jpg
      File size:
      108.7 KB
      Views:
      894
    • 02.jpg
      02.jpg
      File size:
      110.3 KB
      Views:
      897
  2. SpiriTx

    SpiriTx

    Graphics QA Unity Technologies

    Joined:
    Apr 12, 2012
    Posts:
    252
    Do you have "Generate Lightmap UVs" checked on the mesh?

    Found in import settings
    MeshExample40.png
     
  3. eirianka

    eirianka

    Joined:
    Apr 2, 2015
    Posts:
    5
    I thank you for your reply.Yes,I checked "Generate Lightmap UVs".And it will not be improved even to test the various ways.
     

    Attached Files:

    • 03.jpg
      03.jpg
      File size:
      276.5 KB
      Views:
      914
  4. SpiriTx

    SpiriTx

    Graphics QA Unity Technologies

    Joined:
    Apr 12, 2012
    Posts:
    252
    Could you please report a bug with this mesh attached? I'll check it out
     
  5. eirianka

    eirianka

    Joined:
    Apr 2, 2015
    Posts:
    5
    I have reported this bug.Case 686686.
    I am making things complicated shapes using the Unity. GI joint of will to ruin them. The reported mesh is what made with 3dsmax, but also occur, such as spheres made with Unity. I am looking forward to early resolution
     
  6. SpiriTx

    SpiriTx

    Graphics QA Unity Technologies

    Joined:
    Apr 12, 2012
    Posts:
    252
    I think some explanations are in order. Seams are present on all the objects due to the representation in 2d.

    With cube it's really simple and you get edges on the cube edges, so they aren't visible:


    But with sphere, it's impossible as it doesn't have any edges. There are many ways how cutout sphere, but for our primitive we use one which would limit the amount of seams to minimum:

    Capture.PNG

    So for your teapot or any other mesh which has spherical surfaces, try playing with UV settings, especially angle, or simply create UV yourself to match where you would like those seams to be.

    So for example, after trying few values with a teapot I found this quite presentable:
    Capture2.PNG
     
  7. eirianka

    eirianka

    Joined:
    Apr 2, 2015
    Posts:
    5
    I thank you for your kind reply.
    If made of UV seams and I understand that it is possible to avoid the phenomenon. I really want to know is is absolutely the case that there is UV seams, whether it can be so inconspicuous it in Unity system. teapot is an example. In the case of a simple shape, I will be able somehow to hide the UV seams, something more complex, large-scale scene, is it is difficult in that case to avoid the UV problem.
     
  8. SpiriTx

    SpiriTx

    Graphics QA Unity Technologies

    Joined:
    Apr 12, 2012
    Posts:
    252
    Did you try creating UVs yourself in modelling software and when simply using those instead of Unity generated ones? There is option to preserve UVs from a model
     
  9. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,025
    Preserve UVs doesn't work right most of the time. I mean it does, but the packing algorithm after the fact, considers hard edges in the model as discontinuities in the UVs, so it breaks continuous UVs into separate islands.

    It would work pretty well for the teapot example though, since there are not a lot of hard edges.
     
  10. eirianka

    eirianka

    Joined:
    Apr 2, 2015
    Posts:
    5
    It is one of the way. I am making a UV set 2 actually for light map in 3dsmax.
    But we thought that it is not the ultimate solution. Because there is always seam somewhere. In my company, we use automated deployment tools such as Flaton for UV deployment of light map. This is the same as the Unity of UV automatic deployment.
    So, even if they are not connected is UV piece and piece, I want to make light map of the gradient is not interrupted
     

    Attached Files:

  11. newmonuments

    newmonuments

    Joined:
    Oct 21, 2014
    Posts:
    15