How on earth do you attach a different texture to different faces of the same mesh? If I wanted different textures to appear on the different facets of the cube, how do I do this in Unity, or is this not possible natively?
Also, I’ve been trying to put the realistic “grass” texture (rather than just a texture image) as the top surface of a football-pitch like surface (7 x 0.1 x 14 cube) but every time i try to create a terrain object and “paint” grass on according to the Unity docs, it creates this great big plane under my “pitch” cube and paints that instead.
Thanks again in advance, the reply on the dimensions in the prefab section was quick and helped loads!
Hi Patrick, detailed textured is really for a modelling app to handle, though I’m sure at some point in the future UT may include it in Unity. Maybe version 4? right guys?
Anyway you also can’t apply terrain elements to normal objects like primitive cubes etc – well you can add the components, they just don’t work. Ideally Unity would disallow you from doing that but hey. So you can kind of hack it around but when it comes to painting, it simply won’t work, so leave terrains to be terrains I guess!
Thanks again for the prompt update! I just wanted to confirm re multiple textures even for simple primitives before reverting back to Blender to create the meshes.
I think i’ve got enough to go on now to do my own thing for a bit! However, i noticed one thing yesterday to do with dimensions that had me stumped, and I couldn’t find any reference as to why in the manual. When creating primitives, why do the scale measurements seem to be different for some primitives? For instance, I created a plane-like “cube” with scale measurements (X:7, Y:0.1, Z:14) that rendered to the unit size i was more or less expecting, i.e. 7 x 14 units. However, when i created a “plane” primitive with the same measurements (X:7, Y:0.1, Z:14) it was huge! Many many times the size of the previous “cube” based primitive. Can you explain why this is? Sphere primitives seem to be in proportion with cubes in that a 1,1,1 sphere is the same size as a 1,1,1 cube.
Thanks again and keep up the great work. Looking forward to more of the intermediate modules… finished all the ones up there already!
Patrick, a plane is a different kind of mesh in Unity and is scaled differently – what you’ll notice if you put in a Cube and a Plane is that a cube is one tenth of the size – so if you scale the plane to 0.1 in all axes, its the same size as an intersection of a cube, try it out and you’ll see what I mean.
Try and remember that vectors aren’t pixels so sizes are relative, not finite. When looking at the mesh of a plane, it has 10 x 10 cubic meshes made of 2 triangles inside it, whereas the surface of a cube is just one of these squares. See this screengrab – http://tinypic.com/r/10p4vfa/7
[...] Beginner B09 – Adding Materials [...]
Hi,
Another newbie question… 2 questions actually…
How on earth do you attach a different texture to different faces of the same mesh? If I wanted different textures to appear on the different facets of the cube, how do I do this in Unity, or is this not possible natively?
Also, I’ve been trying to put the realistic “grass” texture (rather than just a texture image) as the top surface of a football-pitch like surface (7 x 0.1 x 14 cube) but every time i try to create a terrain object and “paint” grass on according to the Unity docs, it creates this great big plane under my “pitch” cube and paints that instead.
Thanks again in advance, the reply on the dimensions in the prefab section was quick and helped loads!
Regards,
P
Hi Patrick, detailed textured is really for a modelling app to handle, though I’m sure at some point in the future UT may include it in Unity. Maybe version 4? right guys?
Anyway you also can’t apply terrain elements to normal objects like primitive cubes etc – well you can add the components, they just don’t work. Ideally Unity would disallow you from doing that but hey. So you can kind of hack it around but when it comes to painting, it simply won’t work, so leave terrains to be terrains I guess!
Could a material with a RenderFX/skybox shader do the trick for having multiple textures on the same mesh?
Not really no – what are you trying to achieve?
Hi Will,
Thanks again for the prompt update! I just wanted to confirm re multiple textures even for simple primitives before reverting back to Blender to create the meshes.
I think i’ve got enough to go on now to do my own thing for a bit! However, i noticed one thing yesterday to do with dimensions that had me stumped, and I couldn’t find any reference as to why in the manual. When creating primitives, why do the scale measurements seem to be different for some primitives? For instance, I created a plane-like “cube” with scale measurements (X:7, Y:0.1, Z:14) that rendered to the unit size i was more or less expecting, i.e. 7 x 14 units. However, when i created a “plane” primitive with the same measurements (X:7, Y:0.1, Z:14) it was huge! Many many times the size of the previous “cube” based primitive. Can you explain why this is? Sphere primitives seem to be in proportion with cubes in that a 1,1,1 sphere is the same size as a 1,1,1 cube.
Thanks again and keep up the great work. Looking forward to more of the intermediate modules… finished all the ones up there already!
Regards,
P
Patrick, a plane is a different kind of mesh in Unity and is scaled differently – what you’ll notice if you put in a Cube and a Plane is that a cube is one tenth of the size – so if you scale the plane to 0.1 in all axes, its the same size as an intersection of a cube, try it out and you’ll see what I mean.
Try and remember that vectors aren’t pixels so sizes are relative, not finite. When looking at the mesh of a plane, it has 10 x 10 cubic meshes made of 2 triangles inside it, whereas the surface of a cube is just one of these squares. See this screengrab – http://tinypic.com/r/10p4vfa/7
I started using Unity 3d last week and so far this has been the most useful tutorial that I’ve watched.
Thank you for posting them!
Thank You Very Much!!!!!!!
Great tutorial:)
TY