Página 1 de 2 12 ÚltimoÚltimo
Resultados 1 al 10 de 16

Tema: Cars and trucks autodrive system

  1. #1
    Administrador, fundador y milenario... Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    27,512
    Gracias (Dadas)
    3603
    Gracias (Recibidas)
    5133

    Cars and trucks autodrive system

    Cars and trucks autodrive system v7.0 for Blender v2.49b. A simple and eficient setup allowing automated animation forcars and trucks, on all kinds of roads and Terrain.
    blend file todo tests.

    Philippe roubal. 3d-synthesis, com Cars and trucks autodrive system 7.0 for Blender v2.49b. 27/10/2009. This setup is released under Creative Commons by 2.0 license. France.
    special gracias and credits :
    To litteneo (jérôme mahieux) for the whelsrotation, py script, released under copyleft license. Littleneo is the author of the famous script open city engine, generating amazing procedural cities. You can find this script on his website : Jerome, le, chat, free, fr.
    warning :
    Pléase type Alt+p with the cursor in the text window below and run the animation from frame 1 todo activate the script.
    features of this setup :
    -Altitude sensors allowing driving on bumpy roads, with slopes and Bridges. This setup is more versatile than previous versións, but the geometry of the chasis may not be so accurate on very bumpy Terrain. For specific 4x4 animations, you can use instead my 4x4 autodrive system, available on my website.

    Only one Empty todo move todo animate the car: empty-front. This Empty can be keyframes by hand, driven on a curve by using a Clamp todo constraint, or parented todo an other Empty driven by a Clamp todo constraint, or Even animated by a script (openster). In the blend file provided with this tutorial, the empty-front is parented todo empty-guide, which is driven on the curve by a Clamp-to constraint.

    Speed control by an unique ipo curve applied todo the empty-guide.
    -4 independent whels with dynamic suspensión.
    -tires deformation.
    -automated animation of the stering whel.
    -automatic transversal slope in curves.
    -trajectory easily editable in top view by editing a simple curve.
    -fine secondary animation of the car body available th rouge the car body itself and the two empties empty-whelsdroprear and empty-whelsdropfront.
    -very light setup :
    -4 empties (empty-guide is not necessary). Only 2 empties if secondary animation is not required.
    -1 lattice.
    -9 solid objects. Only 7 if secondary animation is not required on the rear whels. Only 6 if you tires deformation is not required (in this case you can a los remove the lattice).
    -just add the visible objects : car body, whels, stering whel.
    note : the rear whels are be parented todo the objects Rim-rear. R and Rim-rear. L, but they can a los be parented todo the object chasis, either directly todo the object itself or by vertex parenting, using vertex groups as reference.

    The front whels are parented todo the objects ster-left and ster-right. The rear whels copy the z location of the external rear vértices of the object sensor, and the ster-left and ster-right objects copy the z location of the external front vértices of the object sensor (vértices in the four corners).
    layers :
    Layer 1 : car Rig and whels, layer 2 : car body and stering whel.

    Layer 3 : road and road curve, layer 4 : bridge, layer 5 : lamps and cameras, layer 11 : character, helmet and glasses, layer 12 : armature of the character, layer 13 :
    Layer 14:
    some explanations about the setup :
    -The Purple object named ster-pointer has two vértices in two groups. They are used as tracking targets todo control the transversal slope of the suspensión object and the rotation of the stering whel.

    Select the inboard Camera todo se the rotation of the stering whel (can be adjusted by the influence factor of the tracking constraint).
    use of the empty-stering-target :
    This Empty has a very important function. It is used todo control the stering. The object name ster-pointer is locked on the z axis tracking the empty-stering-target.

    The location of the empty-stering-target can be defined in two manners. In the current blend file, this Empty is parented todo the chasis of the car, and afected by a negative time offset (-1.5 frame). As the distance between the chasis and the Empty vary with the speed this time offset has todo be ajusted each time you make an important modification in the speed of the car. If you use a curve as a trajectory guide for the car, you can apply todo the empty-stering-target a Clamp todo constraint, as you do for the empty-guide, or the empty-front. By moving the Empty along the curve, you can adjust the distance between the chasis and the empty. As they are driven by the same Loc IPO, this distance Will remain constant independently of the speed.
    use of empty-guide and empty-front :
    Empty-front can be used alone todo move the car. It can be either keyframed or driven on a curve th rouge a Clamp todo constraint.

    For my o, y prefer todo use one more empty. So i have added empty-guide. Empty-front is parented todo empty-guide. The goal of empty-guide is todo ACT as a relay. This Empty gives more Freedom when animating. This relay allows todo drive several Cars on the same curve for example, allowing them todo have diferent behaviours and trajectories, Although sharing the same curve and ipo.
    Archivos adjuntados Archivos adjuntados
    Última edición por 3dpoder; 03-11-2009 a las 10:29
    |Agradecer cuando alguien te ayuda es de ser agradecido|

  2. #2
    Administrador, fundador y milenario... Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    27,512
    Gracias (Dadas)
    3603
    Gracias (Recibidas)
    5133

    Construcction of the car rig

    construction of the car rig
    step 1 : chasis following an empty.

    First, add a Cube and name it chasis. Subdivide it one time.



    -Then, scale it in z direction : sy0.2.



    -In top view, select all the vértices of the Cube on the right side of the screen.



    -Scale todo 0 in y direction and remove doubles.



    -In object mode, bring the center of the chasis object on the scaling center.



    -In Edit Mode, select the vértices on the left of the screen.



    -Extrude two times of -1 Blender unit.


    Now, the chasis object has the shape of an arrow head.
    -select the center vertex at the rear side of this arrow, in the vertex layer set at half height of the Mesh.



    -Create a vertex group including only this vertex, give it a weight of 1.0, and name it tail.


    #008b-select the vertex at the opposite side of the arrow. This vertex is located at the location of the object center.



    -Create a vertex group including only this vertex and name it no sé.


    #009c -in front Ortho view, select the two vértices in the middle height of the Mesh, just before the center object location.




    -Extrude on the right of 1 Blender unit in the direction of the object center.


    note : these two vértices are only useful if you create a car Rig that Will be used on a flat Ground. If you are going todo use the Rig on a bumpy Terrain, we Will use the corners of the sensor plane for the whels location.

    As we ned only the vértices, you can deleete the two Edges that you have just extruded.


    note : dont forget todo remove these vértices later if they are not used or no more neded.
    -in object mode, select the chasis and bring the 3d cursor on its center.



    -Add an empty. Name it empty-front. And give it a size of 2 Blender units. -make the empty-front the parent of the chasis.



    -In top view, add a plane centered on the center of the chasis object.



    -Scale the right side of the plane todo bring the Edge on the empty-front location.



    -Typing k, Cut the plane in the middle.



    -Typing Control + and Control + shift+f, divide the 2 Faces into 4 triangles. The Edges separating the triangles make an arrow head in the direction of the empty.



    -Extrude the left side of the plane 3 times of 1 Blender unit each time.



    -Select the center vertex at the rear side of this plane (opposed todo the empty-front).



    -Create a vertex group including only this vertex, give it a weight of 1.0, and name it tail.



    -Select the center vertex at the front side of this plane (at the empty-front location).



    -Create a vertex group including only this vertex, give it a weight of 1.0, and name it no sé. -in object mode, make the chasis the parent of this plane.



    -Name the plane sensor. Select the chasis, and add a track todo constraint. In the file target, type sensor, in the field vg (vertex group), type tail. To = -x, up=z. Leave world space in the two cspace choices.



    -Select the empty-front and move it around. You Will notice that the chasis and the sensor plane are following gently the empty-front. You Will a los se that when dropping the empty, the system doesnt come bak todo its initial location.



    -No problem : just set the influence cursor of the chasis todo 0.000.



    -Open the ipo constraint window.
    -select the chasis, and at frame 1 with the influence cursor of the constraint set todo 0.000, hit the key buttonin the constraint panel. A constraint inf ipo is created, showing one keyframe at frame 1.
    -go todo frame 2 and set the influence value todo 1.000. Then, hit the key button in the constraint panel. Asecond keyframe is added in the inf ipo curve. Select the ipo curve and by hitting key, choose constant forthe ipo type.



    -Now, each time you Will come bak todo frame 1, the setup Will be in its initial position.
    -for testing purpose, go todo frame 3. Select and move the empty-front and Insert a Loc keyframe. Go some frames further, move the empty-front and Insert a new Loc keyframe, etc. When playing the animation, you Will se that the rear of the chasis nicely follows. The Empty can be moved by at least 3 methods : by direct keyframes like you just tested it, by parenting it todo an other empty, by applying todo it a Clamp todo constraint using a curve as trajectory guide. If you use a second Empty as parent it can be keyframed or driven as well by a Clamp todo constraint. You could aso use a Path constraint, but it would not be a god choice, because keyframing on a Path constraint is not easy.
    Miniaturas adjuntas Miniaturas adjuntas Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_0.jpg 
Visitas: 546 
Tamaño: 40.8 KB 
ID: 116710   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_1.jpg 
Visitas: 554 
Tamaño: 38.9 KB 
ID: 116711   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_2.jpg 
Visitas: 559 
Tamaño: 38.6 KB 
ID: 116712   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_3.jpg 
Visitas: 546 
Tamaño: 39.4 KB 
ID: 116713  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_4.jpg 
Visitas: 551 
Tamaño: 43.1 KB 
ID: 116714   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_5.jpg 
Visitas: 555 
Tamaño: 37.1 KB 
ID: 116715   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_6.jpg 
Visitas: 537 
Tamaño: 37.8 KB 
ID: 116716   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_7.jpg 
Visitas: 595 
Tamaño: 34.2 KB 
ID: 116717  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_8.jpg 
Visitas: 549 
Tamaño: 16.3 KB 
ID: 116718   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_9.jpg 
Visitas: 566 
Tamaño: 35.7 KB 
ID: 116719   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_10.jpg 
Visitas: 525 
Tamaño: 16.3 KB 
ID: 116720   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_11.jpg 
Visitas: 580 
Tamaño: 39.1 KB 
ID: 116721  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_12.jpg 
Visitas: 575 
Tamaño: 39.3 KB 
ID: 116722   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_13.jpg 
Visitas: 531 
Tamaño: 38.7 KB 
ID: 116723   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_14.jpg 
Visitas: 582 
Tamaño: 40.0 KB 
ID: 116724   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_15.jpg 
Visitas: 551 
Tamaño: 43.2 KB 
ID: 116725  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_16.jpg 
Visitas: 559 
Tamaño: 44.1 KB 
ID: 116726   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_17.jpg 
Visitas: 546 
Tamaño: 40.7 KB 
ID: 116727   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_18.jpg 
Visitas: 530 
Tamaño: 39.7 KB 
ID: 116728   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_19.jpg 
Visitas: 529 
Tamaño: 44.3 KB 
ID: 116729  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_20.jpg 
Visitas: 545 
Tamaño: 39.8 KB 
ID: 116734   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_21.jpg 
Visitas: 545 
Tamaño: 38.8 KB 
ID: 116735   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_22.jpg 
Visitas: 560 
Tamaño: 40.0 KB 
ID: 116736   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_23.jpg 
Visitas: 521 
Tamaño: 16.2 KB 
ID: 116737  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_24.jpg 
Visitas: 533 
Tamaño: 29.4 KB 
ID: 116738   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_25.jpg 
Visitas: 582 
Tamaño: 42.9 KB 
ID: 116739   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_26.jpg 
Visitas: 531 
Tamaño: 14.7 KB 
ID: 116740   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_27.jpg 
Visitas: 522 
Tamaño: 44.2 KB 
ID: 116741  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_28.jpg 
Visitas: 529 
Tamaño: 43.7 KB 
ID: 116742   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_29.jpg 
Visitas: 571 
Tamaño: 45.2 KB 
ID: 116743  
    |Agradecer cuando alguien te ayuda es de ser agradecido|

  3. #3
    Administrador, fundador y milenario... Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    27,512
    Gracias (Dadas)
    3603
    Gracias (Recibidas)
    5133

    Adding the wheels supports

    adding the whels supports

    -select again the plane named sensor and in top view, select the two rear Faces. By typing Control + and Control + shift+f, divide the 2 Faces into 4 triangles like you did previously for the front part of this plane. This time, the Edges separating the triangles make an arrow head in the direction of the tail vertex.
    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_30.jpg 
