At first sight, the processing power of a next gen console might seem enough to render huge amounts of polygons and allow the high-res model just created to be rendered in full detail, in real-time. The problem is, however, that a vehicle is just a part of the scene rendered by the game engine. 20,000 polygons might seem low, but if you consider that some racing games can have many cars on the screen at the same time, that adds up to a lot of polygons being rendered! That is why games require different models with different detail levels to be created for each vehicle.
The first mesh used is usually called "in-game", and it is the model players see in the actual game. This one has around 10,000 polygons for racing games and much less than that for games that contain more complex scenes, like the Grand Theft Auto type games. This model is optimised to be viewed from a medium distance so that certain parts of the car have little to no detail, to save on polygons. The underside is usually flat and there are no suspension parts, unless the car is an open-wheeler and the interior has less geometry detail than the exterior. The geometry I will build for this tutorial's subject car is pretty simple as shape goes, so I will set the poly count limit to about 7,000 polygons, including wheels and interior.
For the low-resolution model, the modelling rules are stricter that in the case of the low-res model, because the optimisation of the mesh plays a more important role. Real-time rendering is done using triangles, the only geometrical shape that a video card can "understand". All other more complex 3d shapes are converted to triangles when rendered, or exported to a game's rendering engine. This automatic conversion can cause problems if the source polygon has more than 4 sides, because it might tessellate in an incorrect/inefficient mode. This is why only quads are to be used. There are areas where quads probably won't do, so triangles can be used to fill in these areas.
As mentioned at the beginning of this tutorial, saving a different scene with a basic high-res mode of the exterior is used as a base for the low-res model. Â Still, it seems I forgot to save a good intermediary mesh for the wheel so I will have to build it by using the full detailed mesh. Â This might also be the case, in some situations, when the artist is required to build a low-res model using an already-finished high-resolution mesh.
The first thing to do is to eliminate all of the close parallel cuts in the geometry that were used to strengthen the high-res model. Â A simple way to do this is to use Edit Mesh > Merge Vertices on the entire wheel mesh. Â The Distance value can be tweaked to make sure that only the very close vertices are merged.
The next step is to reduce the unnecessary polygons by deleting the edges that do not influence the shape too much.
The high-res wheel didn't have an interior, but the low-res still requires one that will be visible in the game. Â As the car has a very small ground clearance, the back of the wheel will be barely visible, so just basic geometry there is enough.
Setting up the Normals in Maya
The way the object is illuminated is defined by normals, which are a vectorial attribute assigned to each vertex. This vector defines the direction in which the light is reflected off that vertex. To make it easier to setup vertex normals without having to define them one by one, Maya uses an attribute applied to each edge called Hard Edge (Normals > Harden Edge) or Soft Edge(Normals > Soften Edge). In short, if one edge is "hard", the geometry will look like it is broken on that edge. Contrary, if the edge is "soft", the mesh will have a continuous aspect on that edge. This is done by splitting one vertex into a couple of vertices with different normals for each one to create the "broken" appearance of the geometry. The lighting for a soft-edged area is calculated by averaging the values of the normals of adjacent vertices.
Modelling for games will almost always mean that the normals have to be adjusted for the model to look its best. The problem comes when there is a normal map involved - a normal map that requires as few hard edges as possible (I will talk more about this necessity in the 4th chapter).
The first thing to do before setting up the normals is using the Normals > Unlock Normalsoption to unlock the normals and allow them for proper editing.
The starting point is the mesh with all of its edges set to soft. This is done because there will be fewer hard edges than soft edges, so it makes sense to set them all as soft and then just change a few to hard, as necessary.
< previous page next page >