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

Procedural mesh color vs built-in primitive colors?

Discussion in 'General Graphics' started by Kobus, Jan 10, 2016.

  1. Kobus

    Kobus

    Joined:
    Mar 27, 2015
    Posts:
    48
    Good day
    I needed a ring shaped object in my project. I managed to create a ring shaped mesh dynamically through script and I can implement it in my project.
    However the color difference between the ring mesh and the built-in primitives (e.g. cylinder) just baffles me a bit.
    I have uploaded a screen shot of what I mean. The ring mesh appears very white and the primitive cylinder (created from the list of 3D Objects n Unity) much more grey. I have added exactly the same standard shader to both of them.
    This is annoying because in my project I add cylinders to the ring mesh and they need to be the same color as the ring mesh. See picture 2: The darker green circles should be the same color as the light green ring. Preferably I would like to have my ring mesh appear the same as the shading of the primitives.
    What am I missing here?
    Kind regards.
     

    Attached Files:

  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Probably the normals are wrong.

    --Eric
     
  3. Kobus

    Kobus

    Joined:
    Mar 27, 2015
    Posts:
    48
    Hi Eric
    Yes, thanks. That was the problem. The normals pointed in the wrong direction.
    Regards.
    Kobus