Search Unity

glow on trail renderer

Discussion in 'Shaders' started by k3dworld, May 14, 2009.

  1. k3dworld

    k3dworld

    Joined:
    May 14, 2009
    Posts:
    4
    hey guys,
    unity is new for me
    please suggest me how to glow trail by using particle trail renderer.
    is there any way to make orbit that can work on iphone, i try Mesh Particle Emitter but that is heavy with iphone with my game play.

    thank u
     
  2. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    You can either fake the glow in the texture itself or use an image effect to apply the glow (requires Unity Pro).
     
  3. k3dworld

    k3dworld

    Joined:
    May 14, 2009
    Posts:
    4

    Thank u aNTeNNa trEE.
    i try this before. it will fix forever
    i can not adjust that for my purpose.
    is there any way other than using texture image glow
     
  4. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    Can you post an image of the look you are trying to achieve?
     
  5. k3dworld

    k3dworld

    Joined:
    May 14, 2009
    Posts:
    4
    ok, please see the attached reference image for glow ring
     
  6. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    Ok, here's a small example. The main things to note are that you need to have an alpha channel in the the textures that you want to glow. Also these alpha values need to get written into the buffer every frame so for certain shaders you need to take out the line:

    ColorMask RGB

    The example project can be downloaded here:

    http://files.unity3d.com/ethan/glowLines.zip

    [Edit] Forgot to mention that this example uses LineRenderers instead of TrailRenderers, but the concept is exactly the same.
     

    Attached Files:

  7. Martin-Schultz

    Martin-Schultz

    Joined:
    Jan 10, 2006
    Posts:
    1,377
    Pretty nice example.
     
  8. fallingbrickwork

    fallingbrickwork

    Joined:
    Mar 16, 2009
    Posts:
    1,072
    I am assuming this example project is Unity Pro?!... if so, can this effect be obtained via Indie?

    Cheers all,
    Matt.
     
  9. k3dworld

    k3dworld

    Joined:
    May 14, 2009
    Posts:
    4
    thank u aNTeNNa trEE :) it really helped,thank for giving ur precious time n sharing ur knowledge with me.