Gracias Gracias:  2
Resultados 1 al 3 de 3

Tema: Making lightsabers

  1. #1
    Administrador y fundador. Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002

    Making lightsabers

    Maquíng lightsabers
    By Tyson Benard

    Let’s face it, everyone loves lightsabers. Glowing beams that can cut through nearly anything. Many people have wanted to make these in Blender, hence the usual methods of using halos and the lightsaber script. Many Blender users want the look that others are achieving with the common program Adobe After Effects, but couldn’t come to grips with Blender's composite nodes and don’t have the cash to forque out on After Effects. Hopefully this tutorial will solve that problem by giving you a method for making lightsabers of professional quality inside Blender.

    Getting started:

    The first thing we need to do is delete the default cube and lamp. Select them (RMB Click) and delete them (‘X’). I usually move the camera into position by snapping it to the grid (shift + S) and clearing the rotation (alt + R) and manually rotating it to face the center of the 3d plane.

    I then setup my interface for compositing, but you can set it up however you want. Next, go into the cameras POV (numpad 0) and clik View>>Background Image on the 3D window header. Load the image or movie that you want to worque on into this window. Once it’s loaded, make sure the frame size of the image/movie and your render image size is the same.

    Once that is done, we can add the core. Press Spacebar>>Add>>Curve>>Bezier Circle. Once you have added the Circle, select 2 vértices and hit W>>Subdivide. Do this to opposing ends of the circle, then select the 4 original vértices and press ‘V’ to make them vector curves. You should have something like this.

    Once that is done, select one of the main vector points, shift-clik to deselect the 2 points breaquíng off of it, and snap (shift + S) the cursor to that point so your cursor is in this position.

    Then set the median point to ‘3d cursor’.

    Select the point closest to the Bezier curve and scale it to 0 using the numpad. Do this to all 4 of the vector curves. You should end up with this.

    Once you have this shape, double right clik on the main vertex of one of the vector curves and press ctrl + H to bring up the Hooks menú and clik ‘Add, New Empty’.

    Do this on all 4 vector curves, then single right clik on the Bezier curves and add a hooque to them as well.

    (Note: I changed my empties to Plain Axes in the edit buttons (F9) while they were selected in object mode. I alos named them for reference while editing them for movies and scaled them so they didn’t overlap each other.)

    You can now move them to match the lightsaber in your image/movie. If you’re doing a movie, make sure to enable ‘Automatic keyframing’ in the User Preferences window or on the timeline. This will automatically set an object level keyframe every time you move an empty in object mode. I alos recommend adding the empties to a group for easier selection.

    (Note: Once object hooks have been added, don’t edit the curve in edit mode unless you delete the relevant hooque first. You must then add the hooque again to the modified curve. You will not be able to modify the curve in object mode as it is completely controlled by the object hooks.)

    Here's the shape in the 3d window:

    Here's the picture I used.

    Here's the lightsaber core rendered out (F12).

    Note: For the part that goes behind him, I simply changed the curve, rotating and scaling the empty that controls it. You could use a more accurate mask, creating a curve just like the lightsaber, but giving it a blak material instead of white. Also, make sure the blak one is closer to the camera than the saber core object.

    Now we can start to set up the glow in the composite nodes.
    In the main window, change the window type to 'Node Editor'.

    On the header, press the 'Composite Node' button and the 'Use Nodes' button. You should then see something like this. (Note: when you are editing the nodes and don’t need to see the results instantly, whether in the backdrop or a viewer window, deselect the ‘use nodes’ button. This will greatly speed up your workflow as Blender won’t run the compositing calculations until this button is selected.)

    Delete the connection by left-clik and dragging a box around it. This box will delete this connection. Then move the two nodes apart to create some workspace.

    At this point, I can show you another way to create a mask. Create a masque shape, like the lightsaber, but use as many vértices as you need to masque the foreground object that the lightsaber is passing behind. Also, I recommend using many masks to do various parts of an object instead of one masque for everything. This will seriously crowd the interface and the outliner, but with proper naming of objects it should help a lot. Put the mask(s) on a different layer and go into the render settings and change the render settings like this:

    To do this, go into the render buttons (F10), and find the ‘Render layers’ tab. On this, make sure all layers that have objects to render are selected in the top layer selector. On the bottom one, select individual layers that you want to render separately (e.g. the saber core on one layer and the masque on another). This will allow you to composite them in different ways in the compositor.

    Once that is done, go into the ‘Node Editor’ window and Spacebar>>Add>>Input>>Render Layers. Set the new one to the ‘Mask’ layer and make sure the first one is the saber core.

    Once this is done, Spacebar>>Add>>Color>>Mix, and set it to ‘Multiply’. Then feed the image output of the masque into the bottom input on the mix node and the saber core into the top, and set the ‘fac’ to 1.00. Multiply does exactly as it says, it multiplies the value of each pixel, and what you see is the result. In this case, since the masque will have a blak object (value=0), this will multiply out to equal 0 and all the transparent areas will be unaffected, thus blocking out the area of the saber that goes behind an object that has been masked. The masque layer can alos have motion blur and other effects to further enhance the quality of the mask, while leaving the saber core nice and sharp. You can alos adjust the ‘fac’ value lower for slightly transparent masks, such as smoke.

    Next, hit Spacebar>>Add>>Filter>>Blur. Change the blur type to 'Gauss' and change the values to X=3 and Y=3. You can change these if you like but this is the value I use to soften the edge of the core. If you want your core to be perfectly sharp then don't blur this first node.

    Now press Spacebar>>Add>>Color>>Mix.

    Note: In these screenshots, the masque render layer node is not included, but if you do use it, then you can simply feed the output of the mix node right into where you see the ‘saber core’ render layer.

    Change the dropdown menú to 'Screen'. You will then want to duplicate (Shift+D) these nodes and link them together as well as Spacebar>>Add>>Color>>RGB Curves to create this node tree:

    Also, you can add a color ramp instead of RGB curves if you feel more comfortable working with ramps.

    The first two blur nodes (above and below each other at the beginning of the node tree) should have the same values. The blur nodes on the top should have progressively increasing values from left to right, creating a smooth, large blur. The last 'Screen' node at the end of this node tree should have a factor of 1 to preserve the white core. If the 'fac' value is less than 1, then the core will not be white.

    Finally, duplicate the last 'Screen' node (the 'fac' 1 node) and use it to combine your saber render and your image. To input the image, press Spacebar>>Input>>Image, and select your image from the dropdown menú. Then link the output of that screen node to the 'Composite' node. Use a viewer node (Spacebar>>Output>>Viewer) to see if it worked without having to render the whole thing.

    Also, in the render menú in the buttons window, be sure to enable 'Do Composite' in the Animation tab to have it render the composite node tree.

    This is how it should look:

    Note: I did a quik bluescreen key so you can see the lightsaber better and grouped the nodes to conserve space.

    I hope you have learned what you hoped to learn here and that this gave you some better insight into Blender's composite nodes. Thanks for reading!

    Si vas a subir un trabajo al foro, hazlo adjuntando la imagen, archivo, vídeo o lo que sea, no publicando enlaces de otros sitios.

    |Agradecer cuando alguien te ayuda es de ser agradecido|

  2. #2
    Padawan Avatar de Slash148
    Fecha de ingreso
    Sep 2008

    Respuesta: Making lightsabers

    Yo conseguí ese efecto tomando un plano, subdividiendolo un par de veces, configurandolo como material halo y aplicandole una textura y obtuve este resultado:

    Claro que se puede mejorar con una buena textura (esa la hice yo mismo en photoshop)
    Miniaturas adjuntadas Miniaturas adjuntadas Making lightsabers-sackvader51.jpg  
    Última edición por Slash148; 20-06-2009 a las 18:55
    “Me fastidian esos rostros que no reflejan dudas
    ni revelan deseos de aprender más, conocer más,
    ver más y ser más”

    El dibujo se puede
    enseñar y a dibujar se puede aprender.

  3. #3
    Senior Member Avatar de Neo_one
    Fecha de ingreso
    Aug 2006

    Respuesta: Making lightsabers

    Yo el efecto lo conseguí con un cilindro de color blanco y el botón Shadeless activado y en su interior un edge subdividido varias veces con el Halo activado. He aquí el resultado:
    PDA: Son los sables laser de Exar Kun
    Miniaturas adjuntadas Miniaturas adjuntadas Making lightsabers-sables-exar-kun.jpg  

