Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > PHP/MySQL/Scripting

3D Modeling Basics

Through theory and then tutorials, Mark Giambruno not only introduces you to basic modeling tools, with tips on when to use them, but also offers suggestions for planning out the best modeling approach and developing good work habits.
This chapter is from the book

Figure 3.0FIGURE 3.0 This CyberDog model was created in 3D Studio R4 (DOS) using basic lofts and modified 3D primitives. Image ©1996 Mark Giambruno.

"At last!" The student sighed as he finished the day's spell book studies. "Now I can add some more detail to my castle project." He got up from his chair and stretched, then wandered over to the Glowing Pool to admire his work. Before him floated an impressive castle tower, its walls dotted with windows. He smiled at the fine roof, finally perched properly atop the turret.

"Not bad," the student said to himself. "I think I'll build an inner gate next...a wrought iron one." With that, he sat down to work. It was nigh on two hours later when the Master returned from his errands and approached to examine his student's work.

"Very good, lad," the Master remarked. "But aren't those iron bars usually twisted? Say, here and there?"

"Oh, I forgot about that. I guess I should have looked at the ones downstairs first." The student frowned thoughtfully. "Well, I can fix them easily enough." A few incantations later, the vertical iron bars were endowed with decorative twists.

"Now for the arched ones..." The student turned his attention to the bent iron bars that formed a decorative bridge between the vertical pieces. He spoke the Words of Deformation, but something went terribly wrong. The arches wrapped around themselves like Olde Gold pretzels!

"Aargh!" groaned the student, realizing the problem. "I can't twist them after they've been bent. The axis..."

"Quite so," interrupted the Master. "Seems you forgot one of the key principles of conjuring, lad," he sighed, tapping on a large wooden sign on the wall. It read simply:

Plan Ahead

Laying the Groundwork

As our hapless student just discovered, it isn't enough to know how to use a tool. You have to be able to see the project as a whole and plan a strategy for accomplishing it. Through theory and then tutorials, this chapter not only introduces you to the basic modeling tools, with tips on when to use them, but also offers suggestions for planning out the best modeling approach and developing good work habits.

The first step in planning any project is to sit down and decide exactly what you want to accomplish. For example, say your project involves animating two modern fighter jets in an aerial dogfight. Well, right off you know you're going to need 3D models of the planes, as well as imagery of the sky and ground to use for the backgrounds. Because we're dealing with modeling at this point, let's focus on one of the planes—say, an F-14 Tomcat like the one Tom Cruise "flew" in the movie Top Gun. Because this is a fairly well-known craft, there's a good chance that others have already built models of this jet that you could find free or purchase for a fee on the web. I can tell you from working in a production environment that this is one of the first possibilities I check on when bidding out a project—it's usually a lot cheaper and faster to buy a complex model from a stock mesh outfit (or find a freebie on CD-ROM or the web) than it is to build one. The only downside is that stock mesh tends to have a high polygon count, and it's difficult to modify. Take a look at Chapter 4, "Modeling: Beyond the Basics," for more information on stock mesh.

At any rate, because we're here to learn about modeling, let's presume that you want to scratch-build the F-14 model. Now that you've identified the kind of plane you want to build, you're going to need some reference materials to serve as a guide. You may start off by searching for images from the web, going to the library or bookstore to find pictures and specifications, and even watching a few movies to study how they look in action. Ideally, you'll find some detailed line art of the plane that you can scan and load into your 3D program and use as a template. For more tips on finding and using reference materials, take a look at Appendix G, "Planning and Organization," which you can find on the CD-ROM.

NOTE

If you're trying to create a model and don't have a specific reference, you may want to build a massing model to help work out the proportions. A massing model is a highly simplified version of the model where you use rough forms as stand-ins for the finished ones. This simplified model should be very quick and easy to build, and enables you to experiment freely, scaling the major components up and down and shifting their relationships to each other. After you get an overall look you're satisfied with, you can use the massing model as a scale reference for building the finished components.

Now that you have a reference, study the plane. Identify the tricky parts, like spots where curved surfaces join together. Some of these areas may look a bit complex even to an experienced modeler, but remember that there's always more than one way to solve a problem, so if an aspect of the project seems particularly daunting, try to find a creative alternative.

Modeling Approaches

Whenever possible, take the simplest path to success when figuring out how a model will be constructed. The KISS (Keep It Simple, Stupid) principle applies very nicely to 3D work, because complicated models and operations tend to bog down the system and are more likely to cause trouble later on.

Bump and diffusion mapping (discussed in Chapter 6, "Texture Mapping") uses bitmapped images and normals manipulation to give the impression that there are additional mesh details on an object. Because of this, mapping can often substitute for lots of detailed mesh, particularly with objects that aren't the focus of attention or are distant in the scene. So, think about whether a texture could be used on a simpler object (even a single flat polygon) and still achieve satisfactory results.

In addition, think about how the model will be animated in the scene. If you never see the far side of an object, you may not need to bother modeling it.

If you're uncertain about whether a given modeling approach will work, do a test run with a quickly defined version of the object to find out. Experimenting in this way will often turn up alternatives that you may not have thought of otherwise.

Organizing Your Project

Before you start to build a model, take a little time to set up some directories (folders) to hold the files in an organized manner. I recommend creating a "3D Projects" directory and keeping all your original work in that, organized by the name of the individual project or model. In this case, you might call the subdirectory "F14 Jet." Inside that directory, create an additional folder called "Mesh" and another called "Maps." Then, when you go to build the model, you can save the 3D object files in the 3D Projects\F14 Jet\Mesh directory and the texture maps in the 3D Projects\F14 Jet\Maps directory. This will keep all the files related to the project in one easy-to-find directory. Keeping your files organized and grouped together this way also makes the projects easier to back up, because you don't have to hunt all over the hard drive to find the mesh and maps.

NOTE

When you start texturing your models, you may find that you'll often use images that came free with your 3D program. I recommend that you make copies of any of these that you use on a given model and put them in the Maps directory for that project. Not only does this enable you to customize the maps for your project, but it also ensures that you'll have all the files you need if you ever try to open the project on a different system (one that may not have all the stock maps installed).

Now that you have a place for all the files, what about the filenames themselves? Use a clear, descriptive name and add a number (with a leading zero) to the end so you can save off different versions as you work. F14Jet_01.xxx would be a good one to start with for the mesh file. Apply the same logic to the texture maps as well—F14 Canopy Glass.jpg, F14 Tire Tread.bmp, and so on.

Properly naming the hundreds of individual objects that may make up a model is also important. When a model starts to get complex, selecting parts by eye can be difficult. Also, there are situations when you have to choose from an alphabetized list of objects to perform some process on them. This will be pretty tough if your list of objects contains entries like Sphere27, Line155, and Cube82—names that may be automatically assigned by the program as you create objects. Selecting from a list that includes items such as F14Rudder, F14WheelRight, and F14Missile03 would be a bit easier.

You'll find a more in-depth guide to object and file naming conventions in Appendix G, "Planning and Organization." I strongly recommend you read it before starting on any modeling project.

Modeler Concepts

Now that you've gotten organized, it's time to move on to the software itself. As you know, modeling is the process of creating objects with a 3D software program. The term modeler was defined in Chapter 1 as the person who performs this work, but it is also used to describe that portion of the 3D package that deals with object creation, as well.

Types of Modelers

NOTE

Portions of the following material dealing with 3D software information and reviews originally appeared in an article I wrote for InterActivity magazine (Copyright 1996, Miller Freeman, Inc.) and is used with permission.

There are four basic types of modeling systems: polygonal, spline, patch, and parametric. Many packages combine these systems because each has its strengths and weaknesses. Polygonal is the most basic, and deals with 3D objects as groups of polygons only. Spline modelers are more sophisticated, and allow the user to work with resolution-independent objects. Patch modelers are well suited to sculpting organic objects, and parametric modelers allow the parameters of an object to be changed later in the process for maximum flexibility. Although each program takes a different approach, many of them incorporate two or more of these different modelers for flexibility.

Polygonal Modelers

Polygonal modeling is the oldest type of 3D modeling, harkening back to the days when people had to define points in 3D space by manually typing in X, Y, and Z coordinates from the keyboard. As you know, when three or more of these coordinate points are specified as vertices and connected by edges, they form a polygon, which can have color and texture. When you put a bunch of these polygons together, you can fashion a representation of just about any object. A downside to polygonal modeling is that everything is made up of these tiny, flat surfaces, and the polygons need to be fairly small or your object may appear faceted along the edges (see Figure 3.1). This means that if you will be zooming in on an object in a scene, you have to model it at a high polygon resolution (density), even though most of the polys will be unnecessary when you move farther from the object.

FIGURE 3.1 With polygonal modelers, objects are constructed with polylines and polygons, the "native form" of 3D graphics. Polygonal modeling is very useful for creating low-polygon models such as the ones used in real-time games. After an object is created in this type of modeler, however, it can be difficult to increase its resolution.

NOTE

For consistency, all of the interface screen grabs in this book are from Discreet 3ds max 4.2. Like many 3D software offerings, max has several different modelers integrated into the package.

Because of the overall increases in processor and display speed over the years, 3D software began to migrate from polygon-based to spline-based modeling, and some packages practically ignored polygonal modeling completely. Interestingly, though, polygonal modeling has made a big comeback because of the incredible popularity of real-time 3D games, so more robust polygon editing tools have made their way into what were primarily spline-based products.

Spline Modelers

If you've ever used a 2D drawing program such as Illustrator or CorelDraw, you're familiar with splines, one of the main tools that these programs use. Technically speaking, a spline is a (usually curved) line that is defined by control points. One of the main advantages of spline-based modeling over polygonal modeling is that it is resolution-independent, meaning that (in theory) you can get as close as you want to an object and never see any faceting (see Figure 3.2).

Figure 3.2FIGURE 3.2 Spline modelers, like the NURBS-based one shown here, use resolution-independent splines to define objects, and tend to produce smoother results than polygonal modelers. Also, the final polygonal resolution of spline-based objects can be adjusted at any time.

Spline modelers are well suited to creating complex organic shapes such as human faces, Tyrannosaurs, and alien spacecraft. Splines are often better for applications like this because their method of building forms uses smooth and natural curves, rather than jagged and artificial polygonal shapes. There are several different types of splines, with modelers commonly using the B-spline, the Bezier, and NURBS. Spline types and the differences between them are discussed later in the chapter.

Patch Modelers

Patch modelers use a network of control points to define and modify the shape of the patch, which is usually a lattice of either splines or polygons (see Figure 3.3). These control points, called control vertices (CVs), exert a magnet-like influence on the flexible surface of the patch, stretching and tugging it in one direction or another. In addition, patches can be subdivided to allow for more detail and can be "stitched" together to form large, complex surfaces. Like spline modelers, patch modelers are very suitable for building organic forms.

Figure 3.3FIGURE 3.3 Patch modelers use magnet-like Control Vertices to affect the surface of an object, and can produce very smooth results. Like spline-based modelers, they are particularly well suited for organic modeling.

Parametric Modelers

Parametric modeling features objects that retain their base geometry information, such as their default shape, their current size, and how many segments their forms comprise. Because this information can still be accessed and changed even after the objects are modified, it allows the user to change or undo alterations to the object later on, and even increase or decrease its resolution (see Figure 3.4). Although parametric modeling is usually spline-based, not all spline modelers are parametric.

Figure 3.4FIGURE 3.4 Parametric modelers are also spline-based, but allow operations to be adjusted or undone even after several modifications have been made to an object. Among other things, this enables the object's resolution to be adjusted after creation and modification.

Deformations applied to parametric objects can often be adjusted at any time, even though they may have been applied several operations ago. (The student in the opening tale could have benefited from this.) Contrast this to polygonal modeling, where after an object is created, its resolution is fixed (unless you tessellate or optimize it). Likewise, deforming a poly-gonal object permanently modifies it, so if you bend an object, then later want to reduce that bend significantly, you probably have to start over again with an unbent object.

NOTE

If a parametric model is destined for use outside the 3D program—in a game, for example—the model usually needs to be converted to a polygonal model. This is often referred to as collapsing the mesh.

The fact that so many different types of modeling approaches exist is another reason it's difficult to give specific instructions for the tutorials at the end of this chapter, which are designed to be program-independent. (Max, LightWave, and Maya-specific tutorials are included on the CD-ROM, however.) Although a spline or parametric modeler works best for the rounded organic forms in the tutorial, such as the helium bag, you can use a polygonal modeler as well, making sure that you set the mesh density to a reasonable level when you create the objects. Regardless of which type of modeler you have, however, all the tutorials can be accomplished in one way or another.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020