- Blender 3D By Example
- Oscar Baechler Xury Greer
- 453字
- 2021-06-24 16:09:11
Simple materials and the nodal workflow
The kitchen has several objects whose materials are simple to set up and will serve as a good introduction to the basics of PBR. Eevee's real-time rendering is based around controlling a limited set of variables that have the potential to replicate all of the physically possible materials in the entire world. Take any dirt, meteor, banana, or liquid in the universe, and you can map its properties from a value of 0 (0%) to a value of 1 (100%):
- Black to white colors (distributed over Red, Green, and Blue (RGB) pixels)
- Transparent to opaque
- Rough to smooth
- Dielectric to metallic
Nodes are a way to map those values. A value of 0 Roughness means not rough at all. A value of 1 Roughness means very rough. A value of 0 Transparency is completely opaque. A value of 1 Transparency is completely transparent. If you took a photograph, it has pixels, which have values ranging from black to white. A node could simply use the input (a picture) to drive an output (such as transparency), and the light pixels will be transparent, black pixels opaque, and grayscale pixels somewhere in between.
The coordinates for your materials can also be represented in this way, usually through a vector input. The bounding box for an object could map the bottom of the object (0, 0%, black) to top (1, 100%, white), and the same for its transition from left to right or front to back, like colored syrup at the top of a snow cone, dispersing down. Instead of a pixel's location in the bounding box, you could instead map the direction each face's normal is pointing, like cliffs where snow only lands and sticks to the faces pointed upward. The Fresnel effect causes many materials to change properties depending on whether a plane faces you (black) or is turned away from you, eventually being on the hidden backside (white). Distant lake water is a mirror, reflecting the sunset (fresnel 1, white), but when you look down it's instead transparent, where a carp is swimming around your ankle (fresnel 0, black).
Nodes are a form of visual programming and a little scary to newcomers. Although it sounds like a lot of math and logic, the payout is tremendous, and the concepts extend into other areas of Blender as well. When nodes become overwhelming, try to reconstruct the node trees of others verbatim, and the results often reveal how nodes work. Use existing node materials, and see what happens when you break or modify the node tree. Test out your hunches, and don't be afraid to experiment. Let's have a look at how to control these properties with shader nodes.
- Istio入門與實戰
- Learning AngularJS Animations
- Creating Dynamic UI with Android Fragments
- 電腦常見問題與故障排除
- 辦公通信設備維修
- The Applied AI and Natural Language Processing Workshop
- 單片機原理及應用系統設計
- Camtasia Studio 8:Advanced Editing and Publishing Techniques
- scikit-learn:Machine Learning Simplified
- 嵌入式系統中的模擬電路設計
- 微軟互聯網信息服務(IIS)最佳實踐 (微軟技術開發者叢書)
- 基于Apache Kylin構建大數據分析平臺
- Creating Flat Design Websites
- 計算機組裝維修與外設配置(高等職業院校教改示范教材·計算機系列)
- 數字媒體專業英語(第2版)