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

Emissive light on an object

Discussion in 'Shaders' started by monkriss, Nov 11, 2016.

  1. monkriss

    monkriss

    Joined:
    Jul 20, 2016
    Posts:
    8
    I have made a very simple environment. I then imported a sphere and made it emit light... All good! Nice red glow on the ground and a few objects around.

    I then imported a model of a shipping container and tried to make that emit light too! Yey, this lights up too! I then removed this shader and went back to its usual shipping container material.

    I then imported a model of a rod which will go around the edge of the shipping container. This will make it look like there is a strip light going along the edges of the shipping container giving it a cool look. BUT IT WONT EMIT LIGHT! I can't work out what the problem is.

    I can get everything else to emit light but not this thin rod. I then tried to make the sphere quite small, i then noticed that it won't emit light once it is too small. Is this a normal problem? Could these problems be linked?


    Can any FBX model emit light? Does it have to be a certain size? How can i make these rods glow?
     
  2. monkriss

    monkriss

    Joined:
    Jul 20, 2016
    Posts:
    8
    I've uploaded a screenshot of me selecting both objects. The sphere which glows, and the red rod which doesnt :(
     

    Attached Files:

  3. monkriss

    monkriss

    Joined:
    Jul 20, 2016
    Posts:
    8
    ba-dump
     
  4. monkriss

    monkriss

    Joined:
    Jul 20, 2016
    Posts:
    8
  5. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,495
    Have you tried going to the lighting window, clicking the "Object" button and making sure "Important GI" is selected? It may be too small in generated UV space to have an effect. Bumping up the "Scale In Lightmap" may help as well.
     
  6. monkriss

    monkriss

    Joined:
    Jul 20, 2016
    Posts:
    8
    Sorry late response. I am quite new to this.. When you say too small in Generated UV space, does that mean it may only be visible in game mode? I should have checked but i am working with Virtual Reality and i didnt have my rig set up so i couldn't check.
     
  7. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,495
    No I mean too small in UV space that it doesn't even take up a pixel and thus can't contribute lighting. The dynamic GI still uses precomputed light-maps, it's just that the lightmaps are made in a way that allow for dynamic instead of static lighting by using some extra shader operations.