Generating Materials with Geometry Nodes, Python, and Shader Nodes
摘要
In this chapter, you’ll continue to build on the game weapon generator you’ve created in Chapters 2 and 3 , by adding code to unwrap and generate materials for different parts of the gun. We’ll begin by using geometry nodes to create a circular bump grid, then write Python code to bake a normal map from it to build the gun grip’s shader node tree, to emulate 3D detail without the expense of actual geometry. After that, we’ll build a second geometry node tree to generate a custom cross-motif grid to bake a more complex normal map for the gun’s grip. With these two projects under your belt, you’ll have developed the skills necessary to generate normal maps for any project.