diff --git "a/docs/04_SPEC/SPEC_02_\343\202\267\343\203\274\343\203\263\345\256\232\347\276\251\344\273\225\346\247\230.md" "b/docs/04_SPEC/SPEC_02_\343\202\267\343\203\274\343\203\263\345\256\232\347\276\251\344\273\225\346\247\230.md" index 00885a6..f12a93b 100644 --- "a/docs/04_SPEC/SPEC_02_\343\202\267\343\203\274\343\203\263\345\256\232\347\276\251\344\273\225\346\247\230.md" +++ "b/docs/04_SPEC/SPEC_02_\343\202\267\343\203\274\343\203\263\345\256\232\347\276\251\344\273\225\346\247\230.md" @@ -96,10 +96,10 @@ ```yaml lights: - id: led_top - type: point # point | area | directional + type: point # point | area | directional | spot position: [0, 30, 10] # mm 単位 intensity: [1.0, 1.0, 1.0] # RGB.スカラも可 - profile: lambertian # lambertian | isotropic | ies + profile: lambertian # lambertian | isotropic - id: led_ring_segment type: area @@ -108,9 +108,26 @@ size: [10, 10] # mm direction: [0, 0, -1] radiance: [50, 50, 50] + + - id: led_spot # 指向性 LED(データシート配光角に合わせる) + type: spot + position: [0, 30, 10] # mm + direction: [0, 0, -1] # 光軸方向ベクトル + cutoff_angle: 40 # 光が完全に 0 になる角度 [deg](0 < cutoff ≤ 90) + beam_width: 20 # 中央フラット領域の半角 [deg](0 ≤ beam_width ≤ cutoff_angle) + intensity: [1.0, 1.0, 1.0] # 軸上強度 I_0 [W/sr].スカラも可 ``` -`profile: ies` のときは別途 `.ies` ファイルパスを指定する(将来拡張). +サポート済みの `type`: + +| type | Mitsuba 対応 emitter | 用途 | 主要パラメータ | +| --- | --- | --- | --- | +| `point` | `point` | 点光源(LED 単体モデル等) | `position`, `intensity`, `profile` | +| `area` | `area`(rectangle 形状) | 面光源(矩形) | `center`, `size`, `direction`, `radiance` | +| `directional` | `directional` | 平行光源(無限遠光源) | `direction`, `irradiance` | +| `spot` | `spot` | スポット光源(円錐配光・LED 指向性モデル,Step 8-10 で追加) | `position`, `direction`, `cutoff_angle`, `beam_width`, `intensity` | + +`spot` は `cutoff_angle`(光が 0 になる角度)と `beam_width`(中央フラット領域)の組み合わせで smoothstep 補間の配光を定義し,LED の指向性をデータシートの配光角に合わせて表現する用途で使う.`profile: ies`(IES 配光ファイル)は将来拡張. ### sensor @@ -151,11 +168,13 @@ ```yaml render: variant: llvm_ad_rgb # 省略時は llvm_ad_rgb - integrator: path # path | direct | volpath + integrator: path # path | direct | volpath | ptracer max_depth: 8 spp: 256 # サンプル数 ``` +`integrator` の `ptracer` はフォワード光線追跡(光源→センサ)の粒子トレーサー. + ### evaluation(任意) ```yaml