In this Blender 2.5 video tutorial we tackle something that is on most people’s “create before I die” list, a light saber. This tutorial focuses in on the post-processing aspect by setting up a node network to create the effect of the glowing blade of a light saber. Modeling is not covered in this tutorial, but the model is included in the source files to play with.

Note: this tutorial uses the official Blender 2.5 Alpha 2 release.

You must be logged in to upload images. Register

Discussion

52 Responses to “Rendering a Light Saber”
  1. Posts: 26

    Wow, really nice, but it looks sooooo complicated.

    #
    1
    Mar 9, 2010 at 9:20 pm
  2. Posts: 71

    I see your swartz is as big as mine hahaha.

    I love the light saber node tutorial. That is awesome :D

    #
    2
    Mar 9, 2010 at 9:52 pm
  3. Shiretoko
    Posts: 7

    You making slight mistakes is also a good part of eduaction, contrary to those “pseudo-perfect” tutors who talk as if they were omniscient just because they read their dull scripted tutorial lines.

    #
    3
    Mar 9, 2010 at 10:25 pm
  4. Shiretoko
    Posts: 7

    Forgot to mention, great tutorial btw :D

    #
    4
    Mar 9, 2010 at 10:29 pm
  5. comeinandburn
    Posts: 62

    thanks for the nodes tutorial! I never knew how to use the pass index.. super useful.

    #
    5
    Mar 9, 2010 at 11:57 pm
  6. Tobey
    Posts: 98

    The possibilities of compositing and splitting scenes into layers keep amazing me and although sometimes I find understanding all the node setups rather difficult, I enjoy tutorials like these very much. Also, the mistake you make, intentionally or not, help me remember the important settings which, when omitted, can cause trouble. I spotted your mistake in this tutorial right away and was really keen on watching how you find out later on :-D Thanks for this and more tuts on compositing and post-processing are welcome.

    #
    6
    Mar 10, 2010 at 6:54 am
  7. Nathan
    Posts: 2

    This is a very informative tutorial. Now I know a practical application for the render pass index. I had no idea what to do with it, but now that I’ve seen this tutorial, I have several ideas on how I can use this. Great tutorial!

    #
    7
    Mar 10, 2010 at 9:01 am
  8. Posts: 59

    Yeah, that looks like fun. Thanks for the good tutorial!

    #
    8
    Mar 10, 2010 at 10:05 am
  9. Solineoz
    Posts: 95

    Great little tut :) The pass index tip is awesome !

    #
    9
    Mar 10, 2010 at 11:48 am
  10. Allan
    Posts: 55

    Wow, this is so cool! Thanks for listening to my request! I appreciate it.

    I’m making a Jedi in 2.49b, how do I take him and put him in 2.5?

    Thanks Jonathan,

    Allan

    #
    10
    Mar 10, 2010 at 11:52 am
    • Posts: 2949

      You can actually open 2.49b files directly in 2.5. I would recommend unchecking the “Load UI” box on the left side when you open it, though, so as to preserve the 2.5 layout.

      #
      10.1
      Mar 10, 2010 at 12:41 pm
  11. Posts: 54

    Haha, I wish I had this tutorial last year :D

    #
    11
    Mar 10, 2010 at 12:05 pm
  12. anonqwerty
    Posts: 2

    Question to Jonathan Williamson: What is the difference between the pass index and the render layers?
    Thanks in advance.

    #
    12
    Mar 10, 2010 at 5:55 pm
    • Billy McGuffin
      Posts: 3

      Render layers allow for more customization and specificity. Pass index is great for when you just want to apply a filter to an object (or group of objects). There are some downsides to using pass index as it was used in this case, though: we used an alpha map (essentially thats what the ID Mask node does) and just blurred it as an image and added it on top of the original image. If we wanted to preserve the colors of the object we were blurring (if it had a texture, for instance), we’d probably use render layers, because we’d actually be blurring the image, and adding that on top. Hope that helps.

      #
      12.1
      Mar 10, 2010 at 7:18 pm
      • Tobey
        Posts: 98

        It surely does help. Thx :-)

        #
        12.1.1
        Mar 11, 2010 at 3:01 am
  13. Gregus Mihai
    Posts: 4

    thanks again for a nice tutorial :)

    #
    13
    Mar 11, 2010 at 9:50 am
  14. Spencer
    Posts: 4

    I have a stupid qustion when seating up node do you have to do it frame by frame or can you tansfer all the node to another frame

    #
    14
    Mar 12, 2010 at 7:52 pm
    • Billy McGuffin
      Posts: 3

      When you render out the animation, the nodes should be applied to every frame automatically.

      #
      14.1
      Mar 15, 2010 at 8:51 pm
  15. Spencer
    Posts: 4

    Thanky Billy McGuffin

    #
    15
    Mar 16, 2010 at 1:11 am
  16. gry planszowe
    Posts: 1

    Would you tell me where did you download your site template ?

    #
    16
    Apr 10, 2010 at 11:08 am
  17. Posts: 78

    That’s an interesting way to create the blade material; I’ve always used halos, and it’s much easier for me. Is there something wrong with using halos as a material instead of using the compositing nodes?

    #
    17
    Jun 11, 2010 at 6:51 am
  18. Adam
    Posts: 1

    Awesome tutorial! I already had my own method, which had a better looking result [via more nodes] but it was a tad tedious because I was using render layers. I never knew about pass index! Thanks for this knowledge

    #
    18
    Jul 24, 2010 at 10:47 pm
  19. Posts: 228

    nice one , … yes master .

    #
    19
    Aug 15, 2010 at 10:31 am
  20. Posts: 47

    Great tutorial, thanks.

    #
    20
    Aug 15, 2010 at 4:35 pm
  21. Stefano Corrado
    Posts: 9

    Hi Jonathan, I have a problem i’ve followed your tutorial 4 times step by step but each time the blade stays solid white in the Render even though i attached the hue and saturation to the composite node….=( so frustrating…. after four times.

    #
    21
    Sep 19, 2010 at 9:42 am
    • Posts: 2949

      Hi Stefano, it sounds like you missed connected the final editing node to the Composite node. Without that step your render will always come out as the original.

      -Jonathan

      #
      21.1
      Sep 19, 2010 at 10:54 am
      • Stefano Corrado
        Posts: 9

        I think I fixed the render problem! I didn’t have Do composite in the Scene Tab (F10) it’s in the anim tab like this.

        Do sequence

        Do composite
        Please let me know if that’s what the problem was since now it is rendering the glow :D

        #
        21.1.1
        Sep 20, 2010 at 6:30 am
  22. Stefano Corrado
    Posts: 9

    Will try again and see what happens.

    #
    22
    Sep 19, 2010 at 12:33 pm
  23. Stefano Corrado
    Posts: 9

    Nope even at the beginning the model isn’t even showing in the backdrop, and when i did it the last four times i did EVERYTHING step by step it showed perfectly in the backdrop but when i rendered it nothing just the hilt and a white stick and i tried numerous things and I did attach the hue and saturation to the composite node but I did notice that when i attached the Hue and Saturation to the Composite node the composite node would then detach from the render layer for some reason…. I have no idea why i’m having all these problems just to create a glow around a simple stick…. I’ll stick with halo’s instead then it’s too complicated for me to use Nodes.

    #
    23
    Sep 19, 2010 at 1:52 pm
    • Stefano Corrado
      Posts: 9

      Hello again Jonathan, I tried one more time with blender 2.49b this time although it still doesn’t work it shows as a white stick as usual also i’m having some trouble with the colour since it’s still pretty white I’ve taken a screenshot if there is anyway i can contact you please let me know in the meantime I will send you a link to the screenshot.

      Here are a few links just incase because I don’t want to keep spamming if one of the links don’t work =)

      http://i287.photobucket.com/albums/ll156/Dagon14/nodes.jpg

      #
      23.1
      Sep 19, 2010 at 3:49 pm
  24. Stefano Corrado
    Posts: 9

    and this is what it is like when i render it.

    Also when i go back into blender and load the file the viewers don’t show anything or the backdrop only sometimes when i click on a viewer then it comes and sometimes doesn’t come at all as far as i know?
    http://i287.photobucket.com/albums/ll156/Dagon14/nodes2.jpg

    http://i287.photobucket.com/albums/ll156/Dagon14/nodes3.jpg

    #
    24
    Sep 19, 2010 at 3:56 pm
  25. Draslin
    Posts: 1

    Am I missing something? When I hit SHIFT+A to add the blur node, there isn’t even a Filter sub group much less the blur node. I’m using the most recent version of blender. 2.55

    #
    25
    Dec 27, 2010 at 3:47 pm
  26. Strange0Range
    Posts: 1

    Great tutorial! It took me a couple times to get everything right, but now I’ve got a nice LEGO lightsaber all rendered and awesome looking. I’ve only got one problem, though. I’ve got a black, reflective surface under the saber, and while the glow is mostly fine, it’s not reflecting off the black surface. How can I fix this?

    #
    26
    Jan 6, 2011 at 10:10 am
  27. Posts: 4

    i have a related question, im trying to make a semi-transparent trashcan with a colored neon-glow. ive tried a few different ways to blur/glow the trans can but not the trash inside of it-all with varying degrees of success but also all dont quite give the effect needed. the trash always seems to be effected by something…heres a link to my .blend http://www.pasteall.org/blend/4892 you will see that the trash has no light…its the closest i can get with out using something other then blender (like psp to combine layers/mixing effects)anyone who would like may email me at [email protected]-which i set up just for this q

    #
    27
    Jan 21, 2011 at 2:33 pm
  28. Stefano Corrado
    Posts: 9

    Really Nice tutorial though it did get a bit complicated near the end though! especially the Invert part but I managed I rewatched this tutorial so I can base it off what you did except I didn’t make the core as blurry even though it sometimes is especially in Star Wars Video games but I’m going more for the movie style

    Video Game: http://ps2media.gamespy.com/ps2/image/article/611/611287/star-wars-episode-iii-revenge-of-the-sith-20050509022909787.jpg

    Movies: http://www.totalwallpapers.com/movies/wallpapers/general-grievous-vs-obi-wan-kenobi.jpg

    Mine: http://i54.tinypic.com/213gqjd.png

    #
    28
    Feb 13, 2011 at 8:13 am
  29. Posts: 7

    This is great and it helped me a lot!
    Now i just need to know how I can animate the blade when it goes out and everything will be perfect! :D

    #
    29
    Sep 22, 2011 at 3:49 am
    • Posts: 2949

      You could just animate the Transparency value to make it disappear :)

      -Jonathan

      #
      29.1
      Sep 22, 2011 at 8:37 am
      • Posts: 7

        thanks! I’ll definitely try to do that! :D

        #
        29.1.1
        Sep 26, 2011 at 10:56 am
  30. Posts: 120

    wow, this tutorial really help me a lot!
    keep up the good stuff:D

    -Bert

    #
    30
    Oct 23, 2011 at 11:59 am
  31. Austin
    Posts: 1
    #
    31
    Nov 27, 2011 at 10:16 am
  32. L Helge
    Posts: 2

    Great tutorial. At first, it was very intimidating to see all those node panels. But after some frustration, trial and error, I was able to pull it off.

    #
    32
    Dec 23, 2011 at 10:56 am
  33. 10010110
    Posts: 1

    cand be done on 2.6 cos the node types are missing, can u do a 2.6 vresion plz. great job by the way, but a tip 4 a 2.6 one, maby put a basic plan together so u can keep track of where u r up to. just an idea no offence intended

    #
    33
    Feb 8, 2012 at 1:49 am
  34. Langolier
    Posts: 1

    Great tutorial. It helps me very much for understanding compositing. I tryed to apply this for my own purposes… but… So I have a question. Instead of saber blade i use text “MY WEB SITE” for example. This text looks very nice with neon glowing effect, but i can’t save this with transparent background. I tryed to save in .png with rgba.. and received transparent background but without glowing effect. Help me please. What should i do to save Saber/text with neon glowing effect and on transparent background? Is it possible? i need it for my website.

    #
    34
    Apr 20, 2012 at 8:55 am
  35. M Yount
    Posts: 1

    I was able to do it on 2.49b. Had the following problems.

    1. light saber has to be two objects.
    2. assign both objects “Pass Index” in (F7) “Object and Links”.
    2. indexed node trees (F10) “Render Layers” “Inde” button.
    3. (F10) “Anim” “Do Composite” must be set for rendering.

    I see I need to do the update python scripts tutorial so I can update scripts and use 2.5.

    #
    35
    Apr 29, 2012 at 12:34 am
  36. C. Jones
    Posts: 1

    Hi, I am wondering how you would reflect the blade of the light saber. I have a robot holding a lightsaber and am wondering how to make the glow show in the reflections.

    Thanks

    #
    36
    Sep 17, 2012 at 4:57 pm
  37. Posts: 77

    Johnathan,

    I’ve got my model and I’ve rendered it in Cycles. This uses Blender internal. Is there a way to render the blade like this in Cycles?

    #
    37
    Nov 9, 2012 at 11:44 pm
  38. shadowbladeF22
    Posts: 3

    I have tried to follow this tutorial, but no matter what I do the end result is always inverted, the blur is white and the blade is the color that I add using the RGB value, any Ideas on what I am doing wrong?

    #
    38
    Dec 10, 2012 at 5:00 pm
  39. krejcaa
    Posts: 1

    hello guyz… I got the same problem as shadowbladef22 … At first everything was okay, then I added some lights and rendered it…and the result = inverted colors.. so have u solved it somehow please? thank you very much

    #
    39
    Dec 29, 2012 at 4:22 pm
    • shadowbladeF22
      Posts: 3

      Hey, I was able to fix my problem eventually, what I did was add a mask over the blur layer, so that you were seeing the white blade, and then behind it was the glowing effect. that wasn’t a perfect fix but it still looked good in the end. If you want i can post my nodes, but its a little complex because i used two different saber colors.

      #
      39.1
      Jan 17, 2013 at 3:02 pm

Leave a Comment

You must be logged in to post a comment.