2006-11-27から1日間の記事一覧

Rendererクラスのリファクタリング案・改

Pathクラス書いたら妄想が広がってきましたよ。 Rastalizer (Ray tracing, scanline, micropoly, etc.) Direct Illumination Handler (sample from one light/multiple light/IBL) Indirect Illumination Filter (Irradiance Caching, Final Gathering, etc.…

Pathクラス

とか作ってよく論文に出てくる擬似コードなみの簡潔さでパストレ書きたい。 LightE PathTracer::trace(FVector2& vScr) { EyePath* path = Camera::genPath(vScr); // trace ray while(path->extend()) ; // get contribution from light at each point Ligh…

Rendererクラスのリファクタリング案

#if文がすごいことになってるのでアルゴリズムごとにきれいに分割したい。 Direct Illumination Handler (Ray tracing, scanline, etc.) Indirect Illumination Filter (Irradiance Caching, Final Gathering, etc.) Indirect Illumination Handler (Photon …

電磁気学の中間テスト。 明日は力学演習のテスト。