Download presentation
Presentation is loading. Please wait.
2
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu1 Introduction to Modeling Jim X. Chen George Mason University
3
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu2 What is Modeling a process of constructing a virtual 3D graphics object Modeling tools: creating and constructing complex 3D models fast and easy. Rendering is a process of creating images from graphics models.
4
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu3 A graphics model geometrical descriptions (particles, vertices, polygons) and associated attributes (colors, shadings, transparencies, materials) can be saved in a file using a standard (3D model) file format.
5
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu4 Models Organizational models: hierarchies representing institutional bureaucracies Quantitative models: equations describing econometric, financial, socialogical,... systems Geometric models: collections of components with well-defined geometry and their interconnections Deformable models: that change forms
6
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu5
7
6 POLYGON MESHES list of vertices - polygon; list of edges - polygon list of polygons -- objects Plane equation from 3 vertices: Ax + By +Cz + D = 0 Normal: (A,B,C) = k(P 1 P 2 x P 1 P 2 ) A, B, and C are proportional to the signed areas of the projections of the polygon onto the (y, z), (x, z), and (x, y) planes. If the polygon is parallel to the (x, y) plane, then A = B = 0.
8
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu7
9
8
10
9 PARAMETRIC BICUBIC SURFACES General form of cubic curve: Q(u) = U ·M ·G where G, the geometry vector, is a constant If we allow G to vary in 3D along some path: Then, a functional description is often tesselated to produce a polygon-mesh approximation to the surface (trianglular polygon patches) For a fixed t 1, Q(s, t 1 ) is a curve because G(t 1 ) is constant. If G i (t) are cubics, the surface is said to be a parametric bicubic surface
11
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu10 Hermite Surfaces Curve: and Surface: Since: we have:
12
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu11 Where Where x coordinates, coordinates of the tangent vectors and twists are specified
13
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu12 Just as the Hermite cubic curves, the Hermite bicubic permits C 1 and G 1 continuity from one patch to the next 1st, to have C 0 continuity, the matching curves of the two patches must be identical, which means the control points for the two surfaces must be identical along the edge To have C 1 continuity, the control points along the edge and the tangent and twist vectors across the edge be equal. To have G 1 continuity, the tangent and twist vectors across the edge be in the same direction, but do not need to have the same magnitude..
14
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu13 Bezier Surfaces The Bezier bicubic formulation can be derived in exactly the same way as above. The results are: B-Spline Surfaces The B-Spline bicubic formulation can be derived in exactly the same way also. The results are: Normals to Surfaces The cross product between thes and t tangent vectors of the surface Q(s, t) results in the normal at givens andt:
15
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu14 Solid Modeling Methods (Modeling Solids)
16
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu15 Creating solid models. A solid model is defined by volumes. Hierarchy of entities from low to high: keypoints lines areas volumes. You cannot delete an entity if a higher- order entity is attached to it. Volumes Areas Lines & Keypoints Lines Areas Volumes
17
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu16 File formats Representing Solids (solid models) The domain of representation should be large to allow a useful set of physical objects (solids) The representation should be unambiguous Modeling Tools have their own file formats Volumes Areas Lines & Keypoints Lines Areas Volumes
18
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu17 Simple 3D Half-Spaces Sphere Cylinder Cone Torus Box Plane it splits space into two infinite half-spaces you can use an infinite cylinder and two planes to make a capped cylinder You can also get a box from 6 planes…
19
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu18 Modeling Approaches Two approaches to creating a solid model: Top-down Bottom-up Top-down modeling starts with a definition of volumes (or areas), which are then combined in some fashion to create the final shape. add
20
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu19 Approaches Bottom-up modeling starts with keypoints, from which you “build up” lines, areas, etc. You may combine both methods.
21
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu20 Top-Down Modeling Top-down modeling starts with a definition of volumes (or areas), which are then combined in some fashion to create the final shape. The volumes or areas that you initially define are called primitives. Primitives are located and oriented with the help of the working plane. The combinations used to produce the final shape are called Boolean operations.
22
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu21 Primitives 2-D primitives include rectangles, circles, triangles, and other polygons.
23
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu22 Primitives 3-D primitives: blocks, cylinders, prisms, spheres, and cones.
24
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu23 Top-Down Modeling...Primitives When you create a 2-D primitive, a modeling tool usually defines an area, along with its underlying lines and keypoints. When you create a 3-D primitive, a modeling tool usually defines a volume, along with its underlying areas, lines and keypoints.
25
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu24 Top-Down Modeling...Primitives You can create primitives by specifying their dimensions or by picking locations in the graphics window.
26
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu25 Top-Down Modeling Boolean Operations Boolean operations: combinations of geometric entities: add, subtract, intersect, divide, glue, and overlap, etc. The “input” to Boolean operations: geometric entities, simple primitives or complicated volumes imported from a CAD system. add Input entities Boolean operation Output entity(ies)
27
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu26 Boolean CSG Operations Union Addition, A Ú B Intersection A Ù B Difference Subtraction, A – B, A Ù not B Difference is not commutative
28
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu27 A more complicated example Difference of: Intersection of Sphere and Cube Union of 3 Cylinders -=
29
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu28 Bottom-Up Modeling Most modeling tools use top-down approach Low level programming systems usually adopts with bottom-up modeling
30
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu29 Primitive Instancing In a hierachical model, there are parts that are exactly the same. For example, all four wheels of a car can be the same model. Instead of saving four copies of the model, we save just one primitive model and three instances If we modify the primitive, we know that the primitive and the instances are identically changed.
31
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu30 Sweep Representations a 2D area swept along a linear path normal to the plane of the area to create a volume 2D/3D along a trajectory through space defines a new object -- sweep
32
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu31 More representations Boundary Representations describe object by its surface boundaries: shared edges have pointers to 2 polygons, etc. Spatial-partitioning representations Spatial-Occupancy Enumeration identical solids called voxels (volume elements) arranged in a fixed regular grid. Octrees: divide-&-conquer power of subdivision. Binary Space-partitioning Trees: recursively divide space into pairs of subspaces, each separated by a plane. Originally used in determining visible surfaces in graphics.
33
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu32 Physics-based Modeling Modeling triangular polyhedron: all vertices and the surrounding triangular shapes are congruent
34
Copyright @ 2003 by Jim X. Chen: jchen@cs.gmu.edu33 Modeling Tools http://www.cs.gmu.edu/~jchen/graphics Examples in 3D Studio MAX 3, the book
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.