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

Specular reflections on lightmapped object without reflection probe

Discussion in 'Global Illumination' started by Deleted User, Apr 14, 2017.

  1. Deleted User

    Deleted User

    Guest

    I have a material that has some very rough specular reflection. Because it is rough, I don't need the detail that a reflection probe would provide, and instead want the benefit of positional accuracy from using a single light source directly. Additionally, a reflection probe would lack the intensity of the point light source I want to be visible in the specular reflection. Now, I have tried various setups in forward and deferred rendering, but this does not seem to want to mix. When I select "Simple" under "Reflection probes" on my object (forward rendering) there still is no specular reflection from any of the nearby light sources. I made sure that directional lightmaps are being built. Using Unity 5.6.0f3.

    The material and what it should look like (exaggerated for effect, anyway):


    The object which lacks reflections:


    The settings of the MeshRenderer on said object:


    How my lights are set up:


    My lighting settings:


    Also, here is the effect that I want (which I get immediately when clearing lightmap data, which, however, I do want to keep and use):
     
    Last edited by a moderator: Apr 14, 2017
  2. Amitgp

    Amitgp

    Joined:
    Aug 18, 2014
    Posts:
    22
    I have no idea if I understood you correctly, but based on what I understood this is my reply.
    Don't use subtractive, use one of the other lighting mode and it should work fine with your current lightmap data.
    Subtractive mode is the old mixed mode and only need to be used if you are developing for low spec mobile development etc.
     

    Attached Files:

    • sub.PNG
      sub.PNG
      File size:
      127.7 KB
      Views:
      961
    • other.PNG
      other.PNG
      File size:
      128.4 KB
      Views:
      958
    andreiagmu and (deleted member) like this.
  3. Deleted User

    Deleted User

    Guest

    I cannot thank you enough for bestowing this knowledge upon me. It's finally looking the way I want it to!



    Thank you!
     
    andreiagmu likes this.
  4. Amitgp

    Amitgp

    Joined:
    Aug 18, 2014
    Posts:
    22
    No, thank you for validating my experience and thank you for asking the question. It is always good to know when we can help each other out.