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. Dismiss Notice

TrailRenderer's Vertex Normal is wrong

Discussion in 'General Graphics' started by IllusionArk-Lee, Dec 5, 2019.

  1. IllusionArk-Lee

    IllusionArk-Lee

    Joined:
    Mar 16, 2015
    Posts:
    8
    The normals of vertices created with the TrailRenderer are all strange. This problem is also seen in the LineRenderer.

    You can download related videos and Unity packages from the following link.
    https://drive.google.com/drive/folders/1ImEaBr1IUzNt4RImm-M_zdsEAHEMo61-?usp=sharing
    (Unity 2019.3.0f1)

    All renderers in the scene have the same material (including the TrailRenderer).

    Note that the TrailRenderer's Alignment is set to TransformZ, but the normal of the vertex is abnormal even with the View.

    Do I not know how to use TrailRenderer?
     

    Attached Files:

  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,240
    Make sure "Generate lighting data" checkbox is enabled in the TrailRenderer Inspector.
     
  3. IllusionArk-Lee

    IllusionArk-Lee

    Joined:
    Mar 16, 2015
    Posts:
    8
    I checked "Generate Lighting Data", but they all shaded in the same Normal direction regardless of the direction of the vertex.
     

    Attached Files:

  4. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,240
    Ok, report a bug and we will help you further.

    Thanks,
     
  5. IllusionArk-Lee

    IllusionArk-Lee

    Joined:
    Mar 16, 2015
    Posts:
    8
    Thank you for the answer. :)
     
    richardkettlewell likes this.
  6. IllusionArk-Lee

    IllusionArk-Lee

    Joined:
    Mar 16, 2015
    Posts:
    8
    I reported a bug. The case number is 1203456.
     
    richardkettlewell likes this.