Gracias Gracias:  1
Resultados 1 al 1 de 1

Tema: Tracks Creator

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

    Tracks Creator

    Tracks Creator
    By Philippe ROUBAL

    Some days ago, I have found and excellent video tutorial about making realistic grass, written by Andrew Price on His materials and lighting setup are really awesome and I have enjoyed playing with them. Last year, I had done some countryside scenes with animated grass, but I had used a completely different method to animate the grass, based on a copy of the ground mesh hidden underneath the ground surface, animated by a displacement texture. I mean that the hair particles were animated by the moving mesh, not directly by the texture itself.

    Andrew’s method to simulate the wind and animate the grass is based on a moving texture named Wind and driven by an Empty. This Wind texture is a procedural Marble texture applied to the grass material, but disabled in the texture panel. A Field is applied to the Empty. The Field is set to Texture and RGB and uses the Wind texture as reference.

    After reading Andrew’s tutorial, the first question that came to my mind was : great, we have nice grass, but now... how to mow the lawn in an animation? After some searches and experiments, I found that the same method was usable using hand drawn textures or animated textures. Almost every effect can be achieved, like the trak of a lawn mower, a car, a predator running in high weeds and everything else you could imagine.

    Tracks Creator-tutorial-tracks-creator_img_0.jpg

    A long time ago, I had made a tutorial about foot prints on the sand. I decided to build a setup allowing to create easily all kinds of tracks and prints we could need, and usable on almost all natural materials like grass, sand, soil, mud, snow, paint or even wet foot prints on a wood floor : the Tracks Creator. But before animating, lets study an example with a still texture.

    Tracks Creator-tutorial-tracks-creator_img_1.jpg

    For displacement mapping and alos for simple Bump or RGB nor Map, it is often easier to select Object in the Map Input panel, and use an Empty as object reference, to allow the perfect placement of the texture. When using a Displacement Modifier, it allows to move the texture by hand by moving the Empty, and the effect is visible in real time in the 3D window. As only UV mapped textures are visible in the 3D window, for Bump maps or Nor Maps, you will have to render or use the Preview [Shift+P]render window.

    Textures moved by an object or an empty used as reference have plenty of uses. In GIMP or any other image editor, you can create textures with specific patterns to achieve all kinds of interesting effects. My short animation Crazy boat is an other example of the use of a moving texture applied to the water material, to create a hole in the surface of the sea under the boat.

    In my lawn mower animation, I have used a hand drawn texture animated by an empty to define an area where the grass blades (hair particles) are pushed by the texture under the lawn mower. In fact, the lawn mower is parented to the same empty used to drive the texture. The texture is added to the Ground plane material. Note that you could alos drive your texture using directly the Lawn mower object, but using an empty is handy if you want to change or resize the Lawn mower model.

    As we will use RGB as Wind parameter for the Field, after noticing that the grass behaviour was not the one I expected when using a greyscale texture I experimented with other color.

    After some tests, I decided to use a Blue on Grey texture. The Grey color is set to (R=127, G=127, B=127) or (R=128, G=128, B=128). This Grey color is neutral and doesn’t affect the particles. Using a Blue color, I got the grass blades to be pushed in the direction of the lawn mower moving. Below, the textures created to achieve the effects shown.

    Tracks Creator-tutorial-tracks-creator_img_2.jpg

    The texture is set to Extend mode. This allows to extend the color of the texture in all directions and you will get an infinite trak in the direction where the Blue color is in contact with the border of the texture.

    Note that you can control visually the effect of the texture in top view, and resize the texture to adjust the width of the mower trak by resizing the Empty. Use [S] Key without any axis specification to avoid diagonal distorsion ! You may notice that the effect of resizing is inverted : your texture increases when you reduce the size of the empty.

    Adjusting the Strength parameter of the Field, (you can alos adjust the Contrast parameter of the texture) I have used the value allowing the shorter grass. I stopped just before the grass totally disappear, for more realisms. This allow to keep some uncut grass blades.

    Now, we need to get shortened grass on the trak of lawn mower. Using Weight Painting on the ground mesh allows to get various lengths for the grass in different areas, but animation of the weight doesn’t seems to be possible. Selecting Particle Mode in the 3D view and setting the particles system to Editable allows to vary manually the length of the hair particles where you want, usin the Comb tools, but this feature is not animatable as well.

    The old particle system available in former releases of Blender allowed to control the length of the Static Particles (name of hair particles in those old versións) using a greyscale texture. I haven’t found yet such a function in Blender v2.48a, but maybe one of the other Field options allows it. Until I’ll find a better way, I used another method to get the short grass after the lawn mower passed by :

    The idea is simple : I duplicated the ground plane and set the copy to not render the emitter. On this second ground surface, using an other particle system, I make grow short grass. It is always present but only visible in the area where the lawn mower has pushed down the long grass blades ! it is not necessary to keep the same surface as the main ground plane, because you only need to fill a narrow lane on the trak of the lawn mower. After reducing the surface, you can reduce the amount of hair particles created on this surface, otherwize you’ll get very thik grass on this lane. I have used a different texture setup in the Colorband, because cut grass is more green than long blades.

    In the example shown until now, we have used only static textures (simple images). You will certainly want to create more complex effects, with a Jeep car driving through the fields or a predator running in the high weeds, a Bigfoot walking in the snow, or the invisible dead Lady of the blak lake leaving wet foot prints on the pontoon. And of course following a paths that will be all except straight !

    At this point, you will need an animated texture. The Tracks Creator setup will help you in this task, and it will be almost as simple as pushing a button (I said almost !). You can render the animated texture as an AVI file or a sequence of images. I advise you to use a sequence of images instead of a video, because videos don’t allow the Displacement Modifier to worque in real time.

    Open the Tracks-Creator-v2.blend file and follow the instructions in the Text window. There are 2 screens available :

    Screen 1 : Animation -Screen 2 : Compositing.

    In the compositing screen you can adjust the level of blur of your animated texture.

    There is a different setup on each layer used. This will allow you to create various animated tracks. Obviously, after playing a bit with the Blend file, you will be able to create your own tracks, to match your needs.

    The animated texture that will be created by this setup will be usable mainly in 3 manners :

    1 -They will allow you to control the behaviour of the grass made with hair particles, like shown in the previous examples and in Andrew’s tutorial, but with complex curved paths.

    2 -They can be used with the Displacement Modifier to create prints in sand, soil, mud and snow. For that you will have to use a highly subdivided ground mesh. The resolution of the textures will have to be high to render details on a large surface. The example below has been done with a surface of virtual desert measuring 18 meters x 18 meters, made of around 800000 quad faces. Only a small part is visible and it is not always necessary to subdivide more than you will show. Using a smaller surface will allow more density and details in your subdivided ground mesh, allowing very close-up views when needed.

    3 -They can be used as a Bump Map texture to fake the relief if you don’t need real displacement or if the scene is too heavy for your computer with real displacement. If you can convert your sequence of images in a sequence of RGB Normal Maps, it will be even better !

    Tracks Creator-tutorial-tracks-creator_img_3.jpg

    For your first contact with the Blend file, select a layer and play the animation by [Alt+A] or with the controls in the timeline bar.

    In the Blend file, you will find :

    - Tracks in grass :

    Layer 1 : Lawn-Mower trak in grass.

    Layer 2 : Car tracks in grass.

    Layer 3 : Predator trak in grass.

    -Prints in sand, paint, soil, mud or snow

    Layer 4 : Cat prints.

    Layer 5 : Velociraptor prints (add bloody prints to the list).

    Layer 6 : Jeep Tyres tracks.

    Layer 7 : Caterpillar tracks.

    Layer 8 : Dotted line and animated airplane to be used over a world map in your travel films or adventure movies (like Indiana Jones).

    Layer 11 : Human foot prints without shoes.

    Layer 12 : Human foot with shoes.

    Some tracks have two curves : one is for the prints, and one is for the masque : it is helpfull toedit the masque at curves crossings.

    Foot prints are made of single prints parented to a long mesh with a Curve Modifier. Themesh is set to DupliFaces. So, if you want more space between steps, just edit the supportmesh in Edit mode : Size X. If you want bigger or smaller prints, edit the Prints.

    Caterpillars, Car Tyres tracks and the blue tracks used in grass are made of one simple meshwith a repeated pattern. If you want more or less space between the two tracks, edit the tracksmesh.

    -Choose the trak color by modifying its material.

    -Chose the background color by changing the background plane or using the world color.

    -In the Screen selector, use the Node compositor (Screen 2 -Compositing) to adjust the levelof blur of the generated masque (Blur filter).

    -Adjust your rendering parameters to match the desired resolution for your animated texture.

    -Create your own path by editing the curve points.

    -Use the Loc X parameter of the choosen trak to move each trak along the curve.

    -Parent your vehicle or predator to the Empty used as driver which is itself parented to the tipof the trak (vertex parented to 3 vértices at a tip of the mesh).

    After rendering your animated texture as a sequence of image, inport it in your project andapply it to your ground material (the best result is with Global or Object for the Mapreference, with the texture set to Clip). You may have to resize the setup in top view.

    In a second time, import in your project all the objects of the layer used to create youranimated texture. Make a group before exporting, it makes things easier. I haven’t madegroups, because all grouped objects are shown in green, and it is not always fine whenworking in the 3D view. Put the imported objects on a layer that you will hide at rendering time). There is an empty moving with the animated masque : Use it as parent for your vehicle, in order to make it follow the textured trak !

    The ShrinkWrap modifier is usable with curves, so you can put your trak curve over your terrain, and when applying the ShrinkWrap modifier, the curves falls on your modelled ground ! You can move the empty used as driver in the directionof Z axis, and parent your vehicle to it ! This will allow your vehicle to follow perfectly the contour of the ground mesh.

    You will only have to adjust the X and Y axis to get visually a believable behaviour for your vehicle.

    You can use the masque mesh to drive your car with more accuracy, by following my tutorial about automated car animation. The Masque mesh is usable like the Arrow mesh in this tutorial.

    Tracks Creator-tutorial-tracks-creator_img_4.jpg

    I hope that this tutorial and setup will be understandable and useful. All necessary files can be found in the Blender section of my website. Feel free to tell me if you noticed errors, missing informations or if you have found a better way of doing this kind of worque ! If you have ideas to create other kinds of tracks, I'm open to suggestions. Thanque you for reading !

    By Philippe ROUBAL

    4x4 Autodrive system and Tracks Creator

    Miniaturas adjuntadas Miniaturas adjuntadas Tracks Creator-tutorial-tracks-creator_img_0.jpg   Tracks Creator-tutorial-tracks-creator_img_3.jpg   Tracks Creator-tutorial-tracks-creator_img_4.jpg  
    Archivos adjuntados Archivos adjuntados
    Última edición por 3dpoder; 03-11-2009 a las 12:30
    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|

Temas similares

  1. Respuestas: 9
    Último mensaje: 22-10-2015, 06:01
  2. 3ds Max BOUJOU crear camara con Target Tracks
    Por Nessin en el foro Postproducción
    Respuestas: 3
    Último mensaje: 30-01-2010, 08:55
  3. Blender Tracks Creator
    Por 3dpoder en el foro Blender Art Magazine nº22 (in English)
    Respuestas: 0
    Último mensaje: 07-07-2009, 02:38
  4. Duda en Boujou Target tracks o Locators
    Por Equi1234 en el foro Postproducción
    Respuestas: 2
    Último mensaje: 21-05-2008, 08:49
  5. rpc creator
    Por J-J en el foro Infografía General
    Respuestas: 0
    Último mensaje: 04-06-2003, 02:59

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.