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

make light glow around object

Discussion in 'Shaders' started by davidcummings, Dec 15, 2014.

  1. davidcummings

    davidcummings

    Joined:
    Nov 7, 2014
    Posts:
    5
    hi all, i need help in a problem: i want to make a glow effect like one in this clip (the effect with white and pink color around the sword and giant hand)
    (from 11:46 -> 11:52)
    i can do trick by make a plane with glow texture fit the sword on camera, but that trick only work when the camera stand still, now i have to animte the camera so that trick is useless
    i'm using free version
    any help will be appriciated
    and pls pardon my bad eng
     
  2. Kompster

    Kompster

    Joined:
    Jul 6, 2013
    Posts:
    1
    I'm a beginner with Unity but from the little I know you could add a particle emitter from the object mesh to achieve a similar effect.
     
  3. margusmuru

    margusmuru

    Joined:
    Oct 8, 2013
    Posts:
    18
    I' ve seen a trick in games where they add a separate object with a glowing material that has a transparency mask. Particles might be too heavy for perfomance.
     
  4. davidcummings

    davidcummings

    Joined:
    Nov 7, 2014
    Posts:
    5
    i tried, the result not look like beam in the clip, it's more like burning flame D: i need a more similar effect, at least about 90%
    i had copy 2 object from the sword and scale them larger a little, 1 white 1 pink, then add transparency material to it, but it's dont have blur, like in clip
     
  5. Flailer

    Flailer

    Joined:
    Apr 1, 2014
    Posts:
    66
    You could try basing the alpha of the shader based of the viewdirection to the camera, if the normal is facing away from the camera then its alpha is 1 and toward camera alpha = 0. Then cull the front faces. Might give you what ur after?
     
  6. BBeck

    BBeck

    Joined:
    Jan 12, 2014
    Posts:
    57
    I saw a trick in a computer graphics book the other day where they were doing the glow of a suspended lightbulb in game with billboards. The glow around the bulb was just a single quad texture that rotated to always face the camera.
     
  7. davidcummings

    davidcummings

    Joined:
    Nov 7, 2014
    Posts:
    5
    meh,i gave up guys, i end up create a plane, then make texture with aura fit the sword in sceen, very lucky, although the camera moving & it's a bit ugly and a bit unfit at some point, it still look fine when i play at 30fps, i'm praying there will be no feedback from customer D:

    alpha ??, do u mean the tranparency ??, yes, i had use particle/blend alpha shader (i tried addive and soft too), then slice down the alpha, but the problem is, it's just look through the texture, not blur effect like image

    uhm, maybe they
    1.use lens flare effect on the lightbulb, but it's only have sphere shape and a hand holding sword is very differently, and i cant make gradient color for that lens flare effect
    2.use particle, even though i can change it to hand holding sword mesh, but it very hard to make it fit, and the texture too
     

    Attached Files: