Chapter 22- Textures in the Game Engine

Similar documents
Blender Notes. Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 9 The Game Engine

IT 386: 3D Modeling and Animation. Review Sheet. Notes from Professor Nersesian s IT 386: 3D Modeling and Animation course

Course: 3D Design Title: Deciduous Trees Blender: Version 2.6X Level: Beginning Author; Neal Hirsig (June 2012) Deciduous Trees

SkillsUSA 2014 Contest Projects 3-D Visualization and Animation

Adding Animation With Cinema 4D XL

My Materials. In this tutorial, we ll examine the material settings for some simple common materials used in modeling.

The Rocket Steam Locomotive - Animation

Self-Positioning Handheld 3D Scanner

Columbus College of Art & Design 1 Charlotte Belland

Blender 2.49b How to generate 3D-images?

Tutorial 13: Object Animation

INTRODUCTION TO RENDERING TECHNIQUES

Castle Modeling. In this PDF tutorial we will be modeling a simple castle as pictured above.

Making natural looking Volumetric Clouds In Blender 2.48a

Maya 2014 Still Life Part 1 Texturing & Lighting

Maya 2014 Basic Animation & The Graph Editor

Chapter 9- Animation Basics

VRayPattern also allows to curve geometry on any surface

Computer Animation: Art, Science and Criticism

Billboard Tutorial. NOTE: The first Image is actually transparent any where you see white. The last picture actually IS white.

Autodesk 3ds Max 2012 and Autodesk 3ds Max Design 2012 Release Notes Service Pack 2

Scripting in Unity3D (vers. 4.2)

CREATING SCENERY WITH THE PHOENIX RC CREATOR PROGRAM

Maxwell Render 1.5 complete list of new and enhanced features

CREATE A 3D MOVIE IN DIRECTOR

Beginners guide to advanced multi-pass render in C4D.

Working with Windows Movie Maker

AR-media TUTORIALS OCCLUDERS. (May, 2011)

Blender 3D: Noob to Pro/Die Another Way

The Texture Mill User Guide

Introduction to scripting with Unity

Blender 3D Animation

Digital 3D Animation

Creating Your Own 3D Models

Creating 2D Drawings from 3D AutoCAD Models

Computer Applications in Textile Engineering. Computer Applications in Textile Engineering

The Car Tutorial Part 1 Creating a Racing Game for Unity

A Beginners Guide to Track Laying.

Intro to 3D Animation Using Blender

Excel -- Creating Charts

Thea Omni Light. Thea Spot Light. Light setup & Optimization

Instructions for Creating a Poster for Arts and Humanities Research Day Using PowerPoint

Tutorial: Creating Platform Games

SimLab 3D PDF. Settings

MicroStation V8i Training Manual 3D Level 3

Sweet Home 3D user's guide

So, you want to make a photo-realistic rendering of the Earth from orbit, eh? And you want it to look just like what astronauts see from the shuttle

How to Cheat in Maya

MAKE YOUR FIRST A-MAZE-ING GAME IN GAME MAKER 7

Learning about light and optics in on-line general education classes using at-home experimentation.

Programming 3D Applications with HTML5 and WebGL

PRODUCT LIFECYCLE MANAGEMENT COMPETENCY CENTRE RENDERING. PLMCC, JSS Academy of Technical Education, Noida Rendering 1 of 16

Creating and Editing Movies Using Windows Live Movie Maker

QuickTime Animation Tutorial

Materials in NX Render

Basic controls of Rhinoceros 3D software

Compositing a 3D character over video footage in Maya Jean-Marc Gauthier, Spring 2008

Using HDR Panoramas. Dr Ryan Southall - School of Architecture & Design, University of Brighton.

Comparisons and Contrasts Between imovie 2 and Movie Maker 2

Deferred Shading & Screen Space Effects

3D Computer Animation (Msc CAGTA) Report

ART 269 3D Animation Fundamental Animation Principles and Procedures in Cinema 4D

Reviewer s Guide. Morpheus Photo Animation Suite. Screenshots. Tutorial. Included in the Reviewer s Guide:

Tutorial - HDR scene setup (3D Studio Max, VRay)

Working with the BCC Clouds Generator

Lab7 : Putting Everything Together

2013 Getting Started Guide

[Not for Circulation]

Silent Walk FPS Creator 2 User s Manual

Quick Tutorial. Overview. The NVIDIA Software Improvement Program. Creating an Effect

User manual Version: 1.3 Publication: March 2008

Adobe Captivate Tips for Success

1 CHORD LENGTH OR UNIFORM PARAMETERIZATION

A Tutorial for 3D Point Cloud Editor

4.3. Windows. Tutorial

Animator V2 for DAZ Studio. Reference Manual

3D-GIS in the Cloud USER MANUAL. August, 2014

ABS 731 Lighting Design & Technology. Spring 2006

CATIA V5 Surface Design

Tutorial: Biped Character in 3D Studio Max 7, Easy Animation

Illuminating With HDRI

Image Processing and Computer Graphics. Rendering Pipeline. Matthias Teschner. Computer Science Department University of Freiburg

Lezione 4: Grafica 3D*(II)

Autodesk Revit Architecture 2011 Professional Massmodeling Rendering Video Tutorial

The main imovie window is divided into six major parts.

SketchUp Instructions

An introduction to 3D draughting & solid modelling using AutoCAD

Character Animation Tutorial

Hi everyone, my name is Michał Iwanicki. I m an engine programmer at Naughty Dog and this talk is entitled: Lighting technology of The Last of Us,

- trace the origins of the art and science of modeling and animation - establish Blender in the context of 3D modeling and animation production

How to rotoscope in Adobe After Effects

How to Build a Simple Pac-Man Game

Working with Video in PowerPoint 2010

Video in Logger Pro. There are many ways to create and use video clips and still images in Logger Pro.

5. Tutorial. Starting FlashCut CNC

GVSIG USER MANUAL 3D PLUGIN

A Short Introduction to Computer Graphics

SELF ASSESSMENT GUIDE

Technical What s New. Autodesk Alias Product Line

by Przemysław Króliszewski & Sebastian Korczak. itechnologie Sp. z o. o. p.kroliszewski@itechnologie.com.pl, s.korczak@itechnologie.com.

Transcription:

Since games need to be able to process operations as fast as possible, traditional rendering techniques (specularity, 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 UV Mapping section in the Tool Shelf. These will be the unfold edges. It should match the box layout. 22-1

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 verticies 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 verticies so it looks good on the cube. By using this technique, you can select single or groups of faces on an object to assign textures, By switching back to the Default screen layout, you will find a panel in the Object Data buttons, in Edit Mode, that effect the texture faces. In the current version of Blender, you can only select one face at a time to change these options. Some useful options here are: Light: face is effected by light hitting it. Invisible: good for adding planes along a track as guides. Collision: unchecked and the actor can go through it. Two-Sided: by default, texture visible from one side only. Transparency: options for visibility. 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. Select Image for the texture type, select the picture you used, the under the Mapping panel, choose UV in the Coordinate box. Pressing F12 should give you a rendered image of the map. 22-2

GLSL Shading GLSL shading is very 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. 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. 22-3

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. 22-4

Motion Maze Texture Exercise Open your Motion Maze file from the last chapter. Your goal in this exercise it to make it look good while in game play. You may use UV Texture Mapping or a combination of UV Mapping and GLSL Shading. Find or create a nice domino texture along with appropriate textures for all other items. Remember that for a UV Mapped texture to work in GLSL, you need to switch to UV in the mapping panel in Textures. ** Call the instructor when finished** 22-5