User Tools

Site Tools


public:t-vien-15-1:blendertexturing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:t-vien-15-1:blendertexturing [2015/08/27 17:08] – created hannespublic:t-vien-15-1:blendertexturing [2024/04/29 13:33] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Blender Model Export and UV Texturing (Blender 2.6+) ======+====== Blender Model Export and UV Texturing (Blender 2.8+) ======
  
 Here are the steps required for exporting a textured object from [[http://www.blender3d.org|Blender3D]] to Unity 3D.  Here are the steps required for exporting a textured object from [[http://www.blender3d.org|Blender3D]] to Unity 3D. 
  
-===== Configuring Blender ===== 
- 
-  - Take a look at the user preferences under **File->User Preferences...**.  
-  - Under the **Input** panel, notice that you can make is so that you **Select With** your left mouse button. **By default you select with the right mouse button**, which is quite unintuitive, so consider changing this. 
-  - Also, under this panel, you may want to choose **Turntable** as your **Orbit Style**, since that makes the 3D window work like a potter's wheel, keeping your objects steady on the horizontal plane as you rotate them.  
-  - When you are happy with how you have configured the Blender environment, use **File->Save User Settings** to make that configuration into the default configuration for Blender. 
    
-===== Applying a Texture to an Object =====+===== Applying a Texture to a Cube =====
  
-    - Select the cube (Left mouse button if you have changed the configuration, Right otherwise) +    - Select the cube you want to texture. 
-    - Name the selected object "Box" (press "n" for the "name" panel and type in "Box" under **Item**)+    - Name the selected object "Box" (double-click on the cube in the scene/hierarchy view in the upper right and type in a new name for it)
     - Now is a good time to save your Blender file, give it a name like "box.blend" and keep all your files for this model in the same folder (to see these files in Unity, keep them all somewhere under "Assets", e.g. "Assets/VIEN/Props")     - Now is a good time to save your Blender file, give it a name like "box.blend" and keep all your files for this model in the same folder (to see these files in Unity, keep them all somewhere under "Assets", e.g. "Assets/VIEN/Props")
-    - Switch to **Edit Mode** (The mode selector currently shows "Object Mode"+    - Switch to **Edit Mode** (The mode selector currently shows "Object Mode" in the upper left
-    - Switch to **Edge Select Mode** (Three buttons on the bottom bar of the window: vertex, edges and polys)+    - Switch to **Edge Select Mode** (Three buttons immediately to the left of the mode selector: vertex, edges and polys)
     - Multi-select (hold SHIFT) the "seam" Edges of the Box (for a fold-out cube)     - Multi-select (hold SHIFT) the "seam" Edges of the Box (for a fold-out cube)
-    - **Mesh->Edges->Mark Seam** +    - **Edges->Mark Seam** (Menu above the view port
-    - Split main window (Drag the upper right corner of the 3D window to the left, revealing a second copy of the 3D window+    - Select the **UV Editing** tab at the top of the screen. 
-    - Select the **UV/Image Editor** view for new window from the view selector in the lower left corner of window +    - Select your object again in the 3D view (press "a" to select the whole object) 
-    - Select your object again in the 3D view (press "a" twice to select the whole object) +    - If a UV image appears in the UV Editor window on the left, showing how all sides of the cube fit onto the image, then you can skip the next step (the UV coordinates already exist, so no need to unwrap again, unless you want to try)  
-    - 3D Window: **Mesh->UV Unwrap->Unwrap** (you should now see the fold-out texture from the cube appear in the right UV/Image window) +    - Either window: **UV->Unwrap** (you should now see the fold-out texture from the cube appear in the left UV Editor window) 
-    - UV Window: **UVs->Export UV Layout..**+    - UV Editor Window: **UV->Export UV Layout..** (you should save it in the same folder as your 3D model)
  
   * And now you have a texture which you can edit in your favorite paint program (like [[http://www.gimp.org/|GIMP]], which is free!). Once you're done painting it, you can import it back into Blender like this:   * And now you have a texture which you can edit in your favorite paint program (like [[http://www.gimp.org/|GIMP]], which is free!). Once you're done painting it, you can import it back into Blender like this:
  
-  - UV Window: **Image->Open Image** (pick your file here and it is applied to your object) +  - UV Editor Window: **Image->Open...** (pick your file here and you can preview it in the UV Editor) 
-  - To see it in the 3D Window, choose **Draw Type: Textured** from the **Draw Type** pop-up menu next to "Edit Mode"+  - To apply the texture to the cube object, you must now create a Material for the cube, and assign the image to its color. To do that: Go back to **Layout** tab at the top of the screen (only the 3D object being shown). Select the **Material** property tab for the object in the property inspector on the right (the **Material** property looks like a red planet towards the bottom). If no Material is shown there, press the drop down to the left of the **New** button and pick **0 Material**, which is the default white material. Now add the texture to it by clicking on the circle to the right of the color shown for the **Base Color** property and pick **Image Texture**. Then in the new image texture properties that appear, select the texture file, either using the picture icon drop down (where you can pick images already imported into the project, such as through the UV Editor Window) or by pressing **Open** and pick the texture file there. The texture has now been applied to the cube, but it may not show yet in the 3D view, since by default textures are not rendered.  
 +  - To see the texture on the cube in the 3D view, choose **Look Dev** or **Rendered** from the **Viewport Shading** options in the upper right corner of the view port
  
 ===== Exporting the Textured Box ===== ===== Exporting the Textured Box =====
/var/www/cadia.ru.is/wiki/data/attic/public/t-vien-15-1/blendertexturing.1440695313.txt.gz · Last modified: 2024/04/29 13:33 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki