Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by meechan007 · Oct 22, 2015 at 04:16 PM · texturemesh3dmaterialsbegginer

Textures, Materials, Meshs and Maps?

I have a few questions that i hope can be answered. What is a texture, a mesh and a materiel. I think a texture is the thing that goes on an object to provide details to it and materials to colour it. I think meshes are 3D things. Can someone help me understand the differences between these and what each one does? And i have zero clue what a map is except it help pull things forward and back on a texture i think.

If i have a house and want the front to be different from the back and sides. Like a door for the front then something plain like orange walls for the sides and back. what do i use a texture, a material or a mesh. And how would i do it?

Any and all help is appreciated.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Statement · Oct 22, 2015 at 04:51 PM

A mesh is a collection of indices and vertices. A vertex is a point in space and can have associated color, normal, uv coordinates and other vertex attributes. Indices are numbers that together with the topology of the mesh define primitives, such as triangles.

Simplified, you can think of the vertices as being dots on a paper with a number associated on them. The indices are a list which says which which vertices to use to build a primitive. Think of it as a connect the dots blueprint:

Except, usually we are connecting triangles or triangle strips instead of line strips in computer graphics. A mesh would define the "physical shape" of your building.

A texture is like a plain image, with some added properties. Images have wrap modes, filter modes and other settings that you can apply, such as mipmaps. For your house example, a texture would likely contain the color to paint all of your walls etc. It is what gives it "texture". Hence the name. It is created with an image editing software, such as mspaint if you are a crappy artist like me, or photoshop if you are one of those rad artsy guys. Then it is imported into Unity.

A material is something that exposes properties for a given shader. A material by itself is not much more than a few values you can set and a reference to a shader. A shader is a piece of code that contain a vertex program and a fragment program. A shader is executed on the graphics cards GPU. The vertex program rearranges the vertices and the fragment program define the colors that will be output to screen. A shader uses vertices from the mesh and textures from the material.

Unity will render a mesh for you if you have a MeshRenderer component. It will use the mesh found on the MeshFilter component. You set the material on the MeshRenderer to specify what shader and which properties (textures, colors, other info) the shader will be supplied when executing on the GPU.

If i have a house and want the front to be different from the back and sides what do i use a texture, a material or a mesh.

It depends on how you want it to be different. Do you want the back to have a different shape? It would most likely be a different mesh. Do you want the back to have a different texture? You need either to update your texture or mesh in a mesh editing software such as maya, max or blender (I dont know what artists use, I am a coder) - to UV map that side to a new area on a texture. To be able to change material for the other side of the building, the other side of the building has to be a separate object.

I recommend you get a book on computer graphics and study it to learn it better.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image meechan007 · Oct 22, 2015 at 04:56 PM 0
Share

I forgot to say what i what the difference for the house would be whoops i'll sort that the now. But i was thinking like a door for the front then something plain like orange walls.

Thanks for the answer

avatar image Statement meechan007 · Oct 22, 2015 at 05:00 PM 0
Share

I am sorry but I don't understand what you are saying.

avatar image meechan007 Statement · Oct 22, 2015 at 05:03 PM 0
Share

Sorry about that i am not great at explaining things. So say i want a house with orange walls for the back of the house and the left and right sides. Then i want a front door for the front. What do i use/do to stop the door going onto all 4 sides of the house. I tried using a texture but not knowing what they are fully and what they do i kinda failed.

avatar image Statement meechan007 · Oct 22, 2015 at 05:01 PM 0
Share

The walls would be one mesh.
The door would be one mesh. (If you want to open it)
Both meshes can use the same material, if you've UV mapped both the wall and door on the same texture.

avatar image meechan007 Statement · Oct 22, 2015 at 05:05 PM 0
Share

Ok thanks a ton for explaining this to me and helping.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

35 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Looking for help with creating a gold texture/reflection for mobile games 0 Answers

Prevent Stretching of Image on Material Assigned to a 3D Plane? 0 Answers

Putting material on one thing puts it on all the things... 0 Answers

Apply texture/materials without stretching them according to the surfaces of the 3D structure 0 Answers

Can unity only show some specific color? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges