浏览代码

Update Phase2.md

/main
mohsen.k 4 年前
当前提交
6ebc22eb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Tutorial/Phase2.md

4
Tutorial/Phase2.md


## Phase 2: Custom Randomizations
### Step 1: Build a Lighting Randomizer
### Step 1: Build a Light Randomizer
In Phase 1 of the tutorial, we learned how to use the Randomizers that are bundled with the Perception package to spawn background and foreground objects, and randomize their position, rotation, texture, and hue offset (color). In this phase, we will build a custom light Randomizer for the `Directional Light` object, affecting the light's intensity and color on each `Iteration`. We will also learn how to include certain data or logic inside a randomized object (such as the light) in order to more explicitly define and restrict its randomization behaviors.

### Step 2: Bundle Data and Logic Inside Randomization Tags
### Step 2: Bundle Data and Logic Inside Randomizer Tags
You may sometimes need to bundle certain randomization-related data or logic within an object that are inherent to the object itself. For instance, you may have multiple lights in the Scene but would like each of them to have their own unique range of intensities. It would be quite tedious to add a new Parameter to your light Randomizer for each of your lights. Furthermore, this would make your light Randomizer excessively tailored to one use-case, limiting the Randomizer's reusability.

正在加载...
取消
保存