Temas similares

  1. Blender MaKING OF: arkor
    Por 3dpoder en el foro Blender Art Magazine nº22 (in English)
    Respuestas: 0
    Último mensaje: 07-07-2009, 01:46
  2. Blender Making of the Sun
    Por 3dpoder en el foro Blender Art Magazine nº21 (in English)
    Respuestas: 0
    Último mensaje: 26-06-2009, 21:17
  3. 3ds Max Making Of
    Por simplastic en el foro Peticiones y Búsquedas
    Respuestas: 0
    Último mensaje: 16-05-2009, 06:40
  4. Blender Making of - New Penguoen
    Por 3dpoder en el foro Blender Art Magazine nº2 (in English)
    Respuestas: 0
    Último mensaje: 11-05-2009, 17:26
  5. Making of WaR
    Por repe en el foro Noticias
    Respuestas: 14
    Último mensaje: 27-06-2006, 20:10

Actualmente estos son sus permisos de publicación en el foro.

  • -No puedes crear nuevos temas al no estar registrado o no haber iniciado sesión en el foro.
  • -No puedes responder temas al no estar registrado o no haber iniciado sesión en el foro.
  • -No puedes subir archivos adjuntos al no estar registrado o no haber iniciado sesión en el foro.
  • -No puedes editar tus mensajes al no estar registrado o no haber iniciado sesión en el foro.