Difference between revisions of "Texturing a cube with two materials"

(A draft for a tutorial on how to apply several materials to an object.)
 
 
Line 7: Line 7:
  
 
1)Press f5
 
1)Press f5
 +
 
2)click on " add new" (link to object)
 
2)click on " add new" (link to object)
 +
 
3)press f6
 
3)press f6
 +
 
4)click on " add new" (texture)
 
4)click on " add new" (texture)
 +
 
5)choose texture type (image)
 
5)choose texture type (image)
 +
 
6)click on "load" and load your first image
 
6)click on "load" and load your first image
 +
 
7)click in the second texture channel
 
7)click in the second texture channel
 +
 
8)click on "Add new" (texture)
 
8)click on "Add new" (texture)
 +
 
9)choose texture type (image)
 
9)choose texture type (image)
 +
 
10)load your second image
 
10)load your second image
  
  
setting up material 1
+
Setting up material 1
 +
 
 
11)Press f5
 
11)Press f5
 +
 
12) activate texture 1 in the texture tab
 
12) activate texture 1 in the texture tab
 +
 
13)activate next tab (Map input)
 
13)activate next tab (Map input)
 +
 
14)choose UV
 
14)choose UV
 +
 
15)activate next tab (map to)
 
15)activate next tab (map to)
 +
 
16)activate color and normal field
 
16)activate color and normal field
  
setting up material 2
+
 
 +
Setting up material 2
 +
 
 
17)activate texture 2 in the texture tab
 
17)activate texture 2 in the texture tab
 +
 
13)activate next tab (Map input)
 
13)activate next tab (Map input)
 +
 
14)choose UV
 
14)choose UV
 +
 
15)activate next tab (map to)
 
15)activate next tab (map to)
 +
 
16)activate color and normal field
 
16)activate color and normal field
 +
  
  
 
Now start the UV map procedure.
 
Now start the UV map procedure.
remember that material 2 is active at this point
+
Remember that material 2 is active at this point.
  
  
 
17)select the cube
 
17)select the cube
 +
 
18)tab to edit mode
 
18)tab to edit mode
 +
 
19) press "A" to deselect all
 
19) press "A" to deselect all
 +
 
20)choose face select mode
 
20)choose face select mode
 +
 
19) select the two faces you want to texture with the active material
 
19) select the two faces you want to texture with the active material
 +
 
20)press "alt z" to go to the texture draw type, because we want to see what happens!
 
20)press "alt z" to go to the texture draw type, because we want to see what happens!
  
 
21) make a second window with the uv image editor activated.
 
21) make a second window with the uv image editor activated.
 +
 
22)in your "cube" window press U
 
22)in your "cube" window press U
 +
 
23) press unwrap(smart projections)
 
23) press unwrap(smart projections)
 +
 
24)press "OK"
 
24)press "OK"
  
 
25)go to your uv window and choose the active material in the selector (updown arrow)
 
25)go to your uv window and choose the active material in the selector (updown arrow)
 +
 
26)In the uv window you can now use the scale, rotate or grab command 's to adjust the texture spreading on the selected faces
 
26)In the uv window you can now use the scale, rotate or grab command 's to adjust the texture spreading on the selected faces
 
you can imediately see the result in the "cube window"
 
you can imediately see the result in the "cube window"
 +
  
 
Second part
 
Second part
 +
 
27) in your "cube window", press "Ctrl+I" to switch to the remaining faces.
 
27) in your "cube window", press "Ctrl+I" to switch to the remaining faces.
 +
 
28) In the panels window press f9
 
28) In the panels window press f9
 +
 
29) In links and materials press "new" to add a new material
 
29) In links and materials press "new" to add a new material
 +
 
30) In the panels press "f5"
 
30) In the panels press "f5"
  
 
31) Click in the first field of the "texture choises" to bind it to your new material.
 
31) Click in the first field of the "texture choises" to bind it to your new material.
 +
 
32) in your "cube" window press U
 
32) in your "cube" window press U
 +
 
33) press unwrap(smart projections)
 
33) press unwrap(smart projections)
 +
 
34) press "OK"
 
