Creating an ASE model using multiple Materials: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(empty draft)
 
No edit summary
Line 1: Line 1:
This tutorial is assuming that you've read the [[Modeling - Basic Tutorial]] which shows how to export a simple cube with a single material to ASE. If you want to use multiple materials your mesh has to be tweaked a bit, as mutltiple shaders require your model to be separated into several objects.
This tutorial is assuming that you've read the [[Modeling - Basic Tutorial]] which shows how to export a simple cube with a single material to ASE. If you want to use multiple materials your mesh has to be tweaked a bit, as mutltiple shaders require your model to be separated into several objects. This tutorial refers to Blender 2.43.


== Create and texture your Model ==
== Create and texture your Model ==
We're using a cube here as in the other tutorial for the sake of simplicity. We will apply two different materials to the faces. So basically, create the cube and unwrap it by switching to '''U/V Face Select''', selecting all the faces and and hitting '''U''':
[http://img401.imageshack.us/img401/7527/cubeyc6.jpg http://img401.imageshack.us/img401/7527/cubeyc6.th.jpg] [http://img401.imageshack.us/img401/5039/uvunwrapma4.jpg http://img401.imageshack.us/img401/5039/uvunwrapma4.th.jpg]
Go to the U/V editor (with all the U/V faces selected) and select the shader for your cube (Image > Open) - I used the '''blocks_008_editor.tga''' file directly from the repository:
[http://img168.imageshack.us/img168/2598/uvloadimageyf7.jpg  http://img168.imageshack.us/img168/2598/uvloadimageyf7.th.jpg]
Now we select a '''single''' U/V face to apply a different texture to it. Just right-click the according face:
[http://img215.imageshack.us/img215/9665/uvsinglefacere6.jpg http://img215.imageshack.us/img215/9665/uvsinglefacere6.th.jpg]
In the U/V editor, select Image > Open and select a different image (here '''brick_004_editor.tga'''):
[http://img295.imageshack.us/img295/5128/uvdifferenttexturevb5.jpg http://img295.imageshack.us/img295/5128/uvdifferenttexturevb5.th.jpg]
(Btw: you can preview your textured model by going to the Object Mode and choose the "Textured" render mode):
[http://img144.imageshack.us/img144/827/texturedmodedt8.jpg http://img144.imageshack.us/img144/827/texturedmodedt8.th.jpg]
== Separate your Meshes ==
In order to export your model to ASE you will have to separate your meshes according to their textures. In our case we only have one face that is using a different texture than the rest of the model. Switch to '''Edit Mode''' and select that face. Hit '''P''' to separate the face from the mesh and create a new object out of it:
[http://img412.imageshack.us/img412/4739/separatefacesn4.jpg http://img412.imageshack.us/img412/4739/separatefacesn4.th.jpg]
Go back to '''Object Mode''': This is what it should look like if you select the cube and move it (the separated face should stay where it is - this is just for illustrational purposes):
[http://img99.imageshack.us/img99/5803/separatedzv8.jpg http://img99.imageshack.us/img99/5803/separatedzv8.th.jpg]
== Export your Model ==
Don't forget to hit '''Apply Scale & Rotation''' (Strg-A) if you resized and moved your model (which we haven't here) and select the two objects (the cube and the single face). Now export the model using the Export > ASCII Scene menu and use these options:




[[Category:Tutorial]]
[[Category:Tutorial]]
[[Category:Models]]
[[Category:Models]]

Revision as of 07:38, 24 April 2007

This tutorial is assuming that you've read the Modeling - Basic Tutorial which shows how to export a simple cube with a single material to ASE. If you want to use multiple materials your mesh has to be tweaked a bit, as mutltiple shaders require your model to be separated into several objects. This tutorial refers to Blender 2.43.

Create and texture your Model

We're using a cube here as in the other tutorial for the sake of simplicity. We will apply two different materials to the faces. So basically, create the cube and unwrap it by switching to U/V Face Select, selecting all the faces and and hitting U:

cubeyc6.th.jpg uvunwrapma4.th.jpg

Go to the U/V editor (with all the U/V faces selected) and select the shader for your cube (Image > Open) - I used the blocks_008_editor.tga file directly from the repository:

uvloadimageyf7.th.jpg

Now we select a single U/V face to apply a different texture to it. Just right-click the according face:

uvsinglefacere6.th.jpg

In the U/V editor, select Image > Open and select a different image (here brick_004_editor.tga):

uvdifferenttexturevb5.th.jpg

(Btw: you can preview your textured model by going to the Object Mode and choose the "Textured" render mode):

texturedmodedt8.th.jpg

Separate your Meshes

In order to export your model to ASE you will have to separate your meshes according to their textures. In our case we only have one face that is using a different texture than the rest of the model. Switch to Edit Mode and select that face. Hit P to separate the face from the mesh and create a new object out of it:

separatefacesn4.th.jpg

Go back to Object Mode: This is what it should look like if you select the cube and move it (the separated face should stay where it is - this is just for illustrational purposes):

separatedzv8.th.jpg

Export your Model

Don't forget to hit Apply Scale & Rotation (Strg-A) if you resized and moved your model (which we haven't here) and select the two objects (the cube and the single face). Now export the model using the Export > ASCII Scene menu and use these options: