Technical Brief
Total Page:16
File Type:pdf, Size:1020Kb
User’s Guide FX Composer 2 Beta May 2007 DU-02761-001_v01 Table of Contents Quick Tutorial ....................................................................................................1 Overview ......................................................................................................................... 1 Creating an Effect............................................................................................................. 1 Importing Geometry ......................................................................................................... 3 Applying Materials to Geometry ......................................................................................... 4 Modifying Material Parameters........................................................................................... 4 Assigning Textures ........................................................................................................... 5 Binding a Light to a Material.............................................................................................. 7 Shader Library.................................................................................................................. 7 Editing Shaders ................................................................................................................ 8 Overview ..........................................................................................................11 What Is FX Composer 2?................................................................................................. 11 Support for Standard Development Features ......................................................................................11 Visual Debugging and Performance Tuning ........................................................................................12 Mental Mill Artist Edition........................................................................................................................12 The Basics ........................................................................................................13 Layout........................................................................................................................... 13 Start Page...................................................................................................................... 14 Working with Shaders .....................................................................................17 Authoring Shaders.......................................................................................................... 17 Shader Library Panel....................................................................................................... 17 Shader Library Preferences......................................................................................................................17 Properties Panel ............................................................................................................. 18 Code Editor.................................................................................................................... 20 Code Editor Settings.................................................................................................................................22 Mental Mill Artist Edition.................................................................................................. 22 Material Panel ................................................................................................................ 23 Texture Viewer............................................................................................................... 29 Creating a COLLADA FX Common Profile........................................................................... 30 Creating Various Types of Shaders................................................................................... 33 DU-002761-001_v01 ii April 2007 Creating a COLLADA FX Cg Effect....................................................................................................34 Creating a Fullscene COLLADA FX Effect ........................................................................................38 COLLADA FX Authoring......................................................................................................................43 CgFX and .fx Authoring ..........................................................................................................................50 Vertex Stream Remapper.........................................................................................................................50 Converting CgFX Effects to COLLADA FX Effect .........................................................................53 Editing COLLADA FX Cg Shaders ......................................................................................................54 Converting .fx to CgFX ...........................................................................................................................55 The Render Panel.............................................................................................57 The Render Panel........................................................................................................... 57 Toolbar........................................................................................................................................................57 Manipulating the Camera.........................................................................................................................58 Applying Materials ....................................................................................................................................58 Viewports....................................................................................................................................................59 Scene Options............................................................................................................................................59 Tips for Working with Complex Scenes ...............................................................................................59 Animation Panel ............................................................................................................. 60 Analyzing Shader Performance........................................................................63 The ............................................................................................................................... 63 ShaderPerf Panel............................................................................................................ 63 ShaderPerf Panel Interface ......................................................................................................................65 ShaderPerf Panel Settings ............................................................................................... 67 Working with Projects .....................................................................................68 Project Structure ............................................................................................................ 68 Project Explorer.............................................................................................................. 69 Documents and Assets.............................................................................................................................69 Active Documents ....................................................................................................................................69 Physical Documents .................................................................................................................................69 Virtual Documents....................................................................................................................................70 COLLADA Documents...................................................................................................... 70 Sample COLLADA Files.........................................................................................................................70 Project Configurations..................................................................................................... 70 Assets Panel................................................................................................................... 71 Common Options.....................................................................................................................................73 Types of Assets..........................................................................................................................................73 DU-002761-001_v01 iii April 2007 Asset Location Resolution................................................................................................ 77 Environment and Project Settings .................................................................................... 78 Sample Project ............................................................................................................... 79 Customizing FX Composer ...............................................................................80 Working with Layouts ..................................................................................................... 80 Changing Layouts......................................................................................................................................80 Customizing Toolbars.....................................................................................................