34) press "OK"
  
 
35) go to your uv window and choose the active material in the selector (updown arrow)
 
35) go to your uv window and choose the active material in the selector (updown arrow)
 +
 
36) In the uv window you can now use the scale, rotate or grab command 's to adjust the texture spreading on the selected faces
 
36) In the uv window you can now use the scale, rotate or grab command 's to adjust the texture spreading on the selected faces
 
you can imediately see the result in the "cube window"
 
you can imediately see the result in the "cube window"
  
 
That was all.
 
That was all.
 +
 
Look into your outliner window and in there expand the cube and see you have two materials binded to it.
 
Look into your outliner window and in there expand the cube and see you have two materials binded to it.
click on one one material and load another image.
+
Click on one one material and load another image.
when you did all well , you don't have to UV map again for a different result.
+
 
 +
When you did all well , you don't have to UV map again for a different result.
 +
 
 
When you forget to do step 29-31 then you have "two textures within 1 material "and you can't edit that without a new uv map.
 
When you forget to do step 29-31 then you have "two textures within 1 material "and you can't edit that without a new uv map.
 
use that for multiple layers inside 1 material
 
use that for multiple layers inside 1 material
 +
 
In that case for every layer you have to set a new map "input" and map to
 
In that case for every layer you have to set a new map "input" and map to
 +
 
The map input defines the size of the texture without effecting the UVmap.
 
The map input defines the size of the texture without effecting the UVmap.
 +
 
The "map to " tells how you want to use the texture.
 
The "map to " tells how you want to use the texture.

Latest revision as of 18:35, 8 January 2010

Note: This is a draft. It needs to be reformatted and pictures are needed. This is a raw copy of an excellent post by dendwaler and this information must not be lost.


Let 's try to texture a simple cube with two materials. 4 sides with material 1 and 2 sides with material 2 Let's begin and repeat this step by step.

1)Press f5

2)click on " add new" (link to object)

3)press f6

4)click on " add new" (texture)

5)choose texture type (image)

6)click on "load" and load your first image

7)click in the second texture channel

8)click on "Add new" (texture)

9)choose texture type (image)

10)load your second image


Setting up material 1

11)Press f5

12) activate texture 1 in the texture tab

13)activate next tab (Map input)

14)choose UV

15)activate next tab (map to)

16)activate color and normal field


Setting up material 2

17)activate texture 2 in the texture tab

13)activate next tab (Map input)

14)choose UV

15)activate next tab (map to)

16)activate color and normal field


Now start the UV map procedure. Remember that material 2 is active at this point.


17)select the cube

18)tab to edit mode

19) press "A" to deselect all

20)choose face select mode

19) select the two faces you want to texture with the active material

20)press "alt z" to go to the texture draw type, because we want to see what happens!

21) make a second window with the uv image editor activated.

22)in your "cube" window press U

23) press unwrap(smart projections)

24)press "OK"

25)go to your uv window and choose the active material in the selector (updown arrow)

26)In the uv window you can now use the scale, rotate or grab command 's to adjust the texture spreading on the selected faces you can imediately see the result in the "cube window"


Second part

27) in your "cube window", press "Ctrl+I" to switch to the remaining faces.

28) In the panels window press f9

29) In links and materials press "new" to add a new material

30) In the panels press "f5"

31) Click in the first field of the "texture choises" to bind it to your new material.

32) in your "cube" window press U

33) press unwrap(smart projections)

34) press "OK"

35) go to your uv window and choose the active material in the selector (updown arrow)

36) In the uv window you can now use the scale, rotate or grab command 's to adjust the texture spreading on the selected faces you can imediately see the result in the "cube window"

That was all.

Look into your outliner window and in there expand the cube and see you have two materials binded to it. Click on one one material and load another image.

When you did all well , you don't have to UV map again for a different result.

When you forget to do step 29-31 then you have "two textures within 1 material "and you can't edit that without a new uv map. use that for multiple layers inside 1 material

In that case for every layer you have to set a new map "input" and map to

The map input defines the size of the texture without effecting the UVmap.

The "map to " tells how you want to use the texture.