Gracias Gracias:  0
Resultados 1 al 1 de 1

Tema: Low Poly Car and Small Driving Gamelet

  1. #1
    Administrador y fundador. Avatar de 3dpoder
    Fecha de ingreso
    Apr 2002
    Mensajes
    15,459

    Low Poly Car and Small Driving Gamelet

    Low Poly Car and Small Driving Gamelet
    by Sandra Gilbert (aka dreamsgate)







    Introduction:
    Low poly cars can be a lot of fun; both to make and to play with. You can make them as fancy or as simple as you want. I’m going to show you how to make a simple low poly car and then we are going to create a gamelet (gamelet = more than a demo, not quite a full fledged game) so we can play with our car.

    I used Blender 2.43 RC1 during the writing of this tutorial. Therefore it should be compatible with Blender 2.43 when it releases. It should alos be compatible with 2.42 as we are not going to use a lot of game features to set this up. This is an intermediate level tutorial although beginners should be able to follow along without much difficulty.

    Well let’s get started.

    Low Poly Car
    As with a great many models, we are going to start with a plane. We will model 1 half of the car and then mirror the other side.

    1.In side view, add the car reference image View>Background Image>Load (load supplied reference image “Car”)

    2.Then add a Plane; Spacebar>Add>Plane, delete all but 1 vertice.

    3.We are trying to make as few faces as possible so only add as many vértices as needed. Select the remaining vértice and Control LMB to create an outline of the car. Then create faces to fill in your outline by selecting 4 vértices and hitting “F key”. See Fig 1.



    4.In top view, select all the vértices and extrude (E key) 2 times. See fig 2.



    5.Select the outer row of vértices and hit Smooth a few times. See fig 3.



    6.Add a Mirror modifier, you may have to cycle through the X,Y,Z axis buttons to get it to mirror on the correct axis, alos make sure your pivot point (little circle/dot in center of model) is positioned on the center line. And select “Do clipping” to get a clean join between the 2 halves.

    Okay, there it is. One low poly sports car. Now we need to add some wheels. They don’t need to be fancy as they won’t be really seen in our gamelet. So I just used a scaled tube for each wheel and joined it to the body. The reason I used a tube was that I wanted to close only one end and create a simple rim for painting. See fig 4



    Next Duplicate your tire (Shift + D) and place both tires in their wheel wells. Select both tires and the car and Join (Control + J). See fig 5. I haven’t applied (made final) the Mirror modifier yet because I want to vertex paint the car and I want both sides to be the same.

    Painting the Car
    At this point you can go off and apply a fancy UV map to your car or apply simple vertex paint. The choice is yours. For this tutorial, I decided to use vertex paint to keep memory requirements down. Remember to view your model in Potato mode (Alt + Z) to see your vertex paint



    1.Hit “V key” for Vertex paint and “F key” for Face mode. Most likely your car turned completely black. That’s ok; we will fix it in a moment.

    2.Select all the faces of the car (but not the tires) and in the Paint Panel in the Edit buttons window, set your paint color. I chose red. Hit the “Set Vert Color” in the Texture Face panel to apply your color to the car body. See fig 6.



    3.I’m going to create some shadows and highlights using vertex paint, other wise if you press “P” to start the game engine you will notice that your car has no real definition and looks rather ugly.

    4.Set your Brush size down to around 10-12 and opacity to 0.200. Choose a color darker than you chose for your car body. Start painting around the edges to give it definition. This is what I came up with. Not beautiful, but it’s a start. See fig 7.



    Notice I alos painted a little blue on the blak tires and made the hub of the wheel a light grayish color. You could alos add Windows and paint them a very light blue color. See fig 8.



    Well our car is finished at this point. Now go ahead and apply the Mirror Modifier and make your car all one piece. Next we will be making a simple environment to drive around in.

    Drive through the Country
    We are going to make a driving course through the country for our car to drive around in.

    1.Go to layer 2

    2.In Top view, Spacebar>Add>Grid (default of 32 x 32 is fine)

    3.In Edit mode, toggle the Face selection button and create a trak for your car. See fig 9.



    4.In Side view, Extrude your trak down a little. See fig 10.
    5.Switch bak to Object mode (Tab), then go into UV/Face Mode (F) and Vertex Paint (V)



    6.Set your paint color to a muddy brown and press the “Set Vert Color button”, Tab bak to Edit mode and use the “Select Swap button” in the Mesh tools 1 panel to invert your selection. Tab bak to UV/Face mode and set your paint color to a nice green and press the “Set Vert Color button”. See fig 11.



    Now you have your basic track, but it is a little boring. I’m going to add a few hills and valleys using the Proportional edit tool (O). You have several choices of “falloff” to choose from, and I’ll leave it to you to decide which one you want. In fact mix and match them for different effects. See fig 12.



    1.For ease in selecting where I want my hills, I selected the faces I wanted in UV/Face select mode (so I could see where they were in relation to the track, you will notice your vertex colors don’t show up in Edit mode).

    2.Then Tab bak to Edit Mode, with Proportional editing on (O) in side view, grab the faces (G) and move them up. They look a little too blocky to be real hills, so hit the Smooth button a few times, and then you may want to move them up a little bit more. See fig 13.



    3.Using the same technique, create valleys by moving down, not up. Also, don’t be afraid to select portions of your trak and move them up or down also. You can alos use the Select>Random in the file menus. After playing around, this is what I got. I added some vertex paint to breaque up the flat greens and brown colors. See fig 14. (You might discover when you get your gamelet set up that your terrain is a little too rough, this can be solved by applying a Subsurf Modifier to smooth it out a little)



    Maquíng a Gamelet
    Okay, now we have a car and an environment for the car to drive around in. It is time to put together our little gamelet so we can play with it.

    * One tip, remember to give controls and objects meaningful names. While not an overly big deal for our little example, when creating more complex games, it quickly becomes a necessity in order to keep trak of what you have done.

    1.Turn on layer 1 so you can see your car. You will need to resize your car so that it fits on the track. After you have resized it, make sure that you hit “Control + A” to apply scale and rotation. It’s a good idea to select the track/environment and do the same thing. See fig 15



    2.Next let’s parent the camera to the car so that we can see where we are going. (Select the camera 1st, then the car and hit "Control + P")

    3.We are going to use logic bricks to set up basic driving controls for the car. We will only be creating 4 controls, tied to the arrow keys on your keyboard for navigation. That will give us forward, left and right turns and the ability to go in reverse.

    4.Select your car; go to the game logic window (F4).

    5.Toggle the “Actor” button, a whole bunch of new buttons appear

    6.Toggle Dynamic

    7.You can leave the rest of the settings at default for now

    8.Toggle “Bounds” and choose “Box” as bounding type

    9.Once you have set the bounding type, go bak up to the Actor buttons and look for the one that says "Radius", set it to fit around your car model. You don't want it too big or too small. Switch to solid or wire view to see the size of the radius in relation to your model.

    I’m going to show you how to set up the 1st control, then you can set up the rest by looking at fig 16 or checking out the included blend file.




    • 1.You will see 3 sets of boxes to the right of the screen (sensors, controllers, and actuators)
    • 2.Toggle the “Add” box next to the 1st one (sensor)
    • 3.Clik on the box that says “Always” scroll down to “Keyboard”
    • 4.Clik on the box next to “Key”, it will then say “Press a Key”; press the up arrow on your keyboard
    • 5.Toggle the “Add” box next to the 2nd one (Controller)
    • 6.Toggle the “Add” box next to the 3rd one (Actuator)
    • 7.In the middle column of “dLoc” type (0.25)
    • 8.Clik on the little ball next to the Sensor column and drag it to the Controller column and then from the Controller column to the Actuator column.


    You have now connected logic bricks to create your first control. In effect you have told the game engine that you want the car to go forward (or move along the Y axis) anytime you press the up arrow key. That’s pretty much all there is to it. Press “P” to play your gamelet.
    Here are a few suggestions to improve your game;

    • 1.Add sound
    • 2.Engine revving when you push the up arrow
    • 3.Tires turning when going left or right
    • 4.Thuds as you hit the ground
    • 5.Add moving objects (i.e. cows, pigs, tumbleweeds)
    • 6.Add ramps or obstacles with or without water traps
    • 7.Add falling objects to avoid
    • 8.Add buildings/covered bridges
    • 9.Add lakes in some of the depressions/valleys
    • 10.Drop a few low poly trees in
    • 11.Surround the track/grid with water (turning it into an island)
    • 12.Add a sky


    You can find great tips on improving the game environment in Issue #7, “Creating a Realistic Environment for BGE” by John Allie (plantperson).

    Further game engine resources:
    http://mediawiki.blender.org/index.php/Game_Engine
    http://www.continuousphysics.com/Bullet/
    http://blenderartists.org/forum/forumdisplay.php?f=12

    by Sandra Gilbert (aka dreamsgate)

    www.blenderart.org
    Miniaturas adjuntadas Miniaturas adjuntadas Low Poly Car and Small Driving Gamelet-car.jpg   Low Poly Car and Small Driving Gamelet-fig-1.jpg   Low Poly Car and Small Driving Gamelet-fig-2.jpg   Low Poly Car and Small Driving Gamelet-fig-3.jpg  

    Low Poly Car and Small Driving Gamelet-fig-4.jpg   Low Poly Car and Small Driving Gamelet-fig-5.jpg   Low Poly Car and Small Driving Gamelet-fig-6.jpg   Low Poly Car and Small Driving Gamelet-fig-7.jpg  

    Low Poly Car and Small Driving Gamelet-fig-8.jpg   Low Poly Car and Small Driving Gamelet-fig-9.jpg   Low Poly Car and Small Driving Gamelet-fig-10.jpg   Low Poly Car and Small Driving Gamelet-fig-11.jpg  

    Low Poly Car and Small Driving Gamelet-fig-12.jpg   Low Poly Car and Small Driving Gamelet-fig-13.jpg   Low Poly Car and Small Driving Gamelet-fig-14.jpg   Low Poly Car and Small Driving Gamelet-fig-15.jpg  

    Low Poly Car and Small Driving Gamelet-fig-16.jpg  
    Última edición por 3dpoder; 08-06-2009 a las 09:42
    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. http://www.foro3d.com/f45/forma-correcta-de-insertar-imagenes-y-archivos-en-nuestro-mensaje-98930.html

    |Agradecer cuando alguien te ayuda es de ser agradecido|

Temas similares

  1. Blender The next small step with blender 3d
    Por Freemind en el foro Blender Art Magazine nº33 (in English)
    Respuestas: 0
    Último mensaje: 12-08-2012, 17:33
  2. Rhinoceros Driving Dimensions 0 1 para Rhino
    Por 3dpoder en el foro Noticias
    Respuestas: 0
    Último mensaje: 29-06-2009, 04:33
  3. 3ds Max model of industrial design the small lamp
    Por joluvies en el foro Trabajos Finalizados
    Respuestas: 16
    Último mensaje: 01-06-2009, 08:56
  4. ZBrush That's one small step for a CG model, one giant leap for me
    Por Woody en el foro Trabajos Finalizados
    Respuestas: 41
    Último mensaje: 21-04-2009, 07:37
  5. Terragen Point animation Small
    Por 3dpoder en el foro Índice de Video3d.es
    Respuestas: 0
    Último mensaje: 18-04-2009, 20:40

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.
  •