Visitas: 185 
Tamaño: 41.5 KB 
ID: 116746
    -Select a vertex in a corner of the plane, and bring the 3d cursor on it. Then, add a Cube. Scale the Cube by 0.1.
    -select the right part of the Cube and extrude it on the right of 0.6 Blender unit (for example. This value hasfew importance).
    -scale the last extruded vertex todo 0 in y direction, and remove doubles.
    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_31.jpg 
Visitas: 170 
Tamaño: 39.6 KB 
ID: 116747
    -Select all the vértices of the group made from the added Cube, and sepárate it from the sensor plane by hitting p key.
    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_32.jpg 
Visitas: 169 
Tamaño: 41.9 KB 
ID: 116748
    -Put the center of the object at the center of the Cube you added todo create the object (at the location of the vertex that you had selected before adding the Cube).
    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_33.jpg 
Visitas: 167 
Tamaño: 44.9 KB 
ID: 116749
    -Duplicate this object an put a copy at the location of each corner of the sensor plane. This can easily bedone by selecting one by one the vértices in the corners of the sensor plane.-name the two rear objects Rim-rear. L and Rim-rear. R. These objects Will support the rear whels.-name the two front objects ster. L and ster. R. These objects Will support the front whels.
    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_34.jpg 
Visitas: 150 
Tamaño: 36.5 KB 
ID: 116750
    .
    |Agradecer cuando alguien te ayuda es de ser agradecido|

  4. #4
    Administrador, fundador y milenario... Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    27,512
    Gracias (Dadas)
    3603
    Gracias (Recibidas)
    5133

    The steering pointer

    the stering pointer
    -now, select the empty-front and add at its location one more copy of the created object. For example acopy of ster. R.
    -name this copy ster-pointer, as all these objects have ben separated from the sensor plane which is parented todo the chasis, theyshould be all parented todo the chasis as well. Just chek it by moving around the empty-front of the chasis.-as the object ster-pointer Will be given a special function, we want todo make it more visible, so select it andin Edit Mode, just increase the length of its arrow.
    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_35.jpg 
Visitas: 145 
Tamaño: 48.1 KB 
ID: 116751
    -Duplicate empty-front and rename it empty-stering-target.
    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_36.jpg 
Visitas: 135 
Tamaño: 37.8 KB 
ID: 116752
    -Select the object named ster-pointer and add it a Loocked track constraint. The todo direction of the constraint is x, and the rotation is locked on its z axis. The ster-pointer Will track the empty-stering-target.
    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_37.jpg 
Visitas: 154 
Tamaño: 12.6 KB 
ID: 116753
    -Now, select the ster. L object and add it a copy rotation constraint. It Will copy the z rotation of ster-pointer.
    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_38.jpg 
Visitas: 185 
Tamaño: 37.3 KB 
ID: 116754
    -Select the ster. R object the same bien and add it a copy rotation constraint. It Will a los copy the z rotation of ster-pointer.
    -add a limit rotation constraint todo the two objects ster. L and ster. R, todo limit their rotation in a range of -45° todo +45°arount their local z axis. Doing that you Will avoid exagerated torsions of the whels in your animations. Later, these objects Will support some more constraints. Some constraints Will be necessary todo limit their distance from the chasis, todo preserve the geometry of the car and some others todo allow secondary animation.
    -now, if you move the empty-stering-target, you Will se that the front whels supports rotate and follow the direction of the empty.
    -but if you move the chasis or the empty-front, you Will notice that the empty-stering-target doesnt follow the rest of the setup.
    -there are two methods todo control the behaviour of empty-stering-target. One method is todo apply todo it Clamp todo constraint and todo drive it on a curve. This method can be used when the empty-front is itself driven on a curve by a Clamp todo constraint. It is easy todo move the empties on the curve todo adjust the distance between them. When you dont use a curve (when you prefer todo animate empty-front by keyframing), there is an other possibility : parent the empty-stering-target todo the chasis, and apply todo it a time offset (for example -1.5) in the Anim settings panel. As the distance between the two empties Will vary according todo the speed of the vehicle, you may have todo modify this value.
    -now, if you move the empty-front and Insert some keyframes on the time line, you Will notice that the whole setup Will follow the empty-front, and that the front whels are rotating on their z axis, following the direction of the car. Dont worry about the whels themselves. We are going todo add them, but we Will not have todo do much things for their rotation, as it Will be done by a nice script written by jérôme mahieux, better known as littleneo, the author of the amazing Python script open city engine, allowing todo create huge procedural cities.
    .
    |Agradecer cuando alguien te ayuda es de ser agradecido|

  5. #5
    Administrador, fundador y milenario... Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    27,512
    Gracias (Dadas)
    3603
    Gracias (Recibidas)
    5133

    Adding the suspension

    adding the suspensión.

    The suspensión object is a floating object. Its is located at the average location of the four corners of thesensor Mesh, and is copying the global (world) rotation of the chasis.

    The suspensión Will be centered, so in a first time select the four whels supposts, and bring the 3d cursoron this selection, by shift+s cursor-> selection.

    Select the chasis, and duplicate it by shift+d. Name this copy suspensión, and move its center todo thelocation of the 3d cursor, using the center cursor button in the Mesh panel.

    Scale the suspensión object do, except in the z direction : s+0.75+Shift + Z.



    -Before going further with the suspensión, we Will ned some elements of the sensor plane used for the Ground level detection.
    .
    Miniaturas adjuntas Miniaturas adjuntas Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_39.jpg 
Visitas: 522 
Tamaño: 39.2 KB 
ID: 116757  
    Última edición por 3dpoder; 03-11-2009 a las 09:05
    |Agradecer cuando alguien te ayuda es de ser agradecido|

  6. #6
    Administrador, fundador y milenario... Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    27,512
    Gracias (Dadas)
    3603
    Gracias (Recibidas)
    5133

    Ground level detection

    Ground level detection.

    Now, we are going todo activate the sensors.
    caution : sensors can be hidden (or/and set todo not renderable), but they must be put on visible layers. Otherwize they are not active and the animation is broken. Do not forget that Shrinkwrap modifiers work thatway.
    -select the sensor plane and in Edit Mode, create a vertex group named sensors, including the fourvértices in the corners of the plane.



    -Select a los the four vértices one by one and create for each of them an other vertex group. We Will name them f. L,f. R,r. L,r. R. These groups Will be used son by the suspensión, th rouge location constraints. -add a plane and name it road. Subdivide it a couple of times and extrude it todo get something like a short part of a road.



    -Using the proporcional edition tools, add some bumps on the área of this road before the car rig. By shifting this plane under the car rig, we Will be able todo test the altitude sensors. It is a los useful todo add a Subsurf level of at least 1.



    -Adding colors todo the materiales Will be helpful in future operations.



    -Select the sensor plane, and add todo it a Shrinkwrap modifier. Type road in the ob field, and sensors in the vgroup field. Chose nearest surface point for the mode. Set the Subsurface level todo 3, and enable the above surface button.



    Now, shift the road plane in the x direction, and bring the bumpy arear at the car Rig location. You can noticethat four corners of the sensor plane (the vértices used as sensors) move.-select the sensor plane and adjust the offset value of the Shrinkwrap modifier todo 0.50. The four corners willrise up.



    -They a los move a bit in x and y direction. This is an unwanted effect that may be the cause of a slight lak of accuracy, but it is not really noticeable in most cases, because we Will use only the z información of each sensor.

    The four whels supports (objects of Purple color) are parented todo the chasis, and each of them has a copy location constraint using as target one of the four vertex groups used as sensors. So, by adjusting the offset value of the Shrinkwrap modifier, you adjust the altitude of the center of the whels over the road level. It is very useful and easy todo adjust this altitude with precisión when you change the diameter of the whels.



    -Move the road on the x axis todo displace the bumpy part before the car rig, todo avoid Deformations of the rig. -select the Rim-rear. R object, and bring the 3d cursor on it.



    -Add a cylinder object.



    -Scale it down in y direction and scale it again todo get something with the proportions of your whels template.



    -In top view, look at the axis of your whel.



    -To get a normal behaviour when we Will use the whelsrotation, py script, the y axix of the whels must all point todo the left part of the car. So, apply Control + a.



    -Now, parent the whel todo the whels support Rim-rear. R.-do the same thing for the 3 other whels, and name your whels. To allow the script rotating your whels, itis important todo name them whel, (more details in the script file itself).



    -Now, if you move again the road Mesh under the car rig, you Will se that the whels are following the relief of the road.



    -You can look under the road, and adjust the offset value of the Shrinkwrap modifier while looking todo the whels. They must be just passing th rouge the road a Little bit.



    -Looking todo the front of the rig, if you rotate the road Mesh todo get a transversal lope, you Will notice a bad thing : the whels are following the altitude of the Terrain, but the chasis doesnt follow, and the whels dont follow the direction of the normal of the Terrain.



    -First, we have todo correct a bad Parallax error. As the chasis and the default position of the sensor Mesh are not at the altitude of the whels axles, the whole Rig is afected by some weird Deformations. -on a flat road (move the road Mesh if necessary), select the chasis and the sensor Mesh, and looking at the side of the rig, just move up the two object until the center of the chasis is at the height of the front whels axles.



    -The rear of the Rig doesnt follow immediately. It does when you go forward few frames and come bak todo frame 1, todo reset the constraints.



    -By adding two Loocked track constraints (Loocked on x axis) todo the chasis, tracking the f. L and f. R sensors, the problem is solved.




    -You may notice that i have added a Cube under the chasis. It is a visual clue, allowing todo detect easily the flip of the chasis when playing with tracking constraints. To avoid the chasis flipping by accident in some extreme conditions, its rotation around its x axis is limited todo the range of -45°to + 45°.


    .
    Miniaturas adjuntas Miniaturas adjuntas Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_40.jpg 
Visitas: 520 
Tamaño: 37.1 KB 
ID: 116758   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_41.jpg 
Visitas: 537 
Tamaño: 56.2 KB 
ID: 116759   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_42.jpg 
Visitas: 604 
Tamaño: 47.8 KB 
ID: 116760   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_43.jpg 
Visitas: 524 
Tamaño: 37.8 KB 
ID: 116761  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_44.jpg 
Visitas: 540 
Tamaño: 37.1 KB 
ID: 116762   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_45.jpg 
Visitas: 522 
Tamaño: 12.9 KB 
ID: 116763   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_46.jpg 
Visitas: 558 
Tamaño: 37.3 KB 
ID: 116764   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_47.jpg 
Visitas: 610 
Tamaño: 39.1 KB 
ID: 116765  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_48.jpg 
Visitas: 563 
Tamaño: 45.4 KB 
ID: 116766   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_49.jpg 
Visitas: 509 
Tamaño: 44.6 KB 
ID: 116767   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_50.jpg 
Visitas: 524 
Tamaño: 33.4 KB 
ID: 116768   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_51.jpg 
Visitas: 507 
Tamaño: 42.4 KB 
ID: 116769  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_52.jpg 
Visitas: 531 
Tamaño: 42.1 KB 
ID: 116770   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_53.jpg 
Visitas: 663 
Tamaño: 41.5 KB 
ID: 116771   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_54.jpg 
Visitas: 544 
Tamaño: 40.0 KB 
ID: 116772   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_55.jpg 
Visitas: 501 
Tamaño: 36.1 KB 
ID: 116773  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_56.jpg 
Visitas: 546 
Tamaño: 40.2 KB 
ID: 116774   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_57.jpg 
Visitas: 493 
Tamaño: 50.4 KB 
ID: 116775   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_58.jpg 
Visitas: 522 
Tamaño: 40.1 KB 
ID: 116776   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_59.jpg 
Visitas: 528 
Tamaño: 35.8 KB 
ID: 116777  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_60.jpg 
Visitas: 549 
Tamaño: 41.1 KB 
ID: 116778   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_61.jpg 
Visitas: 486 
Tamaño: 48.3 KB 
ID: 116779  
    |Agradecer cuando alguien te ayuda es de ser agradecido|

  7. #7
    Administrador, fundador y milenario... Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    27,512
    Gracias (Dadas)
    3603
    Gracias (Recibidas)
    5133

    Activating the suspension

    activating the suspensión.

    -select the suspensión and add four copy location constraints. Their target is sensor, and they are pointingto the four sensors groups f. L,f. R, r. L and r. R.-it is important todo set the copy location constraints using a diagonal crossing method : f. L with influence = 1.000 and r. R with influence = 0.500. Followed by f. R with influence = 1.000 and r. L with influence = 0.500.



    -If you mix the order of the constraints, you Will have todo make endless corrections and tweaquíngs withoutgetting the accurate location of the suspensión object.

    Now, the suspensión is centered between the whels location. Its center point Will be floating along the Zaxis.



    -This suspensión object Will be the parent of the car body. It Will bounce over the whels, and the whels Will never be able todo pass todo trespass its level.
    .
    Miniaturas adjuntas Miniaturas adjuntas Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_62.jpg 
