Animation, Maya, & Valve Modeling, Exporting, and Compiling Feb 10 th 2006.

Slides:



Advertisements
Similar presentations
Endnote Tutorial The Version pictured is version 9.0 May 8, 2007.
Advertisements

Blender: Introduction, Modelling and Exporting 4076/GV07: Virtual Environments (VE) MSci 4th year, MSc VIVE, EngD Will Steptoe Room 6.22, Computer Science.
Static Models, Maya, & Valve Modeling, Exporting, and Compiling Feb 8 th 2006.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Adding custom meshes to Hammer Covering prop_static prop_dynamic & prop_physics.
Administriva l Half-life 2 accounts – If you have your own and HL2-EP2, then you can just use that – 3500 students keep your old one – Others – before.
RIMS II Online Order and Delivery System Tutorial on Downloading and Viewing Multipliers.
Getting Started with Microsoft PowerPoint Vivien Hall (CCS) Acknowledgements – Ali Parvin (CCS)
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
Modeling and Animation with 3DS MAX R 3.1 Graphics Lab. Korea Univ. Reference URL :
Lesson No:9 MS-Word Tools, Mail Merge and working with Tables CHBT-01 Basic Micro process & Computer Operation.
CAD3D Project. SketchUp - Project Create a new SketchUp project called InitialsXX where the XX are your first and last initial. Use the Rectangle tool.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
CREATING TEMPLATES CREATING CUSTOM CHARACTERS IMPORTING BATCH DATA SAVING DATA & TEMPLATES CREATING SERIES DATA PRINTING THE DATA.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Change in your CAD Project File - it happens all the time in robotics.
Microsoft Expression Web-Illustrated Unit E: Working with Pictures.
Introduction to Half Life 2 Modding ● Seminar Five – The Texturiser – The story so far: ● Creating a mod via Source SDK ● Introduction to Hammer ● Basic.
1 EndNote X2 Your Bibliographic Management Tool 29 September 2009 Humanities and Social Sciences Resource Teams.
Administriva l Half-life 2 accounts – If you have your own and HL2-EP2, then you can just use that – 3500 students keep your old one – Others – get it.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
JDS5 Training Guide. On Start Up you will see this screen click the OK button Click OK.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
Objective: Students will know the screen parts, tools, and menus of the Fireworks program. Students will be able to create a new document, create basic.
Java On the ENB 116 Computers The JDK is now available on the ENB 116 computers. You can use a classroom computer rather than your own laptop or CIRCE.
Microsoft PowerPoint Prepared by the Academic Faculty Members of IT.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
Computer Graphics Imaging Lecture 13 and 14 UV Mapping.
Simple Sprite Sheets with Inkscape & Gimp David Cline.
AUTOMATED HCES WORKSHEETS OM400, OM500, JB1200 Prepared by OCM 10/27/2008.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.
Photoshop CS6 – Nelson Unit 3: Photoshop CS6. Objectives Define photo editing software Start Photoshop and view the workspace Use the Zoom tool and the.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Game Development with Unity3D
Dive Into® Visual Basic 2010 Express
Windows Tutorial 3 Personalizing Your Windows Environment
June 17, 2009 Office 2007 Tips & Tricks.
Game Development with Unity3D Inside/Outside Unity3D
Getting Started with Adobe Photoshop CS6
, MS-Access, QBE, Access/Oracle
Microsoft Word 2016 Lesson 3.
Getting Started with Adobe Photoshop CS5
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
Getting Started with Adobe Photoshop CS6
Tabs, Line & Paragraph Spacing, and working with lists
Creating a Brochure In Microsoft Word.
Access Creating a Database
Fastest way for already created documents
Access Creating a Database
How to install the Enterprise Agent using Active Directory
Computer Animation UV Mapping.
SAMPLE PRESENTATION Company Name presents PowerPoint Basics
Benchmark Series Microsoft Word 2016 Level 2
Using JDeveloper.
To start the timer, on the Slide Show menu, click View Show.
Microsoft Office Access 2003
Using screens and adding two numbers - addda.cbl
Autodesk Inventor Tips and Tricks for New Users
To start the timer, on the Slide Show menu, click View Show.
Amos Introduction In this tutorial, you will be briefly introduced to the student version of the SEM software known as Amos. You should download the current.
Drawing OSA charts. Once Synops have been downloaded and ingested.
Running a Java Program using Blue Jay.
Microsoft Office Illustrated Fundamentals
University of Warith AL-Anbiya’a
How To Photoshop Intro.
E-CONTENT GENERATION USING OPEN SOURCE TOOLS
Presentation transcript:

Animation, Maya, & Valve Modeling, Exporting, and Compiling Feb 10 th 2006

Create a Material In Photoshop, create a 512x512 image –File->New –Set the image size Change the Width and Height fields to 512 pixels –Edit your image! –Save the image to ‘img.tga’ File->Save a Copy Save to ‘ /materialsrc/’ –I recommend using GIMP for image editing!

TGA File Format TGA is short for Targa (aka Truevision), a popular non-proprietary image format favored by Valve TGA files can be saved with a fourth channel, called Alpha channel, which usually defines transparency However, VMF shaders use the alpha channel A shader is a piece of software that instead of executing on the CPU, it executes on the GPU There are two types of shaders: Pixel shaders and Vertex shaders Half-Life 2 uses Microsoft's High Level Shading Language (HLSL)

Compile the Material Compile to a VMT and a VTF Again, you can download VTFEdit, which is a GUI for authoring textures – We will use the ‘vtex.exe’ utility This utility can be found under –C:\Program Files\Steam\SteamApps\ \sourcesdk\bin Here is the command we will execute –Go to Start->Run –Type in ‘cmd’ (command prompt) –Move into your ‘ /materialsrc/’ directory –vtex.exe –mkdir –shader VertexLitGeneric img.tga –Look under ‘ /materials/’ for the VMT and VTF

Maya and Animation Yesterday, we created a static object in Maya and learned how to export and compile it for the SMD and MDL file formats needed by Valve Today, we will create a joint for that static model and produce a single animation You will first need to construct a ‘base pose’ for an object that you want to animate –We already did this with our static object yesterday You need to then create a joint/bone hierarchy (called a skeleton)

Base Pose & Skeleton

Animation & Exporting Follow the general modeling and exporting guidelines from our last lecture, and also from the following URL – We are going to use the model we exported yesterday We will create a separate file for each animation that we want to use in the game Valve stores just one file with the base pose and joint hierarchy, and all other animation files only have the skeleton for a particular animation I will put a tutorial up soon regarding how take already existing HL2 characters and change their ‘skin’ (texture files for the face & body) –‘Cheapest’ way to get a custom look and feel for your game

Animation

Maya: Add a Joint Hit Space->Skeleton->Joint Tool Increase the radius so you can see it, say to a vale of 50 Click on the joint and hold ‘Ctrl’ and click on pCube1 Hit Space->Skin->Bind Skin->Rigid Bind You can also do smooth skinning, but it will not help us out much in this example

Maya: Animate the Object Select the pCube1 object Hold Shift and press ‘W’, ‘E’, and ‘R’ Go to 30 on the time bar, this will be how we are selecting our 30 fps Change the rotate values to 45, 45, and 45 Right click in the Transform Attributes box and hit Set Key You can now run it and watch it animate

Maya: Export the Animation Go to File->Export SMD Options Turn on ‘export Animation smds’ under the ‘Export’ tab Go to ‘Path Settings’ tab and hit ‘default’ Make sure that ‘smd/qc Path’ is set to – /modelsrc/RotCube.smd Make sure that ‘texture Path’ is set to – /materialsrc/

Exporting the Animation Go to the ‘Animations’ tab Type in ‘Rotating’ in ‘sequence Name’ Type in ‘0’ for ‘sequence start’ and ’30’ for ‘sequence end’ Type in ‘loop fps 30’ in ‘add on end’ Hit ‘OK Settings’ Hit ‘Full Compile’

SMD Files Under ‘ /modelsrc/’ you should have a few SMD files and a QC RotCube.qc => File that will be used to specify how we compile into a MDL RotCube.smd => Reference model RotCube_idle.smd => Idle animation RotCube_phy.smd => Physics model RotCube_Rotating.smd => Animation file

Compile to a MDL We will use the studiomdl.exe utility This is in the same bin directory as the vtex.exe material compile utility To run studiomdl.exe and compile our SMD files into a MDL that we can run in our mod, type –studiomdl.exe RotCube.qc The result is automatically copied over into – /models/

Valve Model Viewer In the Source SKD menu, launch ‘Model Viewer’ Go to File->Load Model Your model should appear as ‘RotCube’

Hammer & your Animation Add a ‘prop_dynamic_override’ entity Double left click on it Go to the ‘world model’ keyvalue Press on Browse Find your model Name the entity ‘myobject’ Create a ‘logic_timer’ entity Change the ‘Refire Interval’ to 5 (seconds) Go to the ‘outputs’ tab Click ‘add’ Select ‘onTimer’ (the output) Find the ‘myobject’ (the entity to effect) Select ‘SetAnimation’ (the input) Put ‘Rotating’ in the ‘with a parameter override of’ textbox