Chapter 23- UV Texture Mapping

Similar documents
Introduction to Digital Modelling and Animation in Design week 4 Textures

Chapter 6- Lighting and Cameras

Chapter 9- Ray-Tracing

Step 2: Add Material and Texture

Blender Notes. Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 1 The Blender Interface and Basic Shapes

Chapter 12- NURBS & Meta Shape Basics

Chapter 4- Blender Render Engines

03 RENDERING PART TWO

1 INTRoduCTIon to BLENDER 1. 3 PREPARATIon 19

Chapter 19- Object Physics

Textures and UV Mapping in Blender

Chapter 1- The Blender Interface

Chapter 5- Setting Up a World

Chapter Adding 1- T Mo he tio B n le to nde Yo r ur Inte Scerfac ne e Landscape Scene Stormy Night.mp4 End 200 Default Animation frame 1 Location

Chapter 3- Creating & Editing Objects

Chapter 9- Animation Basics

As we said Procedural Textures are not images but textures that Blender creates automatically. They are good to use as a foundation to start with.

Actions and Graphs in Blender - Week 8

Chapter 13 - Modifiers

Autodesk Fusion 360: Render. Overview

Blender Texture Painting Tutorial

Chapter 4- Materials and Textures

Full Screen Layout. Main Menu Property-specific Options. Object Tools ( t ) Outliner. Object Properties ( n ) Properties Buttons

Raycast Rendering Maya 2013

Photoshop PSD Export. Basic Tab. Click here to expand Table of Contents... Basic Tab Additional Shading Tab Material Tab Motion Tab Geometry Tab

Chapter 4- Materials and Textures

CMSC427 Advanced shading getting global illumination by local methods. Credit: slides Prof. Zwicker

An Introduction to Maya. Maya. Used in industrial design, CAD, computer games and motion picture effects. The ambition is what get

Chapter 1- The Blender Interface

LEVEL 1 ANIMATION ACADEMY2010

Caustics - Mental Ray

Creating the Tilt Game with Blender 2.49b

Chapter 14 Particle Systems & Interactions

This view is called User Persp - perspective. It's good for rendering, but not for editing. Ortho will be better.

Rock Tutorial: Creating A Rock Like Seen In Gears Of War With A Focus On Normal

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Graphical Editors used at CSC/Nada earlier. Main competitors. What is Maya? What is Maya? An Introduction to Maya. Maya

Basic Rendering Techniques Part B

LIGHTING - 1. Note. Lights. Ambient occlusion

Split the 3D Editor Viewport

Computer Graphics 1. Chapter 7 (June 17th, 2010, 2-4pm): Shading and rendering. LMU München Medieninformatik Andreas Butz Computergraphik 1 SS2010

CHAPTER 1 Graphics Systems and Models 3

Lecture 18: Primer on Ray Tracing Techniques

Chapter 17: The Truth about Normals

3ds Max certification prep

Chapter 5- Materials & Textures

Topics and things to know about them:

Chapter 3- Creating & Editing Objects

Rendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane

Chapter 3- Creating & Editing Objects

Baking Blender materials to texture to make them usable in a game engine

Consider a partially transparent object that is illuminated with two lights, one visible from each side of the object. Start with a ray from the eye

Rendering and Radiosity. Introduction to Design Media Lecture 4 John Lee

Computer graphics Labs: Blender (1bis/3) SketchUp model importation and animation

Introduction. Chapter Computer Graphics

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Chapter 5- Materials & Textures

Houdini Light, Shade, Render

Advanced Gemstone Shaders

Ambient Occlusion Pass

Basic Blender Commands This is just a partial list of Blender commands. Please visit the Blender.org website for more details.

Visualization Insider A Little Background Information

Wednesday, 26 January 2005, 14:OO - 17:OO h.

Creating a Snowman Scene

O Hailey: Chapter 3 Bonus Materials

Interactive Light Mapping with PowerVR Ray Tracing

Chapter 18- Relative Vertex (Shape) Keys

The Auto-MipMapper Shader

Submerge Camera Shader

FITTED CLOTHES. Cloth simulation in Blender

3D Rasterization II COS 426

Basic Blender Commands This is just a partial list of Blender commands. Please visit the Blender.org website for more details.

STARTING COMPOSITING PROJECT

Movie: For The Birds. Announcements. Ray Tracing 1. Programming 2 Recap. Programming 3 Info Test data for part 1 (Lines) is available