Visitas: 484 
Tamaño: 54.9 KB 
ID: 116782   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_63.jpg 
Visitas: 459 
Tamaño: 40.6 KB 
ID: 116783  
    |Agradecer cuando alguien te ayuda es de ser agradecido|

  8. #8
    Administrador, fundador y milenario... Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    27,512
    Gracias (Dadas)
    3603
    Gracias (Recibidas)
    5133

    Using the steering to control the suspension

    using the stering todo control the suspensión.

    -to achieve a realistic animation, it is important that the car simulate the effect of Gravity in the curves. So, we are going todo add this effect by using one more constraint todo the suspensión object. It Will be a Loocked constraint (Loocked on the local x axis), using as a target a new vertex group (transversal-slope) including only one vertex, and located at the upper tip of an extensión of the ster-pointer object.




    -The influence of the curve angle on the transversal slope can be adjusted in two manners : by adjusting the influence factor of the constraint or by moving up or down in Edit Mode the vertex group of the ster-pointer used as a target for the constraint.



    .
    Miniaturas adjuntas Miniaturas adjuntas Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_64.jpg 
Visitas: 502 
Tamaño: 66.5 KB 
ID: 116784   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_65.jpg 
Visitas: 473 
Tamaño: 16.5 KB 
ID: 116785   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_66.jpg 
Visitas: 479 
Tamaño: 38.9 KB 
ID: 116786   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_67.jpg 
Visitas: 468 
Tamaño: 45.2 KB 
ID: 116787  

    |Agradecer cuando alguien te ayuda es de ser agradecido|

  9. #9
    Administrador, fundador y milenario... Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    27,512
    Gracias (Dadas)
    3603
    Gracias (Recibidas)
    5133

    Using the steering to control the steering wheel

    using the stering todo control the stering whel.

    Let us add a stering-whel.

    In top view, add a circle. Estrude and scale it down a bit.



    -Select all the vértices and extrude again in z direction.



    -Add two small cubes, scale them in x and y direction todo create the branches.



    -Add a cylinder, extrude and scale it todo add the Alex of the stering-whel. When it is finished, you should have your stering-whel with its z axis vertical.




    -The stering-whel object Will be parented todo the body of the car. The body of the car Will be for itself parented todo the suspensión. Animating directly the body of the car you Will allow fine secondary animation.



    -In this example, y Will not add yet the body of the car, todo allow looking inside the setup, so we Will parent thestering-whel todo the suspensión, instead of the car body.-now, we are going todo give a slope todo the stering-whel Alex, todo put it in its usable position.



    -Create a new vertex group aligned on the direction of the stering-whel Alex, or duplicate the small piramidal vertex group including the vertex used as target for the suspensión constraint, and remove its vértices from the original group it belongs todo. Select the vertex at the tip of the pyramid, and add it todo a new vertex group named stering-target.




    -Select the stering-whel and add a Loocked track constraint. The stering-whel Will be locked on its z Alex (local z axis). Its -x axis7 Will track the stering-target vertex group of the ster-pointer object.



    By moving the empty-stering-target in y direction, you Will se the effect of this new constraint on the stering-whel.


    .
    Miniaturas adjuntas Miniaturas adjuntas Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_68.jpg 
Visitas: 480 
Tamaño: 46.6 KB 
ID: 116788   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_69.jpg 
Visitas: 464 
Tamaño: 46.0 KB 
ID: 116789   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_70.jpg 
Visitas: 497 
Tamaño: 33.3 KB 
ID: 116790   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_71.jpg 
Visitas: 467 
Tamaño: 50.9 KB 
ID: 116791  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_72.jpg 
Visitas: 479 
Tamaño: 36.5 KB 
ID: 116792   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_73.jpg 
Visitas: 493 
Tamaño: 41.9 KB 
ID: 116793   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_74.jpg 
Visitas: 476 
Tamaño: 43.2 KB 
ID: 116794   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_75.jpg 
Visitas: 477 
Tamaño: 17.4 KB 
ID: 116795  

    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_76.jpg 
Visitas: 465 
Tamaño: 40.3 KB 
ID: 116796   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_77.jpg 
Visitas: 467 
Tamaño: 44.9 KB 
ID: 116797   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_78.jpg 
Visitas: 469 
Tamaño: 13.3 KB 
ID: 116798   Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_79.jpg 
Visitas: 489 
Tamaño: 42.9 KB 
ID: 116799  

    |Agradecer cuando alguien te ayuda es de ser agradecido|

  10. #10
    Administrador, fundador y milenario... Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    27,512
    Gracias (Dadas)
    3603
    Gracias (Recibidas)
    5133

    Improving the geometry of the wheels rig

    improving the geometry of the whels rig.

    In some circumstances, depending mainly on whether you left the chasis at the Ground level or not, you may notice some Deformations or anormal location of the whels on a very bumpy Terrain. This can be corrected by adding todo the whels, or todo the whels supports a limit distance constraint, using as referencias the front and rear vertex groups previously created in the chasis object, and named no sé and tail, or new vertex groups located at the level of the whels axles (if you left the body of the car at Ground level).
    Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_80.jpg 
Visitas: 167 
Tamaño: 52.6 KB 
ID: 116801Clic en la imagen para ver su versión completa. 
Nombre: Cars-and-trucks-autodrive-system_img_81.jpg 
Visitas: 162 
Tamaño: 61.1 KB 
ID: 116802
    .
    |Agradecer cuando alguien te ayuda es de ser agradecido|

Página 1 de 2 12 ÚltimoÚltimo

Temas similares

  1. Blender 4x4 autodrive system 6 1
    Por 3dpoder en el foro Blender
    Respuestas: 8
    Último mensaje: 03-11-2009, 11:06
  2. Discusiones generales Ojos en Cars
    Por xander mesh en el foro Discusiones generales
    Respuestas: 7
    Último mensaje: 23-02-2007, 21:55
  3. Cine y series Cars
    Por slime en el foro Cine
    Respuestas: 141
    Último mensaje: 29-08-2006, 17:48