Which one is created first? For example if a team worked on a graphical asset of a car, what would be a model and what would be a mesh of the car?
-
2\$\begingroup\$ Often there are multiple meshes in a model \$\endgroup\$– zacajOct 6, 2012 at 20:02
-
\$\begingroup\$ One's see through, the other's just got an eating problem. I joke I joke. A mesh is just the bit of the model that defines vertex data. \$\endgroup\$– Matt DSep 27, 2013 at 7:36
4 Answers
A mesh is part of a model. The mesh defines the vertices of an object. Typically storing them in such an order as to imply their connectivity, like every 3 form a triangle.
Like a mesh of vertices to define the shape of an object.
The model can have other elements like an armature, animation and texture information. It can additionally include more than one mesh. Though, I imagine they're similar enough to be used interchangeably in many cases.
-
8\$\begingroup\$ Using downvotes is a great way to show when you don't think an answer is good, however downvoting without adding a comment about how the answer can be improved is pretty useless. Especially when there are no existing criticism comments or obvious faults with the answer. \$\endgroup\$– HouseSep 27, 2013 at 22:01
Short answer:
The mesh (as in one single mesh) is just data about the structure of a model. The model contains textures which are used to define how to render it's surfaces. It also contains several variations of the same mesh for animation, normally controlled by bones. Each animation frame could be considered a mesh on it's own.
Long answer:
A very important difference to note is that some models are not built from a mesh in the classic sense of the word. Models structured out of Non-uniform rational basis spline (NURBS) also exit. Technically you could build a model in many ways that do not involve a mesh in the classic sense of the word, such as atoms and Voxels. When people speak of a mesh they normally refer to a polygon mesh.
The mesh is a graph. A collection of vertices, edges and faces. A face is an ordered collection of vertices connected by edges that complete a loop. It is used to describe a flat surface on the mesh.
A model is a general term to describe data. In the specific case of 3d models, we mean the mesh, it's uv-mapping, texture and animations.
A model may not have any texture or animation(if it is not complete or if it's an inanimate object or does not require textures), as long as there is a mesh it will still be referred to as a model. The mesh itself is only the 'wireframe' part of the model. Meaning the collection of edges and their connecting vertices that represent the structure of a model. Unlike a texture which represent how the model is colored, how it reflects light and such things as bump mapping details or it's animation which represent the models motion.
So every mesh is a model on it's own. Not every model is only a mesh.
here are some references:
-
\$\begingroup\$ What does only the wirefarme part mean? \$\endgroup\$ Oct 6, 2012 at 20:10
-
1\$\begingroup\$ @GameDev-er The wireframe is the edges and their connecting vertices. It is practically a synonym for mesh. It brings up an mental image of what a mesh looks like w/o textures imo. \$\endgroup\$– AturSamsOct 6, 2012 at 20:33
-
1\$\begingroup\$ Put differently, it means that a mesh has no information about how to render its surface. Whether its a solid color, a texture, a complex material, etc. you certainly can render a meh with some material, but the mesh itself doesn't tell you which to use; you either render with some default material, or use information from a model. A mesh is for instance useful for basic collision detection, as well as being one component necessary for rendering. In actual code, the terms are generally used loosely; a Model class might not have a Material for example, relying on higher layers for that info. \$\endgroup\$ Oct 7, 2012 at 0:17
-
\$\begingroup\$ @SeanMiddleditch - Yes, that is the most precise answer. The mesh is just data about the structure, the rest (textures) handle with how to render it's surfaces and animation (where each frame is actually a mesh on its own rights, handles motion) \$\endgroup\$– AturSamsOct 7, 2012 at 7:55
You may also hear of the term "Solid Model": This means that the underlying mesh model has had such additional information applied, e.g. construction material (and thence can be calculated the model's weight, Centre of Gravity, Centre of Inertia, etc), to the extent that the model is so 'physically' well defined, in a real world sense, that it can be referred to as 'solid'.
In simple terms, a mesh can be regarded as the outline of some shape/object. And the model gives the complete information of that object - texture, reflectivity, color, etc.