Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

How to make parts of cube shiny.

Discussion in 'General Graphics' started by Anon1234, Dec 21, 2014.

  1. Anon1234

    Anon1234

    Joined:
    Feb 17, 2014
    Posts:
    78
    If I would like to make every corner of cube shining of actual light? I know I could put "pattern" on each side, I know how that I put normal lights on. But I need to to exhibit more light, like, make it actually shining. I don't know how to explain it. It's as of you had paint which was self-creating light. I would like to paint in corners around cube, can this be achieved?

    @Edit - While I was Googling and thinking on how to explain this better. Here it is: How can I make corners of a cube, shining like a neon.
     
    Last edited: Dec 21, 2014
  2. pointcache

    pointcache

    Joined:
    Sep 22, 2012
    Posts:
    579
    you can use emission maps and lightmapper, but it will be static.
    You can use glow effect (you can buy plugin in asset store), but it will emit no light only screen effect.
    you can't properly simulate that kind of light on runtime, because area lights require raycasting computations.
    you can fake it with multiple lights if you wish but i would avoid that.
    you can combine simple lights and glow shader and be happy.
     
  3. Anon1234

    Anon1234

    Joined:
    Feb 17, 2014
    Posts:
    78
    Wouldn't this mean, that for every single corner I would need extra light to make them shine equally?

    I don't get the difference. "will emit no light only screen effect".

    This would require like maybe 200 lights and then very specifically put on really specific places to get the running good.

    I don't seem to be able to find one in Unity itself, I've visited few links here and there, but no results so far. Of course I could buy a plugin, but I'd rather keep project free, since I'm doing this for hobby and not for real full project that needs paid products for it. Is there nothing included in Unity that could maybe help me?
     
  4. Anon1234

    Anon1234

    Joined:
    Feb 17, 2014
    Posts:
    78
    FOUND IT!!



    I will just manually create rectangles in corners of cubes and then use this to make it shine.

    @Edit - I thought I found it, but it is mostly for spherecal objects. it doesn't really look good on rectangle.

    @edit2 - Is there a way, to have light affect only certain object BUT NO OTHER? I want to assign 3 different lights, to 3 different types of objects, can I achieve that?
     
    Last edited: Dec 22, 2014
    OllyNicholson likes this.