SAMPLING AND NOISE. Increasing the number of samples per pixel gives an anti-aliased image which better represents the actual scene.

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

5.3 Apply computer file management techniques 5.5 Select the format for digital delivery 5.6 Use and care for equipment and related accessories

Mesh Modeling Dice Boolean

Chapter 20- Springs, Screws and Gears

CS 465 Program 5: Ray II

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

Graphics for VEs. Ruth Aylett

COMP 4801 Final Year Project. Ray Tracing for Computer Graphics. Final Project Report FYP Runjing Liu. Advised by. Dr. L.Y.

Research Method: I plan to research existing literature on the subject and conducting tests in the lab.

COM337 COMPUTER GRAPHICS Other Topics

Chapter 7 - Light, Materials, Appearance

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

There are many kinds of surface shaders, from those that affect basic surface color, to ones that apply bitmap textures and displacement.

Shadows in the graphics pipeline

MAYA; AN INTRODUCTION TO MAYA; EndOfLine.info;

Computer Graphics I Lecture 11

Where to get Blender. Go to Download the latest version

Texture Mapping. Images from 3D Creative Magazine

Scalable multi-gpu cloud raytracing with OpenGL

Rendering Part I (Basics & Ray tracing) Lecture 25 December 1, 2015

6.837 Introduction to Computer Graphics Quiz 2 Thursday November 20, :40-4pm One hand-written sheet of notes allowed

AR-media TUTORIALS IMPROVING REALISM AMBIENT OCCLUSION. (June, 2011)

CS 4620 Midterm, March 21, 2017

CS5620 Intro to Computer Graphics

Advanced Shading I: Shadow Rasterization Techniques

Transcription:

Chapter 23- UV Texture Mapping Since games need to be able to process operations as fast as possible, traditional rendering techniques (specular, ray tracing reflections and refractions) cannot typically be processed fast enough for a game. For this reason, textures need to be mapped differently. There are also times when you may want to use mapped textures in an actual render. Blender does this through traditional UV Texture Mapping and a new system called GLSL Shading. There is a lot that can be done through both of these methods beyond the basics that will be discussed here. For more details, check out the Blender wiki. UV Texture Mapping Think of UV Mapping like taking a box and cutting it to lay flat. The texture needs to match each side of the box. It is difficult to do that with traditional materials and textures. Let's say you want to model a dinosaur. The texture changes on various parts of his body and need to be mapped correctly. This is where UV Mapping come into play. For this example, I am going to map the following texture I made in GIMP on a basic cube: This is just a jpeg image that would be impossible to map as a standard material/texture. To begin, start with a basic scene with a cube and change your viewport shading type from Solid to Textured. This is the shading used during game play. You will notice that, by default, textures are effected by the lighting so add some lights to illuminate your scene better and switch to the UV Editing window layout. This will give you one 3D viewport and one UV Editor viewport. At the bottom of the UV Editor viewport, hit the Image-Open Image menu option and find the texture you wish to use. Now, enter Edit Mode for the cube and switch to selecting Vertices to Faces since this is a face applying process. You can select individual faces and put UV textures on that way, but let's Unwrap the cube to match our texture. This can be done for any mesh, but we need to mark the seams where we want a split to occur. If we look at the picture, we can see where seams should go. In order to mark seams, we need to switch from Face select to Edge select. Select the following edges (ShiftRMB) and click Mark Seam in the Shading/UVs tab section in the Tool Shelf. These will be the unfold edges. It should match the box layout. 23-1

Chapter Chapter 123-The UVBlender Texture Interface Mapping Now go back to Face select mode, hit A for All twice to select all faces. Type U to bring up the UV Mapping options in the 3D window. You have several option. We want Unwrap. You will now see the unwrapped faces in the UV Mapping window. You can select these vertices as you would for any other Blender object and move, scale or rotate them. You will also see the texture on the cube. By pressing P you will see the texture in game play. (in object mode) Adjust the vertices so it looks good on the cube. UV Textures in an Animated Movie: Just like game physics can be written into an animation curve, UV can be used with materials and textures. After going through the steps above, add a material and texture to the object in the Internal Renderer. Select Image or Movie for the texture type. Select the picture you used in the Image panel (it will be listed un the drop-down. You will not need to go out and open it from your folder again). Under the Mapping panel, choose UV in the Coordinate box. Pressing F12 should give you a rendered image of the map. UV in Cycles: This is the same as applying an image texture as discussed before with only a few adjustments. After creating the unwrapped UV map, go to Cycles Materials panel, use a Diffuse node, set Color to Image Texture, Select the image from the drop down option, and set Vector to UV. 23-2

Chapter 23- UV Texture Mapping GLSL Shading GLSL shading is relatively new to Blender and is an area seeing a great deal of development. It is an attempt to add many rendering-like features to the game engine, adding to a more realistic environment. As with the UV Mapping section, this unit will only cover the basics to get you started. Not all video cards are supported for GLSL shading. Some machines will be unable it use this feature. See the Blender wiki for current specification. To get started, we'll start a new scene and split the viewport, setting one to UV/Image Editor. Set the Engine to Blender Game and viewport shading to Textured. The last thing you need to do is switch from Multitexture to GLSL shading in the Render panel. You are now ready to work with the GLSL features in the game engine. Not all texture and shading features are available in GLSL, but many are and others are being developed constantly. As mentioned before, we will only be looking at some of these features. Adding Textures: Basically, to add textures for the game in GLSL, you need to add materials and textures the way you do for any movie in the internal render engine. For my example, I am working with a plane for the ground and a cube. I've added a material and texture to the floor, using a stone texture. The stones are too large so I need to repeat it a bit in the texture panel. You can't use the X and Y Repeat in the Image Sampling panel, but can change the size in the Mapping panel. The cube was a bit more difficult. Because the texture wants to map as Flat by default and GLSL does not currently work with changing the mapping to Cube, I had to apply the texture as we did in the previous section using UV Texture Mapping and mapping the texture to each face. Remember to also switch the Mapping in the Textures panel to UV. Another nice feature with GLSL is the ability to show Normal Geometry to give a texture depth. Looks best with a higher Specular. 23-3

Chapter Chapter 123-The UVBlender Texture Interface Mapping Shadows in GLSL: Another nice effect allowed in GLSL is the ability to cast shadows in game play. Right now, ray tracing is not supported so your only option is to use a Spotlight with a Buffer Shadow setting (refer to the lighting chapter for more details on setting the buffer shadow). Currently, there is a lot of development in GLSL with new features constantly being added. There is also a lot of work in Baking settings to improve performance. There is work on support for indirect lighting, fluids, soft bodies and many more. For up-to-date information, follow the Blender wiki, YouTube, and the forums. World Settings: While some World settings work in Multi-texture mode and some work on GLSL Shading, Some features do not work in either at the time (stars for example). In Multi-texture shading, you can get a nice effect with the Mist settings to give a foggy feel to your game, but works a bit differently in GLSL. World Horizon and Zenith colors work differently as well. 23-4

Creating a Texture Wrap Scenario: You work for an advertising firm and have been asked to create a commercial featuring your client's new cereal brand. Create a table scene featuring the product. Using the UV texture mapping features, create your scene. Search the internet for an unwrapped box pattern of your favorite cereal to use or scan your own box. Here is the texture used in this example: Create your box from a cube, apply the UV texture maps, and add other elements to your scene. Rather than trying to unwrap the entire box, try selecting a single face to unwrap using the U command in edit mode. You will have a single face with corner vertices in the image mapping window to work with. Move those points around to match the side you want to use. You may also need to rotate the face. Continue until finished. Add other elements to your scene to make it look nice and realistic. Add appropriate lighting and set a good camera angle. Render and save an image of your work. ** Call the instructor when finished ** 23-5

Chapter 1- The Interface Challenge TaskBlender & Chapter 23 Reflection For your challenge task, open your maze game file. Add appropriate UV textures to the elements in your game. Add a world that uses mist in your maze for a dreary effect. Feel free to add and texture any other elements you wish. ** Call the instructor when finished ** Chapter 23 Reflection and Wrap-up: UV Texture Mapping UV maps are used in most professional movies and advertisements. Please take a few moments to reflect on these questions. 1. Take a look at a 3D animated animal (bird, dinosaur, etc.). Look at the variations in the texture of the animal. Why would it be difficult to get a texture to map correctly using the traditional image texturing in Cycles and the internal render engines discussed earlier in the book? Why would UV mapping be better? Explain. 2. Research the internet for how you would unwrap an animal, like a dinosaur, and UV texture it in Blender. What did you find? Explain the process. 23-6