我怎么能懼怕挑戰(zhàn)呢?我始終不能接受我真的平庸至此。如果足夠努力,我也一樣可以。
今日計(jì)劃
- 弄明白pbrt-v4的parsedscene.cpp和parser.cpp大體什么意思
- 逐字逐行讀代碼
今日總結(jié)
- 要將parser所用到的函數(shù)都單獨(dú)列出來在一個(gè)cpp里大概會(huì)有一萬行
- parser_test.cpp指出parser的tokenizer(編譯器)有三個(gè)部分:Basics,Errors,F(xiàn)ile
- parsedScene.cpp:
1.stringprintf[camera,fillm,sampler,integrator等關(guān)鍵字]
2.API state macros (options,world,transfofrms)
3.transformCache
4.Parsedscene
(1)設(shè)置scene對象的默認(rèn)值
(2)定義Reverseorientation,colorspace,worldbegin,lightsource,camera,shape,rotate,arealightsource等
5.formatting Scene(格式化)同4 - parser.cpp:
1.parserdparameter:number,string,bool等(1-85)
2.Tokenizer Implementation:(85-415)看不懂
3.415-817 解析文件