Font Size: a A A

Design And Implementation Of Shader Tree Based Automatic Shader Generation System

Posted on:2014-12-31Degree:MasterType:Thesis
Country:ChinaCandidate:W X ZhangFull Text:PDF
GTID:2268330422962219Subject:Software engineering
Abstract/Summary:PDF Full Text Request
The emergence of programmable shader pipelines has brought tremendous changesto modern graphics rendering technology. Shader is widely used for game development, agame with greate realistic effects usually contain hundreds of shader effects. Traditionalworkflow with interdependence between artists and programmers greatly delay the gamedevelopment efficiency. To solve this problem, we propose a Shader Tree-based solutionwhich can generate shader program using visual interface, and the design andimplementation of a prototype of Automatic Shader Generation system.Shader Tree is essentially a graph data structure, it has the dual characteristics of agenerally tree and a directed acyclic graph. Through the analysis of HLSL code, theshader code is divided into several sub-fragment and packaged into a shader tree node,the excution order and the dependency of sub-fragment decide the relationship betweennodes, demonstrated shader program to feasibility and define the shader treerepresentation of a coloring program on behalf of the significance of the various elementsin the shader tree. Then describes the method of how according to the existing coloringtree inverse Release Shader code. The article also describes several commonly usedShader effects Shader tree example.Base on the Shader Tree theory, we design and realization of the prototype of ansystem, which has the visual editor, automatic generation of shader and real-time previewof effect. The system provides to the user convenient and powerful visual editinginterface, and could generate enough optimization Shader code according to Shader Tree.Users can also view the shader effects and check the generated shader code through thepreview window, make the debugging greatly more convenient.
Keywords/Search Tags:Shader, Interdependence, Shader tree, Automatic shader generation system
PDF Full Text Request
Related items