Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. Unity 2017.2 is now released.
    Dismiss Notice
  3. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  4. If you're a macOS 10.13 High Sierra user take be sure to read this before updating Unity.
    Dismiss Notice
  5. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  7. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Get smooth light reflection

Discussion in 'General Graphics' started by surajsirohi1008, Dec 7, 2017.

  1. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    100
    In the first image the reflection of the (point) light is too strong, the circle can be seen, I don't want that.
    In the second image the reflection of the light is smooth, there's no concentration at one point, this is the desired lighting I want, how can I achieve this?



    Screen Shot 2017-12-06 at 11.06.04 PM.png Screen Shot 2017-12-06 at 11.06.56 PM.png
     
  2. Zyl

    Zyl

    Joined:
    Jan 2, 2013
    Posts:
    77
    You need to mess with the radius of the light. Unfortunately it's very unintuitive. No real world "point" (spherical) light has a finite falloff, but that's how Unity models it to better reflect how it is used by deferred shading techniques. Assuming they are doing everything else correctly (a dangerous thing to assume) they will have defined an arbitrary near-zero (but non-zero) intensity value that the attenuated light should reach after traveling distance equal to the light's radius, and then use that and your defined intensity value to solve for the radius of the emissive sphere which should actually be used to model a point light source.

    Try to use a larger radius with a lower intensity. Also consider experimenting with two overlapping light sources with different properties.
     
  3. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    100
    I can't increase the radius, my game is basically a person walking with light and user has to swipe in right direction to turn, if I increase the radius then user will be able to see which way he needs to turn, far away from the turn, this compromises the very idea of the game.
     
  4. Zyl

    Zyl

    Joined:
    Jan 2, 2013
    Posts:
    77
    If the exact behavior of the light is tied to your game mechanics you should write a shader for it so you are in control. In my humble opinion lighting is Unity's greatest weakness and customizing it is a great way to make your game stand out so doing this is quite common.
     
  5. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    100
    That's like advanced programming, that'll take time to learn.